<?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: Two step view with CodeIgniter</title>
	<atom:link href="http://avnetlabs.com/php/two-step-view-with-codeigniter/feed" rel="self" type="application/rss+xml" />
	<link>http://avnetlabs.com/php/two-step-view-with-codeigniter</link>
	<description>Accessible web development</description>
	<lastBuildDate>Fri, 01 Jan 2010 09:58:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kumar Chetan Sharma</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-779</link>
		<dc:creator>Kumar Chetan Sharma</dc:creator>
		<pubDate>Thu, 10 Dec 2009 08:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-779</guid>
		<description>Hi,
The solution you presented made me smile. I have been using this two step method in my custom developed CMS solutions. I will be pitching CI for one of my project and if approved I will be developing a CMS based on CI. For all uninformed, if you work on windows and modify core CI library, make sure you name your files &quot;MY_&quot; not simply &quot;My&quot;, windows treat &quot;My&quot; and &quot;MY&quot; same.
I really loved the CI vs other framework comparison you have done.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
The solution you presented made me smile. I have been using this two step method in my custom developed CMS solutions. I will be pitching CI for one of my project and if approved I will be developing a CMS based on CI. For all uninformed, if you work on windows and modify core CI library, make sure you name your files &#8220;MY_&#8221; not simply &#8220;My&#8221;, windows treat &#8220;My&#8221; and &#8220;MY&#8221; same.<br />
I really loved the CI vs other framework comparison you have done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harman deep singh</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-764</link>
		<dc:creator>harman deep singh</dc:creator>
		<pubDate>Sat, 28 Nov 2009 09:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-764</guid>
		<description>src=&quot;”          Hey Comment System is Bad of this blog
