<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TechBytes &#187; Frameworks</title>
	<atom:link href="http://www.asim.pk/tag/frameworks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.asim.pk</link>
	<description>Technology Bytes</description>
	<lastBuildDate>Fri, 20 Jan 2012 12:48:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Exploring Kohana as an Alternative to CodeIgniter</title>
		<link>http://www.asim.pk/2010/01/07/exploring-kohana-as-an-alternative-to-codeigniter/</link>
		<comments>http://www.asim.pk/2010/01/07/exploring-kohana-as-an-alternative-to-codeigniter/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 19:00:54 +0000</pubDate>
		<dc:creator>Asim Zeeshan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Kohana]]></category>
		<category><![CDATA[KohanaPHP]]></category>
		<category><![CDATA[PHP Frameworks]]></category>
		<category><![CDATA[PHP5]]></category>

		<guid isPermaLink="false">http://www.asim.pk/?p=467</guid>
		<description><![CDATA[Brett from OnWired has written a very nice blog entry on Kohana and it is exactly what I have found Kohana to be. Hence I am sharing it here for the rest of the people to read. To view the &#8230; <a href="http://www.asim.pk/2010/01/07/exploring-kohana-as-an-alternative-to-codeigniter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://onwired.com/about/brett-buddin/" target="_blank"><strong>Brett</strong></a> from <a href="http://onwired.com/about/brett-buddin/" target="_blank"><strong>OnWired</strong></a> has written a very nice blog entry on Kohana and it is exactly what I have found Kohana to be. Hence I am sharing it here for the rest of the people to read. To view the blog entry please <strong><a href="http://onwired.com/blog/exploring-kohana-as-an-alternative-to-codeigniter/" target="_blank">go here</a></strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asim.pk/2010/01/07/exploring-kohana-as-an-alternative-to-codeigniter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Kohana or CodeIgniter or CakePHP?</title>
		<link>http://www.asim.pk/2010/01/06/kohana-or-codeigniter-or-cakephp/</link>
		<comments>http://www.asim.pk/2010/01/06/kohana-or-codeigniter-or-cakephp/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 17:30:21 +0000</pubDate>
		<dc:creator>Asim Zeeshan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Kohana]]></category>
		<category><![CDATA[KohanaPHP]]></category>
		<category><![CDATA[PHP Frameworks]]></category>
		<category><![CDATA[PHP5]]></category>

		<guid isPermaLink="false">http://www.asim.pk/?p=463</guid>
		<description><![CDATA[I am going to start on a small system for internal use and I wanted to re-think my choice of CodeIgniter because it does not have templates or ORM. Guess what, I landed with KohanaPHP. It sounds very tempting that &#8230; <a href="http://www.asim.pk/2010/01/06/kohana-or-codeigniter-or-cakephp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am going to start on a small system for internal use and I wanted to re-think my choice of CodeIgniter because it does not have templates or ORM. Guess what, I landed with <a href="http://kohanaphp.com" target="_blank">KohanaPHP</a>. It sounds very tempting that a new MVC Framework based on CodeIgniter with new features (especially ORM) is here but the documentation is really really poor.</p>
<p>I tried googling for a book or tutorial and I was really disappointed to have found none. I tried Amazon.com for a book but no books. Looks like I have landed in some weird space that might be good looking but I need to get my hands dirty in the code to learn it and at the end of the day, it may seem that I have lost a lot of hours on this new Framework. Lets give it a try!</p>
<p><strong>Update:</strong> As of today (28th July, 2010), I am working on YII, its good, powerful and blazing fast. It has all the feature of CakePHP too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asim.pk/2010/01/06/kohana-or-codeigniter-or-cakephp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Creating and Installing crontabs using CodeIgniter</title>
		<link>http://www.asim.pk/2009/05/14/creating-and-installing-crontabs-using-codeigniter/</link>
		<comments>http://www.asim.pk/2009/05/14/creating-and-installing-crontabs-using-codeigniter/#comments</comments>
		<pubDate>Thu, 14 May 2009 07:10:33 +0000</pubDate>
		<dc:creator>Asim Zeeshan</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CI]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Cron]]></category>
		<category><![CDATA[Crontab]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP Frameworks]]></category>
		<category><![CDATA[PHP5]]></category>

		<guid isPermaLink="false">http://www.asim.pk/?p=330</guid>
		<description><![CDATA[Last night, I was trying to get a crontab working in CodeIgniter, since my current project (a personal project) is using CodeIgniter now. I didn&#8217;t wanted to use the conventional approach of running crontabs and my code seperate. Unfortunately, CodeIgniter &#8230; <a href="http://www.asim.pk/2009/05/14/creating-and-installing-crontabs-using-codeigniter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last night, I was trying to get a crontab working in CodeIgniter, since my current project (a personal project) is using CodeIgniter now. I didn&#8217;t wanted to use the conventional approach of running crontabs and my code seperate.</p>
<p>Unfortunately, CodeIgniter does not have support for Crontabs and I didn&#8217;t wanted to user wget in linux crontab to initiate unwanted requests.</p>
<p>I spent some time and came up with a solution. It uses</p>
<ol>
<li>CodeIgniter backend</li>
<li>Does not modify any core architecture of CodeIgniter</li>
<li>Keeps configuration at one place</li>
</ol>
<p>So enough of the summary and let me show you how its done.<br />
Create a file (e.g. cron.php) in the same place as your <strong>index.php</strong> and <strong>system</strong> folder. Here is its code</p>
<pre class="brush: php; title: ; notranslate">/**
* @author 	    Asim Zeeshan
* @web         http://www.asim.pk/
* @date		13th May, 2009
* @copyright 	No Copyrights, but please link back in any way
*/

/*
|---------------------------------------------------------------
| CASTING argc AND argv INTO LOCAL VARIABLES
|---------------------------------------------------------------
|
*/
$argc = $_SERVER['argc'];
$argv = $_SERVER['argv'];

// INTERPRETTING INPUT
if ($argc &gt; 1 &amp;&amp; isset($argv[1])) {
$_SERVER['PATH_INFO'] 	= $argv[1];
$_SERVER['REQUEST_URI'] = $argv[1];
} else {
$_SERVER['PATH_INFO'] 	= '/crons/index';
$_SERVER['REQUEST_URI'] = '/crons/index';
}

/*
|---------------------------------------------------------------
| PHP SCRIPT EXECUTION TIME ('0' means Unlimited)
|---------------------------------------------------------------
|
*/
set_time_limit(0);

require_once('index.php');

/* End of file test.php */
</pre>
<p>Now, we need a controller e.g. <strong>test</strong> so the controller code could be something like this. Please note that normally we do not need to output anything from these controllers since they are doing some background work or sending emails but for the sake of giving an example, I will be output-ing something to elaborate the example.</p>
<pre class="brush: php; title: ; notranslate">
/**
* @author 	    Asim Zeeshan
* @web         http://www.asim.pk/
* @date		13th May, 2009
* @copyright 	No Copyrights, but please link back in any way
*/&lt;/code&gt;

class Test extends Controller {

function __construct()
{
parent::Controller();
}

function index()
{
echo &quot;testing from index \n&quot;;
}

function test() {
echo &quot;testing from test \n&quot;;
}
}
</pre>
<p>Now execute crontab on linux command prompt</p>
<pre class="brush: plain; title: ; notranslate">php /full-path-to-cron-file/cron.php /test/index</pre>
<p>Voila! all you need now, is to setup the crontab like you normally do.<br />
This code is not shared under any license so feel free to copy/modify/use it. Please link back to this website / post in any way e.g. direct link, credits etc.</p>
<p>P.S. The examples above user PHP5 constructor, If you need to execute this code on PHP4, please modify the constructors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asim.pk/2009/05/14/creating-and-installing-crontabs-using-codeigniter/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

