form to add magazines PHP CodeIgniter


show more Creating a form to add 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 ...

Creating a form to add magazines

In order to implement a validating form in CodeIgniter, I'll need three things. First, a controller function that contains the form logic, like processing submitted data. Second, a view that contains the form itself, including a place for displaying messages. And finally, a view for a message that will be shown upon successful submission. Once I have those pieces, I can then add the validation logic. I'm going to create a forum to add magazines and I'll start with the controller. Within Net beans open the magazine controller.

Let's add a new method for adding a magazine called add public function add, give it a little bit of documentation. Add a magazine. One of the parts of the magazine is the publication. While it'd be great if users could remember data base identifiers, they tend to get lazy and need all the help they can get. Therefore, I'll populate the list of available publications on their behalf using the publication model. Start by loading the model, populate publi...

Creating a form to add magazines
Video duration: 6m 4s 1h 30m Intermediate

Viewers:

Creating a form to add 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 ...