<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building Applications using CodeIgniter (Part 1) &#8211; File Structure</title>
	<atom:link href="http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/</link>
	<description>Programmer Extraordinaire</description>
	<lastBuildDate>Tue, 07 Feb 2012 05:40:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Integrating Wordpress &#38; CodeIgniter &#124; Marion Newlevant: Web Developer</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-832</link>
		<dc:creator>Integrating Wordpress &#38; CodeIgniter &#124; Marion Newlevant: Web Developer</dc:creator>
		<pubDate>Mon, 06 Dec 2010 08:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-832</guid>
		<description>[...] set up CodeIgniter file structure w/ application at same level as system, and top level assets dir (not necessary, but I like it this way): http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structu... [...]</description>
		<content:encoded><![CDATA[<p>[...] set up CodeIgniter file structure w/ application at same level as system, and top level assets dir (not necessary, but I like it this way): <a href="http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structu.." rel="nofollow">http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structu..</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-792</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 24 Aug 2010 13:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-792</guid>
		<description>Nuno, the download I created is really to be used as a template so I don&#039;t necessarily want to add any extra files. Including a template within a layout is just as easy as loading another view file but within a view file. So, within your layout view file you simple say $this-&gt;load-&gt;view(&#039;_templates/footer&#039;); or something like that. In this case I&#039;m loading the footer.php view file within the _templates folder. That will display that template within the view.

As far as my layouts are concerned, I simply echo a bunch of variables within the view and then pass those parameters to the view from the controller. In some instances I&#039;m returning views as strings to simplify things. To return a view as a string you simply add a TRUE parameter to the load function like so:  $this-&gt;load-&gt;view(&#039;_templates/footer&#039;, $params, TRUE); and that returns the specified view as a string into a variable which is then passed to the layout view.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Nuno, the download I created is really to be used as a template so I don&#8217;t necessarily want to add any extra files. Including a template within a layout is just as easy as loading another view file but within a view file. So, within your layout view file you simple say $this-&gt;load-&gt;view(&#8216;_templates/footer&#8217;); or something like that. In this case I&#8217;m loading the footer.php view file within the _templates folder. That will display that template within the view.</p>
<p>As far as my layouts are concerned, I simply echo a bunch of variables within the view and then pass those parameters to the view from the controller. In some instances I&#8217;m returning views as strings to simplify things. To return a view as a string you simply add a TRUE parameter to the load function like so:  $this-&gt;load-&gt;view(&#8216;_templates/footer&#8217;, $params, TRUE); and that returns the specified view as a string into a variable which is then passed to the layout view.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nuno</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-791</link>
		<dc:creator>Nuno</dc:creator>
		<pubDate>Sun, 22 Aug 2010 03:28:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-791</guid>
		<description>Hi Chris
I&#039;m starting my move to CI and MVC approach, and I find your articles so interesting...
I&#039;m still heaving troubles reproducing your views &lt;em&gt;_template-layout&lt;/em&gt; engine method.
Could you kindly rebuild your CI install from this series of articles, by adding a view using a template and calling parcial views from the layout file?
Those 2 extra files (template+layout) would clear the fog...

Thanks, best wishes</description>
		<content:encoded><![CDATA[<p>Hi Chris<br />
I&#8217;m starting my move to CI and MVC approach, and I find your articles so interesting&#8230;<br />
I&#8217;m still heaving troubles reproducing your views <em>_template-layout</em> engine method.<br />
Could you kindly rebuild your CI install from this series of articles, by adding a view using a template and calling parcial views from the layout file?<br />
Those 2 extra files (template+layout) would clear the fog&#8230;</p>
<p>Thanks, best wishes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-787</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 09 Aug 2010 14:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-787</guid>
		<description>Yes, I will typically create an &quot;admin&quot; or &quot;backend&quot; folder in the controllers directory. That way all admin controllers are separated from the rest of the project and they can only be accessed by /admin/controller. Beyond that though I really don&#039;t do much in the way of separation. I will sometimes also organize assets into front and back end but not too often.</description>
		<content:encoded><![CDATA[<p>Yes, I will typically create an &#8220;admin&#8221; or &#8220;backend&#8221; folder in the controllers directory. That way all admin controllers are separated from the rest of the project and they can only be accessed by /admin/controller. Beyond that though I really don&#8217;t do much in the way of separation. I will sometimes also organize assets into front and back end but not too often.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-786</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 02 Aug 2010 12:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-786</guid>
		<description>this is really a great article. However , I was wondering how do   you organize file structure for front and backend, would you create admin folder?</description>
		<content:encoded><![CDATA[<p>this is really a great article. However , I was wondering how do   you organize file structure for front and backend, would you create admin folder?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting Started with CodeIgniter and How to Create All Those Great Apps &#124; PHP Lovers</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-748</link>
		<dc:creator>Getting Started with CodeIgniter and How to Create All Those Great Apps &#124; PHP Lovers</dc:creator>
		<pubDate>Fri, 07 May 2010 07:15:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-748</guid>
		<description>[...] Applications using CodeIgniter Series: File Structure, Configuration,Helpers, Code [...]</description>
		<content:encoded><![CDATA[<p>[...] Applications using CodeIgniter Series: File Structure, Configuration,Helpers, Code [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roppa</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-610</link>
		<dc:creator>Roppa</dc:creator>
		<pubDate>Thu, 25 Mar 2010 12:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-610</guid>
		<description>Cool stuff. I love CI and will be using it a lot more so thanks for the info!</description>
		<content:encoded><![CDATA[<p>Cool stuff. I love CI and will be using it a lot more so thanks for the info!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting Started with CodeIgniter and How to Create All Those Great Apps &#171; Web Development News</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-592</link>
		<dc:creator>Getting Started with CodeIgniter and How to Create All Those Great Apps &#171; Web Development News</dc:creator>
		<pubDate>Thu, 11 Mar 2010 13:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-592</guid>
		<description>[...] Applications using CodeIgniter Series: File Structure, Configuration, Helpers, Code [...]</description>
		<content:encoded><![CDATA[<p>[...] Applications using CodeIgniter Series: File Structure, Configuration, Helpers, Code [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting Started with CodeIgniter and How to Create All Those Great Apps &#124; DevSnippets</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-588</link>
		<dc:creator>Getting Started with CodeIgniter and How to Create All Those Great Apps &#124; DevSnippets</dc:creator>
		<pubDate>Tue, 23 Feb 2010 12:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-588</guid>
		<description>[...] Applications using CodeIgniter Series: File Structure, Configuration, Helpers, Code [...]</description>
		<content:encoded><![CDATA[<p>[...] Applications using CodeIgniter Series: File Structure, Configuration, Helpers, Code [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.christophermonnat.com/2009/04/building-applications-using-codeigniter-part-1-file-structure/comment-page-1/#comment-493</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 14 Aug 2009 14:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.christophermonnat.com/?p=570#comment-493</guid>
		<description>Saad... you might have me stumped here. I&#039;ve never had to deal with a multi-lingual CI project before. I think your on the right track though. If you create 2 folders in the root of views called en and ar and then mirror the folder structure between the two, so the only difference is the text on the pages, you should be able to store a language preference in a session or something and then load the appropriate views based on that preference.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Saad&#8230; you might have me stumped here. I&#8217;ve never had to deal with a multi-lingual CI project before. I think your on the right track though. If you create 2 folders in the root of views called en and ar and then mirror the folder structure between the two, so the only difference is the text on the pages, you should be able to store a language preference in a session or something and then load the appropriate views based on that preference.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

