Avoid reinventing the wheel with the Form Helper PHP CodeIgniter


show more Avoid reinventing the wheel with the Form Helper 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 ...

Avoid reinventing the wheel with the Form Helper

The form helper is a great shortcut for quickly building forms. Instead of writing raw HTML I can greatly simplify the view by using the form helper functions to generate the markup. The form helper functions return html, so they should be used in the view, not in the controller. I will have to load the helper from the controller. I'm going to switch back to Netbeans. And go to the add method if I'm not already there. And add the method to load the form helper. So, this, load, helper, form. Save the controller, then open the magazine form the first line echoing the validation errors is good so let's leave that alone. However I'm sorry to say that everything else is going to get replaced. Its good to have perspective to know that there's than one way to perform a task. I'm going to start with a new form using the function form open PHP echo form open. I have the ability to specify a particular action and attribute. But since it's posting to the same place I can leave the a...

Avoid reinventing the wheel with the Form Helper
Video duration: 4m 9s 1h 30m Intermediate

Viewers:

Avoid reinventing the wheel with the Form Helper 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 ...