News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Phil Sturgeon's Blog:
Why CodeIgniter HTML helper functions rock
December 15, 2009 @ 08:33:27

Phil Sturgeon has a new post to his blog about something the CodeIgniter framework offers - HTML helper functions - and why they're a very happy thing.

A complaint I often hear about CodeIgniter is one about HTML helper functions like form_open(), doctype() and img(). [...] These points of view come from people who do not understanding the potential benefits of using HTML helpers - whichis fair enough as I used to think they were useless too.

He starts with two things to refute these common complains including the structure they can bring to a script (it looks cleaner) and, similarly, that they're not a violation of the MVC "no HTML outside the view" school of thought. Instead they're really helpers, providing shortcuts into these chunks of HTML to include into the view.

With this covered, he gets into the point of the article, what these helpers can do for your CodeIgniter application. He uses a specific example of the shortening of a form opening tag using the form_open function.

0 comments voice your opinion now!
codeigniter framework html helper


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Understanding the Zend Framework,Part 4: When there is no feed, Zend_HTTP_Client

FuelPHP: Oil Migrations, Tasks and Console (Screencast)

Okada Design Blog: Create an Event calendar using Codeigniter and jQuery

Sanisoft Blog: Themes in CakePHP 3, A step by step HowTo

The Credence Blog: PHP frameworks - Which one is Most Suitable for you?


Community Events





Don't see your event here?
Let us know!


unittest opinion voicesoftheelephpant configure symfony composer release version list language series interview introduction laravel api threedevsandamaybe conference community framework podcast

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework