<?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: CodeIgniter&#8230;Meet Minify</title>
	<atom:link href="http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/</link>
	<description>Practical techniques for raising a well-adjusted database</description>
	<lastBuildDate>Tue, 17 Jan 2012 12:33:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: CodeIgniter and Minify Redux &#124; No Droids Allowed</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-1317</link>
		<dc:creator>CodeIgniter and Minify Redux &#124; No Droids Allowed</dc:creator>
		<pubDate>Thu, 23 Jul 2009 20:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-1317</guid>
		<description>[...] previous article about CodeIgniter and Minify was a relative hit (relative only to my other posts that is), but some thinking since the original [...]</description>
		<content:encoded><![CDATA[<p>[...] previous article about CodeIgniter and Minify was a relative hit (relative only to my other posts that is), but some thinking since the original [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ki</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-642</link>
		<dc:creator>ki</dc:creator>
		<pubDate>Tue, 23 Jun 2009 13:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-642</guid>
		<description>Hi,
Firstly, thanks for the ONLY tutorial on how to integrate minify into CI. It is truely a great work. I guess CI updates have rendered some parts inoperable, but I was hoping to ask you if you could assist me in finishing this tutorial update to latest CI?
This is what I got so far...
1) $pageName was added to an array - CI did not allow it to be passed on as a variable - but that was when it was in the view, now its in my Master controller called MY_Controller that loads variables used throughout the whole site. I added this to the end of MY_Controller:
//for globally included header file
//so know which CSS or JS files to include
$pageName = $this-&gt;uri-&gt;segment(1, 0);
$pageName .= &quot;/&quot; . $this-&gt;uri-&gt;segment(2, &quot;index&quot;);
$minify_data[&#039;pageName&#039;] = $pageName;
$this-&gt;load-&gt;library(&quot;MY_Includes&quot;, $minify_data);
$this-&gt;data[&#039;js_stitched&#039;] = $this-&gt;my_includes-&gt;jsTag();

2) MY_Includes loader is now:
$this-&gt;controller = $controller[&#039;pageName&#039;];

3) This is where I got stuck...
includetag.php was not producing any result - I was getting the reference correct, but it was blank..
Code:
&lt;script src=&quot;&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
Would Produce:



(as seen with firefox FireBug extension)

When I played around, I found out that the 
$this-&gt;load-&gt;library(&#039;MY_Includes&#039;, $data );
in includetag.php may not be loading...

Any thoughts?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Firstly, thanks for the ONLY tutorial on how to integrate minify into CI. It is truely a great work. I guess CI updates have rendered some parts inoperable, but I was hoping to ask you if you could assist me in finishing this tutorial update to latest CI?<br />
This is what I got so far&#8230;<br />
1) $pageName was added to an array &#8211; CI did not allow it to be passed on as a variable &#8211; but that was when it was in the view, now its in my Master controller called MY_Controller that loads variables used throughout the whole site. I added this to the end of MY_Controller:<br />
//for globally included header file<br />
//so know which CSS or JS files to include<br />
$pageName = $this-&gt;uri-&gt;segment(1, 0);<br />
$pageName .= &#8220;/&#8221; . $this-&gt;uri-&gt;segment(2, &#8220;index&#8221;);<br />
$minify_data['pageName'] = $pageName;<br />
$this-&gt;load-&gt;library(&#8220;MY_Includes&#8221;, $minify_data);<br />
$this-&gt;data['js_stitched'] = $this-&gt;my_includes-&gt;jsTag();</p>
<p>2) MY_Includes loader is now:<br />
$this-&gt;controller = $controller['pageName'];</p>
<p>3) This is where I got stuck&#8230;<br />
includetag.php was not producing any result &#8211; I was getting the reference correct, but it was blank..<br />
Code:<br />
&lt;script src=&#8221;" type=&#8221;text/javascript&#8221; charset=&#8221;utf-8&#8243;&gt;<br />
Would Produce:</p>
<p>(as seen with firefox FireBug extension)</p>
<p>When I played around, I found out that the<br />
$this-&gt;load-&gt;library(&#8216;MY_Includes&#8217;, $data );<br />
in includetag.php may not be loading&#8230;</p>
<p>Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vdibart</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-637</link>
		<dc:creator>vdibart</dc:creator>
		<pubDate>Tue, 23 Jun 2009 10:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-637</guid>
		<description>Ki,

I make no claims that it&#039;s a drop-in upgrade.  I&#039;ve thought about making it more of a plugin, but honestly it doesn&#039;t fit my needs and I&#039;m not sure I have time to manage a spin-off project at this point.  I&#039;d be more than happy to help someone else get that going though.  In general this article was meant to be a tutorial for how I did it, inspiration to others if you will.  Your mileage may vary.  Yes, it is loaded from the controller because in strict MVC architecture little or no actual logic is performed in the view.  Also, the JS and CSS all have to be configured before you can write the header and footer of the HTML page.

Thanks for the feedback though and I hope it helps you to some degree.  I will fix the typo you mention.  The version I posted was edited to remove proprietary code, so that explains why some typos exist.  If you sent me a list of the &quot;implementation issues&quot; you mention I&#039;d be happy to see if there&#039;s something I can do to make integration smoother but as I said that wasn&#039;t my primary intention.

Thanks again.</description>
		<content:encoded><![CDATA[<p>Ki,</p>
<p>I make no claims that it&#8217;s a drop-in upgrade.  I&#8217;ve thought about making it more of a plugin, but honestly it doesn&#8217;t fit my needs and I&#8217;m not sure I have time to manage a spin-off project at this point.  I&#8217;d be more than happy to help someone else get that going though.  In general this article was meant to be a tutorial for how I did it, inspiration to others if you will.  Your mileage may vary.  Yes, it is loaded from the controller because in strict MVC architecture little or no actual logic is performed in the view.  Also, the JS and CSS all have to be configured before you can write the header and footer of the HTML page.</p>
<p>Thanks for the feedback though and I hope it helps you to some degree.  I will fix the typo you mention.  The version I posted was edited to remove proprietary code, so that explains why some typos exist.  If you sent me a list of the &#8220;implementation issues&#8221; you mention I&#8217;d be happy to see if there&#8217;s something I can do to make integration smoother but as I said that wasn&#8217;t my primary intention.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ki</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-634</link>
		<dc:creator>Ki</dc:creator>
		<pubDate>Tue, 23 Jun 2009 06:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-634</guid>
		<description>Great Job - but need lots and lots of effort making it work - need better documentation... 
Have you tried using this? 
Your Controller is called includetags.php 
while
src=”http://www.mysite.com/includetag(NO &#039;s&#039;)/js...&quot;
Even after this fix there are implementation issues. 
In addition, library needs to be loaded in Controller or master library, no the view...</description>
		<content:encoded><![CDATA[<p>Great Job &#8211; but need lots and lots of effort making it work &#8211; need better documentation&#8230;<br />
Have you tried using this?<br />
Your Controller is called includetags.php<br />
while<br />
src=”http://www.mysite.com/includetag(NO &#8216;s&#8217;)/js&#8230;&#8221;<br />
Even after this fix there are implementation issues.<br />
In addition, library needs to be loaded in Controller or master library, no the view&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ki</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-633</link>
		<dc:creator>Ki</dc:creator>
		<pubDate>Tue, 23 Jun 2009 04:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-633</guid>
		<description>Hi,
I was wondering if you can give me some guidance in using this class. I have downloaded the latest minify and installed it in my main directory (moved the &#039;min&#039; folder into /home/user/public_html). However, I am was not able to get it to work until I modified the MY_Includes.php to:
     //from minify examples:
    //Add the location of Minify&#039;s &quot;lib&quot; directory to the include_path. 
    ini_set(&#039;include_path&#039;, &#039;min/lib/.:&#039; . ini_get(&#039;include_path&#039;) ); &lt;= removed &#039;/&#039; before &#039;min&#039;
    require &#039;Minify/Build.php&#039;;
    require &#039;Minify.php&#039;;
I have added default CSS sheets to be included in all pages, but they do not seem to be showing up at all - any idea?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I was wondering if you can give me some guidance in using this class. I have downloaded the latest minify and installed it in my main directory (moved the &#8216;min&#8217; folder into /home/user/public_html). However, I am was not able to get it to work until I modified the MY_Includes.php to:<br />
     //from minify examples:<br />
    //Add the location of Minify&#8217;s &#8220;lib&#8221; directory to the include_path.<br />
    ini_set(&#8216;include_path&#8217;, &#8216;min/lib/.:&#8217; . ini_get(&#8216;include_path&#8217;) ); &lt;= removed &#8216;/&#8217; before &#8216;min&#8217;<br />
    require &#8216;Minify/Build.php&#8217;;<br />
    require &#8216;Minify.php&#8217;;<br />
I have added default CSS sheets to be included in all pages, but they do not seem to be showing up at all &#8211; any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrclay.org &#187; Archive &#187; Minify getting out there</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-378</link>
		<dc:creator>mrclay.org &#187; Archive &#187; Minify getting out there</dc:creator>
		<pubDate>Sat, 10 Jan 2009 15:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-378</guid>
		<description>[...] No Droids Allowed has integrated Minify into a CodeIgniter project. [...]</description>
		<content:encoded><![CDATA[<p>[...] No Droids Allowed has integrated Minify into a CodeIgniter project. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathew</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-356</link>
		<dc:creator>Mathew</dc:creator>
		<pubDate>Thu, 09 Oct 2008 04:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-356</guid>
		<description>No it&#039;s quite alright I just had to make a few adjustments. First off I think the version of CI I&#039;m using does not allow loading of the library in the views(my suspicion actually). So I had to load the library the traditional OOP way. I change the the name of MY_Include.php to MinifyToo.php and it worked. 

But I haven&#039;t found a way to output JS and CSS. It just outputs something like this...


or 

href=&quot;http://pleeperps.localhost/includetag/css/project-viewProject/0&quot;

I don&#039;t know what that means but I&#039;m more than willing to sit down with you and help you rewrite some parts of the library.</description>
		<content:encoded><![CDATA[<p>No it&#8217;s quite alright I just had to make a few adjustments. First off I think the version of CI I&#8217;m using does not allow loading of the library in the views(my suspicion actually). So I had to load the library the traditional OOP way. I change the the name of MY_Include.php to MinifyToo.php and it worked. </p>
<p>But I haven&#8217;t found a way to output JS and CSS. It just outputs something like this&#8230;</p>
<p>or </p>
<p>href=&#8221;http://pleeperps.localhost/includetag/css/project-viewProject/0&#8243;</p>
<p>I don&#8217;t know what that means but I&#8217;m more than willing to sit down with you and help you rewrite some parts of the library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vdibart</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-355</link>
		<dc:creator>vdibart</dc:creator>
		<pubDate>Thu, 09 Oct 2008 03:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-355</guid>
		<description>I&#039;ll take this offline and report back once the issue is worked out so others know what was going on....</description>
		<content:encoded><![CDATA[<p>I&#8217;ll take this offline and report back once the issue is worked out so others know what was going on&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vdibart</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-354</link>
		<dc:creator>vdibart</dc:creator>
		<pubDate>Thu, 09 Oct 2008 03:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-354</guid>
		<description>Mathew,

Thanks for the question.

I installed Minify outside of my web root.  So, for instance, on my hosting account it was in /home/vdibart/minify.  It actually doesn&#039;t matter because of the line I pointed out towards the top of the post:

ini_set(’include_path’, ‘/home/vdibart/minify/lib/.:’ . ini_get(’include_path’) );

This is the absolute path to the Minify install directory, so effectively you can put Minify anywhere.  I don&#039;t have any opinion on the &quot;right&quot; place to put it, but others might.

Hope this helped.</description>
		<content:encoded><![CDATA[<p>Mathew,</p>
<p>Thanks for the question.</p>
<p>I installed Minify outside of my web root.  So, for instance, on my hosting account it was in /home/vdibart/minify.  It actually doesn&#8217;t matter because of the line I pointed out towards the top of the post:</p>
<p>ini_set(’include_path’, ‘/home/vdibart/minify/lib/.:’ . ini_get(’include_path’) );</p>
<p>This is the absolute path to the Minify install directory, so effectively you can put Minify anywhere.  I don&#8217;t have any opinion on the &#8220;right&#8221; place to put it, but others might.</p>
<p>Hope this helped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathew</title>
		<link>http://www.nodroidsallowed.com/2008/09/22/codeignitermeet-minify/comment-page-1/#comment-353</link>
		<dc:creator>Mathew</dc:creator>
		<pubDate>Thu, 09 Oct 2008 03:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.nodroidsallowed.com/?p=27#comment-353</guid>
		<description>Oh another thing I did everything you instructed. But it seems I caught a snag in the process. I placed all the files in their respective directories but when I tried to load the library in my global header. CI spits an error saying that it cannot load the library. hmmm....</description>
		<content:encoded><![CDATA[<p>Oh another thing I did everything you instructed. But it seems I caught a snag in the process. I placed all the files in their respective directories but when I tried to load the library in my global header. CI spits an error saying that it cannot load the library. hmmm&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.410 seconds -->