i am not able to write lines in src=&quot;&quot; So please do it your self i tried twice ok i hope admin will correct this ,, have a nice day</description>
		<content:encoded><![CDATA[<p>src=&#8221;”          Hey Comment System is Bad of this blog<br />
i am not able to write lines in src=&#8221;" So please do it your self i tried twice ok i hope admin will correct this ,, have a nice day</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harman deep singh</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-763</link>
		<dc:creator>harman deep singh</dc:creator>
		<pubDate>Sat, 28 Nov 2009 09:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-763</guid>
		<description>//******************in partials/js.tpl.php***********

&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;&quot;&gt;</description>
		<content:encoded><![CDATA[<p>//******************in partials/js.tpl.php***********</p>
<p>&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;&#8221;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harman deep singh</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-762</link>
		<dc:creator>harman deep singh</dc:creator>
		<pubDate>Sat, 28 Nov 2009 09:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-762</guid>
		<description>hi , friends a Big thanks  for this article ,
i create function Same As &quot;add_css()&quot; =&gt; &quot;loadJs()&quot;

///******************in MY_Controller.php***********

 protected function loadJs($filename) {
        $this-&gt;data[&#039;js&#039;] .= $this-&gt;load-&gt;view(&quot;partials/js.tpl.php&quot;, array(&#039;filename&#039; =&gt; $filename), true);
    }

//***************************************************

//******************in partials/js.tpl.php***********

&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;&quot;&gt;

//**************************************************

//****************uses*****************************

 $this-&gt;data[&#039;js&#039;] = &#039;jquery&#039;;
 $this-&gt;data[&#039;js&#039;] = &#039;tiny_mce&#039;;

//**************************************************

//Enjoy Coding with CI
//harman_ds Says Big Thanks to all</description>
		<content:encoded><![CDATA[<p>hi , friends a Big thanks  for this article ,<br />
i create function Same As &#8220;add_css()&#8221; =&gt; &#8220;loadJs()&#8221;</p>
<p>///******************in MY_Controller.php***********</p>
<p> protected function loadJs($filename) {<br />
        $this-&gt;data['js'] .= $this-&gt;load-&gt;view(&#8220;partials/js.tpl.php&#8221;, array(&#8216;filename&#8217; =&gt; $filename), true);<br />
    }</p>
<p>//***************************************************</p>
<p>//******************in partials/js.tpl.php***********</p>
<p>&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;&#8221;&gt;</p>
<p>//**************************************************</p>
<p>//****************uses*****************************</p>
<p> $this-&gt;data['js'] = &#8216;jquery&#8217;;<br />
 $this-&gt;data['js'] = &#8216;tiny_mce&#8217;;</p>
<p>//**************************************************</p>
<p>//Enjoy Coding with CI<br />
//harman_ds Says Big Thanks to all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark C</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-727</link>
		<dc:creator>Mark C</dc:creator>
		<pubDate>Mon, 02 Nov 2009 15:10:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-727</guid>
		<description>My last post got chopped:

In controller:
$data[&#039;content&#039;] = &#039;my_partial_view&#039;;
$this-&gt;load-&gt;view(&#039;layouts/main&#039;, $data);

In &#039;general&#039; view:
$this-&gt;load-&gt;view($content);</description>
		<content:encoded><![CDATA[<p>My last post got chopped:</p>
<p>In controller:<br />
$data['content'] = &#8216;my_partial_view&#8217;;<br />
$this-&gt;load-&gt;view(&#8216;layouts/main&#8217;, $data);</p>
<p>In &#8216;general&#8217; view:<br />
$this-&gt;load-&gt;view($content);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark C</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-726</link>
		<dc:creator>Mark C</dc:creator>
		<pubDate>Mon, 02 Nov 2009 15:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-726</guid>
		<description>It&#039;s also worth noting that views can be nested within views, which means you can achieve a two step view very simply:

In controller:
$data[&#039;content&#039;] = &#039;my_partial_view&#039;;
$this-&gt;load-&gt;view(&#039;layouts/main&#039;, $data);

In &#039;general&#039; view:
load-&gt;view($content); ?&gt;</description>
		<content:encoded><![CDATA[<p>It&#8217;s also worth noting that views can be nested within views, which means you can achieve a two step view very simply:</p>
<p>In controller:<br />
$data['content'] = &#8216;my_partial_view&#8217;;<br />
$this-&gt;load-&gt;view(&#8216;layouts/main&#8217;, $data);</p>
<p>In &#8216;general&#8217; view:<br />
load-&gt;view($content); ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-683</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Sat, 25 Jul 2009 18:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-683</guid>
		<description>Hi, nice article.
IMHO I think the &quot;css.tpl.php&quot; is unnecessary with .tpl.php suffix, since CI load it by default if you don&#039;t specify it.

Nice blog, thanks.</description>
		<content:encoded><![CDATA[<p>Hi, nice article.<br />
IMHO I think the &#8220;css.tpl.php&#8221; is unnecessary with .tpl.php suffix, since CI load it by default if you don&#8217;t specify it.</p>
<p>Nice blog, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ekerete</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-633</link>
		<dc:creator>Ekerete</dc:creator>
		<pubDate>Fri, 12 Jun 2009 21:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-633</guid>
		<description>@ReLexEd

I have just tried this with a controller in a subdirectory and I&#039;m afraid you&#039;re right.

I ended up having to use the Router object (which is available as one of the controller properties) to retrieve the path. In retrospect, I should have used this in the first place as it&#039;s more reliable (but then again, I don&#039;t have any nested controllers).

I have updated the post to reflect this.</description>
		<content:encoded><![CDATA[<p>@ReLexEd</p>
<p>I have just tried this with a controller in a subdirectory and I&#8217;m afraid you&#8217;re right.</p>
<p>I ended up having to use the Router object (which is available as one of the controller properties) to retrieve the path. In retrospect, I should have used this in the first place as it&#8217;s more reliable (but then again, I don&#8217;t have any nested controllers).</p>
<p>I have updated the post to reflect this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ekerete</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-632</link>
		<dc:creator>Ekerete</dc:creator>
		<pubDate>Fri, 12 Jun 2009 20:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-632</guid>
		<description>@Matt,
Glad it helped.</description>
		<content:encoded><![CDATA[<p>@Matt,<br />
Glad it helped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ReLexEd</title>
		<link>http://avnetlabs.com/php/two-step-view-with-codeigniter/comment-page-1#comment-631</link>
		<dc:creator>ReLexEd</dc:creator>
		<pubDate>Fri, 12 Jun 2009 11:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.avnetlabs.com/php/two-step-view-with-codeigniter#comment-631</guid>
		<description>First up, a big thanks to Ekerete!

This has put me on the right track, and I&#039;m using this one very thankfully....

There is however one little thing I&#039;m going to have to fix over the next few days; this solution will not play very well if you have placed controllers in subfolders, and wish to keep the same structure for the views.

Has to do with the following line:
$this-&gt;action = $this-&gt;uri-&gt;segment(2, &#039;index&#039;);

If anyone has already &#039;fixed&#039; this little one, please share ;) I will try to fix this in my weekend, and if it passes mustard, I will post the results here.</description>
		<content:encoded><![CDATA[<p>First up, a big thanks to Ekerete!</p>
<p>This has put me on the right track, and I&#8217;m using this one very thankfully&#8230;.</p>
<p>There is however one little thing I&#8217;m going to have to fix over the next few days; this solution will not play very well if you have placed controllers in subfolders, and wish to keep the same structure for the views.</p>
<p>Has to do with the following line:<br />
$this-&gt;action = $this-&gt;uri-&gt;segment(2, &#8216;index&#8217;);</p>
<p>If anyone has already &#8216;fixed&#8217; this little one, please share <img src='http://avnetlabs.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I will try to fix this in my weekend, and if it passes mustard, I will post the results here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.274 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-01-04 23:19:38 -->
