News Feed
Sections




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

DevShed:
Returning Strings from Views with Code Igniter
April 10, 2009 @ 08:43:41

DevShed has posted the next in their "Introduction to CodeIgniter" series - this new tutorial about returning strings back from the views of your application.

Speaking more specifically, it's possible to feed the "$this->load->view()" method of CI a third Boolean parameter, to return the contents of a view to calling code after the view has been parsed. This is a handy variation of the method demonstrated in the previous article, and in this tutorial I'll be taking a close look at it, so you can grasp its underlying logic.

This technique could be useful when you want to render a certain block of code but don't want the application to have to reparse and rerender it. Pass the information to one view call, return the output back into a variable and push that back out into a main view any number of times.

0 comments voice your opinion now!
return string codeigniter view tutorial introduction


blog comments powered by Disqus

Similar Posts

Lee Davis' Blog: Zend Paginator Example

Zend Developer Zone: Build an Enterprise-Grade PHP Stack with Zend Server 5.0 and Oracle 11g

WeberDev.com: PHP 101 (part 11) - Sinfully Simple (SimpleXML)

Community News: The Pipeline Project (MVC-based Framework)

MaltBlue.com: Hot to Use the Zend Form ViewScript Decorator in All Modules


Community Events





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


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

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