View and Delete magazines PHP CodeIgniter


show more Viewing and deleting magazines provides you with in-depth training on Developer. Taught by Jon Peck as part of the Up and Running with PHP CodeIgniter show less
please wait ...

Viewing and deleting magazines

I've been making solid progress but it's time to focus, and put some final touches on this application. There's two major pieces missing. The ability to view magazines, and delete an individual magazine. In some ways, the two pieces of functionality are very similar. In that they both require something to get an issue_id then some kind of action on a loaded model. I'm going to start by adding links to view and delete from the magazine list. Edit the magazine controller and at the top of the index function add a load helper to load the URL helper.

This load, helper, URL. It would be helpful to see whether a magazine has a cover associated with it. So at the end of the 4H loop lets add a column with a simple Y or N if there is a cover Issue issue_cover switch yes or no. I'm going to use the anchor helper function to generate links based on the local URL as a final column in the magaine table. I'll make links to both view and edit. The first argument f anchor is the path which w...

Viewing and deleting magazines
Video duration: 8m 20s 1h 30m Intermediate

Viewers:

Viewing and deleting magazines provides you with in-depth training on Developer. Taught by Jon Peck as part of the Up and Running with PHP CodeIgniter

Subject:
Developer
Software:
PHP CodeIgniter
Author:
please wait ...