CodeIgniter Forums
How to check if a view exists - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How to check if a view exists (/showthread.php?tid=7216)

Pages: 1 2


How to check if a view exists - El Forum - 03-31-2008

[eluser]barbazul[/eluser]
[quote author="wish_bear" date="1206962621"]Since you guys are discussing regarding views, I think I just want to ask a question cause its this is really making me wonder why? and what is the difference, and when is it or what situation will I use it. Here is the killer question.

What is the difference with true in the view with true is typed capitalize and a true which is type in lowercase.

Code:
$this->load->view('home/blog', $data, TRUE);

VS.

Code:
$this->load->view('home/blog', $data, true);

-----

Hope you can enlighten me with this. Thanks![/quote]

There is no difference


How to check if a view exists - El Forum - 03-31-2008

[eluser]dark_lord[/eluser]
ooooooooo........ I see... Thanks guys! :-) You all always ROCKS!!! Keep ROckin!


How to check if a view exists - El Forum - 03-31-2008

[eluser]John_Betong[/eluser]
[quote author="wish_bear" date="1206962913"]ooooooooo........ I see... Thanks guys! :-) You all always ROCKS!!! Keep ROckin![/quote]
 
 
I had vagure memories about this so practising with the search feature managed to resurrect this post from Derek Allard

 
The relevant snippet can be found here