News Feed
Sections




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

DevShed:
Using Nested Views with CodeIgniter
April 03, 2009 @ 07:56:01

The "Introduction to CodeIgniter" series continues on DevShed with this new article, a look at nested views in their sample application.

In this third chapter of the series I'm going to discuss one that bases its functionality on the loader class that comes bundled with CI. [...] By means of this method, it is very simple to replace in one single step all the variables included into multiple views with actual data. Therefore, in the next few lines I'm going to discuss how to use it to generate a dynamic web document, which will display some database contents.

After a quick review of loading views sequentially, they look at the new stuff - a "master view" that can load multiple other views inside. To pass information into this master view, they use the "$this->load->vars()" method included in the framework.

0 comments voice your opinion now!
nested views codeigniter framework load variables


blog comments powered by Disqus

Similar Posts

Symfony Blog: New in symfony 1.2: Customize the Web Debug Toolbar

Symfony Blog: Symfony 1.1 end of life approaching

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

Zend Developer Zone: Are You Ready to R-R-R-R-RROUNDUP!

Zend Developer Zone: Consuming Google Calendars with the Zend Framework


Community Events

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


release community series library security voicesoftheelephpant laravel5 example extension video podcast version framework php7 api introduction opinion interview laravel language

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