<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>codeigniter &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/codeigniter/</link>
	<description>Feed of posts on WordPress.com tagged "codeigniter"</description>
	<pubDate>Wed, 08 Oct 2008 05:41:17 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[CodeIgniter AJAX Pagination Example/Guideline]]></title>
<link>http://tohin.wordpress.com/2008/10/07/codeigniter-ajax-pagination-exampleguideline/</link>
<pubDate>Tue, 07 Oct 2008 20:02:35 +0000</pubDate>
<dc:creator>tohin</dc:creator>
<guid>http://tohin.es.wordpress.com/2008/10/07/codeigniter-ajax-pagination-exampleguideline/</guid>
<description><![CDATA[I wanted to put this example a long time ago ..  Here is a small example (thanks to xwero; i took h]]></description>
<content:encoded><![CDATA[<p>I wanted to put this example a long time ago ..  Here is a small example (thanks to xwero; i took his code from <a href="http://codeigniter.com/forums/viewthread/93045/" target="_blank">here</a>  :D. I wanted to create a full application example but now i think it's better to show this one. It's not a tested code rather than a small guideline.</p>
<p> </p>
<p><code></p>
<pre>class Test extends Controller {

	function page($offset = 0)
	{
		ob_start();
		$this-&#62;ajax_page( 0 );
		$initial_content = ob_get_contents();
		ob_end_clean();	

		$data['table'] = "&#60;div id='content'&#62;" . $initial_content . "&#60;/div&#62;" ;

	    $this-&#62;load-&#62;view('page',$data);

	}

	function ajax_page($offset = 0)
	{
	  	$this-&#62;load-&#62;model('model');
		$this-&#62;load-&#62;library('Jquery_pagination');

		$config['base_url'] = site_url('test/ajax_page/');
		/* Here i am indicating to the url from where the pagination links and the table section will be fetched */

		$config['div'] = '#content';
		/* CSS selector  for the AJAX content */

		$config['total_rows'] = $this-&#62;model-&#62;num_rows();
	    $config['per_page'] = 20;

	    $this-&#62;jquery_pagination-&#62;initialize($config);

	    $this-&#62;load-&#62;library('table');

	    $html =  $this-&#62;jquery_pagination-&#62;create_links() . br(1)
				.  $this-&#62;table-&#62;generate($this-&#62;model-&#62;content( $limit, $offset));

		echo $html;
	}
}</pre>
<p></code></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Note:  Don't forget to add the jquery.js in your view file, Jquery_pagination.php in your library folder.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[RAD in CodeIgniter]]></title>
<link>http://tohin.wordpress.com/2008/10/06/rad-in-codeigniter/</link>
<pubDate>Mon, 06 Oct 2008 21:40:14 +0000</pubDate>
<dc:creator>tohin</dc:creator>
<guid>http://tohin.es.wordpress.com/2008/10/06/rad-in-codeigniter/</guid>
<description><![CDATA[What is the first thing you did when you start learning PHP? You wrote a PHP page which echoed ]]></description>
<content:encoded><![CDATA[<p>What is the first thing you did when you start learning PHP? You wrote a PHP page which echoed 'Hello World !' . Later you start developing sites for yourself and for other people. One fine day you somehow stumbled upon a framework. And at last you see that you need not to code much. Though Framework provides a good number of library and helpers bt still you do code everything from scratch. So, where is the RAD( Rapid Application Development ) which every framework shouts about. </p>
<p>Today i am going to show you or direct you to some of the contributions in CodeIgniter which will help you to develop a site rapidly ( :D ) . At least it's helping me out : </p>
<p><a target="_blank" href="http://www.kaydoo.co.uk/projects/backendpro">BackendPro Control Panel</a> </p>
<p>Every site whether it's a commercial or a personal, you need a user management system including role management. This control panel provides the exact thing. With some additional features like asset management, page and view ... please go and discover it. The documentation is fair enough to learn. If you have heard about matchbox then you may like it more. It uses it. So, you can integrate your modules with it in no time.</p>
<p><a target="_blank" href="http://www.rabbitforms.com/">Rabbit Forms</a> ( A CRUD automate Library )<br />&#160;<br />Now you have a Control Panel, and you need a CRUD system. Rabbit Forms is just the tool you need to have. I have included it with BackendPro and it helps me a lot. Including it with BackendPro is not that tough. Before you start with Rabbit Forms please view the video tutorial. Which helped me gr8. </p>
<p><big><big><span class="Apple-style-span" style="border-collapse:separate;color:rgb(39,52,60);font-family:Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:bold;letter-spacing:normal;line-height:12px;orphans:2;text-align:left;text-indent:0;text-transform:none;white-space:normal;widows:2;word-spacing:0;"></span></big></big><a target="_blank" href="http://codeigniter.com/forums/viewthread/92424">GandyXT</a> ( New CodeIgniter Package ) </p>
<p>This one is new in town. But it can give you a quick start. It includes XAJAX scripts, Asset helper, facebox, lightbox, .htaccess modification bundled with codeigniter installation.&#160; </p>
<p><a target="_blank" href="http://codeextinguisher.com/">CodeExtinguisher</a> ( Plug and Play ) </p>
<p>Though it&#160; seems to me that it's a combination of BackendPro and RabbitForms but till now it did not impressed me. I personally like to have control on each and every simple things. But why should you listen to me ?? Go and have a look at it. </p>
<p><a target="_blank" href="http://www.bambooinvoice.org/">Bamboo Invoice </a>( Invoicing System )</p>
<p>I will never forget this one. If you need an invoicing system i prefer this one. To know my opinion you can see one of my post. </p>
<p><a target="_blank" href="http://speedovation.org/">Blogmer</a> ( Blog System )</p>
<p>It looks impressive. If you need one go for it .. </p>
<p><b>ORM</b></p>
<p>I saw some ORM like <a target="_blank" href="http://codeigniter.com/wiki/DataMapper/">Datamapper</a>, <a target="_blank" href="http://codeigniter.com/wiki/IgnitedRecord/">IgnitedRecord</a> .&#160; </p>
<p>[ Note: There are many other&#160; contributions which can help you. Always keep an eye in <a target="_blank" href="http://codeigniter.com/wiki">wiki </a>and <a target="_blank" href="http://codeigniter.com/forums">forum </a>of CodeIgniter. ]</p>
<p></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Nifty time-saving form / validation function for CodeIgniter]]></title>
<link>http://momgeek.wordpress.com/?p=58</link>
<pubDate>Mon, 06 Oct 2008 17:49:45 +0000</pubDate>
<dc:creator>fast times at sweet valley high</dc:creator>
<guid>http://momgeek.es.wordpress.com/2008/10/06/nifty-time-saving-form-validation-function-for-codeigniter/</guid>
<description><![CDATA[Note: This needs to be seriously tweaked to work better with more complex model functions.  I am le]]></description>
<content:encoded><![CDATA[<p><span style="color:#ff0000;"><strong>Note: This needs to be seriously tweaked to work better with more complex model functions.  I am leaving this up but understand that for now it only handles one-variable model functions easily.</strong></span></p>
<p>I'm lazy when I code. By lazy I mean I detest retyping the same several codes of line multiple times throughout an app. My motto is (usually) if I have to use a/several line(s) more than 3 times it becomes a function so I can use and re-use it.</p>
<p>If you're like me, when you use the form features in CI you set up the controller part like so:</p>
<p><code><br />
if($this-&#62;validation-&#62;run() == FALSE) {<br />
$data["variable"] = "something";<br />
$this-&#62;load-&#62;view("view_template",$data);<br />
} else {<br />
$process = $this-&#62;model_name-&#62;model_function($this-&#62;validation-&#62;variable);<br />
//Success / error message here<br />
}</code></p>
<p>That (extremely simple) example uses only 7 lines of code. However, if you have an add + edit function in each controller and you have 10 controllers, that's (7+7)*10 = 140 lines that are really similar. I hear a function calling my name!</p>
<p>With the function I created I took those six lines of code and reduced them to this:<br />
<code>$this-&#62;library_name-&#62;validation_run("model_name","model_function",$this-&#62;validation-&#62;variable,"view_template",array("variable"=&#62;"something");</code></p>
<p>Pretty sweet, no? :)</p>
<p>Below is the function. I am assuming you have a basic to intermediate understanding of CI, so I won't go into a lot of depth explaining it. I placed validation_run in the custom forms library I use. You can use it in your own custom library or create a library out of it. If you put it in your own library, ensure that the method you are using to reference CI functions is reflected in validation_run ($this-&#62;obj,$ci,$this-&#62;ci, etc). Also ensure that the Validation and Model are loaded prior to calling validation_run.</p>
<p><code>function validation($model_name,$model_function,$model_function_variable,$layout_template,$data_array=NULL)<br />
{</code><code><br />
if($this-&#62;ci-&#62;validation-&#62;run() == FALSE) {<br />
//This allows the view to be called with or without parameters.<br />
if(!is_null($data_array)) {<br />
$this-&#62;ci-&#62;load-&#62;view($layout_template,$data_array);<br />
} else {<br />
$this-&#62;ci-&#62;load-&#62;view($layout_template);<br />
}<br />
} else {<br />
$process = $this-&#62;ci-&#62;$model_name-&#62;$model_function(</code><code>$model_function_variable</code><code>);<br />
//Use your favorite redirection method here<br />
}<br />
}</code></p>
<p>To use it, you'd simply call</p>
<p><code>$this-&#62;library_name-&#62;validation_run("model_name","model_function",$this-&#62;validation-&#62;variable,"view_template",array("variable"=&#62;"something");</code></p>
<p>For better readability you could do alternatively do it this way:</p>
<p><code>$this-&#62;library_name-&#62;validation_run(<br />
"model_name",<br />
"model_function",<br />
$this-&#62;validation-&#62;variable,<br />
"view_template",<br />
array("variable"=&#62;"something"<br />
);</code></p>
<p>Of course, you'd replace library_name with the library name you called it from.</p>
<p>Not everyone will have a use for this function; it's really only good for simple validation "running" . However, it's saved me so much time coding that I had to share it :)</p>
<p>Enjoy!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[ORM Model in CodeIgniter]]></title>
<link>http://sjcode.wordpress.com/?p=92</link>
<pubDate>Sat, 04 Oct 2008 08:08:40 +0000</pubDate>
<dc:creator>sj</dc:creator>
<guid>http://sjcode.es.wordpress.com/2008/10/04/ormmodel/</guid>
<description><![CDATA[CodeIgniter 的 Model 功能已可演 MVC 中 Model 角色，
在 Database 中提供了許多的工]]></description>
<content:encoded><![CDATA[<p>CodeIgniter 的 Model 功能已可演 MVC 中 Model 角色，<br />
在 Database 中提供了許多的工具可以快速的達到目標，<br />
但是在 ORM 的支援上就不是那麼的方便，<br />
<a title="http://stensi.com/datamapper/index.html" href="http://stensi.com/datamapper/index.html" target="_blank">DataMapper</a> 讓 CodeIgniter 的 Model 也支援 ORM。</p>
<p><!--more--></p>
<p>在 DataMapper &#62; <a title="http://stensi.com/datamapper/pages/download.html" href="http://stensi.com/datamapper/pages/download.html" target="_blank">Download</a> 頁中下載的檔案中，<br />
除了必要的系統檔案之外，<br />
還包含了一些範例的說明，<br />
基本上，<br />
只要依照 DataMapper &#62; <a title="http://stensi.com/datamapper/pages/installation.html" href="http://stensi.com/datamapper/pages/installation.html" target="_blank">Installation Instructions</a> 的說明，<br />
複製「datamapper.php」、「datamapper_lang.php」即可。</p>
<p>複製後，再到 autoload.php 中去加入設定即可，</p>
<blockquote><p>$autoload['libraries'] = array('database', 'masterpage');</p></blockquote>
<p>以上，<br />
就可以讓 CodeIgniter 增加對 ORM 的支援了。</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Ignited Record for CodeIgniter]]></title>
<link>http://shahjahanrussell.wordpress.com/?p=11</link>
<pubDate>Wed, 01 Oct 2008 08:04:03 +0000</pubDate>
<dc:creator>Shahjahan Russell</dc:creator>
<guid>http://shahjahanrussell.es.wordpress.com/2008/10/01/ignited-record-for-codeigniter/</guid>
<description><![CDATA[ 
What is IgnitedRecord?
IgnitedRecord is a relation handling ORM library, made for the PHP framewo]]></description>
<content:encoded><![CDATA[<p> </p>
<h1>What is IgnitedRecord?</h1>
<p>IgnitedRecord is a relation handling <abbr title="Object Relational Mapping" />ORM library, made for the PHP framework <a href="http://www.codeigniter.com/">CodeIgniter</a>.</p>
<p>The goal of <a class="wiki_link" href="http://shahjahanrussell.wordpress.com/wiki/show/IgnitedRecord/IgnitedRecord">IgnitedRecord</a> is to provide an easy to use, easily customizeable, ORM library to <a class="wiki_link" href="http://shahjahanrussell.wordpress.com/wiki/show/IgnitedRecord/CodeIgniter">CodeIgniter</a>.</p>
<h1>Features at a glance</h1>
<ul>
<li>Easily configurable</li>
<li>Uses default values if settings are not explicitly set</li>
<li>Relations:
<ul>
<li>Belongs to</li>
<li>Has Many</li>
<li>Has One</li>
<li>Has And Belongs To Many (shorted to habtm)</li>
</ul>
</li>
<li>When fetching related objects, it is possible to filter, order and modify the query in a large quantity of ways</li>
<li>Belongs To and Has One relations can be fetched easily through a JOIN with the help of join_related()</li>
<li>Behaviours, which can add and modify the functionality of IgnitedRecord</li>
<li>Hooks and triggers where you can put your own code</li>
<li>Complete support for PHP 4, no "hacks" or anyting else is required for IgintedRecord to work under PHP 4.</li>
<li>Method Chaining under PHP 5</li>
<li>Nested WHERE statements and subqueries, with help from <a class="wiki_link" href="http://shahjahanrussell.wordpress.com/wiki/show/IgnitedRecord/IgnitedQuery">IgnitedQuery</a></li>
<li>Partial support for multiple primary keys (relations are not supported, yet)</li>
</ul>
<h1>Benefits</h1>
<ul>
<li>Repetitious work is minimized.</li>
<li>You have a finished model base to builld on.</li>
<li>You don't have to write SQL if you don't want to.</li>
<li>The choice between updates and inserts is automatically determined.</li>
<li>The result resources are automatically cleaned up, to improve speed and lower memory consumption.</li>
<li>The code is easier to read, take this as an example:<br />
$posts = $user-&#62;related('posts')-&#62;order_by('name', 'desc')-&#62;get();<br />
// instead of:<br />
$posts = $this-&#62;db-&#62;from('posts')-&#62;where('user_id', $user-&#62;id)-&#62;order_by('name', 'desc')-&#62;get()-&#62;result();<br />
The difference will be even more obvious when more advanced queries are used.</li>
</ul>
<p>Download location:</p>
<p><a class="alignleft" title="Download latest version of Igniter Record" href="http://www.assembla.com/spaces/IgnitedRecord/documents" target="_blank">download latest version of Igniter Record</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Modular Extensions]]></title>
<link>http://shahjahanrussell.wordpress.com/2008/10/01/modular-extensions/</link>
<pubDate>Wed, 01 Oct 2008 07:49:52 +0000</pubDate>
<dc:creator>Shahjahan Russell</dc:creator>
<guid>http://shahjahanrussell.es.wordpress.com/2008/10/01/modular-extensions/</guid>
<description><![CDATA[Modular Extensions - HMVC

Modular Extensions makes CodeIgniter modular. Modules are groups of indep]]></description>
<content:encoded><![CDATA[<h2>Modular Extensions - HMVC</h2>
<div id="articleBody">
<p>Modular Extensions makes CodeIgniter modular. Modules are groups of independent CI components (typically, model, controller, view arranged in one application sub-directory) that can be dropped into CodeIgniter applications. HMVC stands for Hierarchical Model View Controller, which is a fancy way of saying nested modules!<br />
Module Controllers can be used as normal Controllers or HMVC Controllers and they can be used to help you build view partials.</p>
<h3>Modular Extensions installation</h3>
<p>1) Start with a clean CI install.<br />
2) Set $config[‘base_url’] correctly for your installation.<br />
3) Access the URL domain/subdir/index.php/welcome =&#62; shows Welcome to CodeIgniter<br />
4) Drop Modular Extensions libraries into application/libraries and application/helpers directories as specified.( after unzip the folder move the <strong>controller.php and My_router.php</strong> files into <strong>aplication\libraries </strong>and <strong>debug_helper.php and modules_helper.php</strong> files  into <strong>application\helpers folder</strong>)<br />
5) Access the URL domain/subdir/index.php/welcome =&#62; shows Welcome to CodeIgniter<br />
6) Create module directory structure application/modules/welcome/controllers.<br />
7) Move controller application/controllers/welcome.php to application/modules/welcome/controllers/welcome.php.<br />
8) Access the URL domain/subdir/index.php/welcome =&#62; shows Welcome to CodeIgniter<br />
9) Create directory application/modules/welcome/views.<br />
10) Move view application/views/welcome_message.php to application/modules/welcome/views/welcome_message.php<br />
11) Access the URL domain/subdir/index.php/welcome =&#62; shows Welcome to CodeIgniter</p>
<p>You now have a running Modular Extensions installation.</p>
<p><strong>Installation Guide Hints:</strong><br />
-Steps 1-3 tell you how to get a standard CI install working - if you have a clean/tested CI install, skip to step 4.<br />
 CI still works after installing ME - it shouldn’t interfere with the normal CI setup.<br />
-Steps 6-8 show ME working alongside CI - controller moved to the ME “welcome” module, the view file remains in the CI application/views directory - ME can find module resources in several places, including the application directory.<br />
-Steps 9-11 show ME working with both controller and view in “welcome” module - there should be no files in the application/controllers or application/views directories.</p>
<p><strong>Q. What is Modular HMVC, why should I use it? </strong></p>
<p>A. Modular HMVC = Multiple MVC triads</p>
<p>This is most useful when you need to load a view and its data within a view. Think about adding a shopping cart to a page. The shopping cart needs its own controller which may call a model to get cart data. Then the controller needs to load the data into a view. So instead of the main controller handling the page and the shopping cart, the shopping cart MVC can be loaded directly in the page. The main controller doesn’t need to know about it, and is totally isolated from it.</p>
<p>In CI we can’t call more than 1 controller per request. Therefore, to achieve HMVC, we have to simulate controllers. It can be done with libraries, or with this “Modular Extensions HMVC” contribution.</p>
<p>The differences between using a library and a “Modular HMVC” HMVC class is:<br />
1) No need to get and use the CI instance within an HMVC class<br />
2) HMVC classes are stored in a modules directory as opposed to the libraries directory.</p>
<p><strong>Q. Is Modular Extensions HMVC the same as Matchbox? </strong></p>
<p>A. Yes and No. Like Matchbox, ME makes modules “portable” to other installations. For example, if you make a nice self-contained model-controller-view set of files you can bring that MVC into another project by copying just one folder - everything is in one place instead of spread around model, view and controller folders.</p>
<p>ME is different from Matchbox because you can nest those modules. So, from another controller, you can get some of the nice output from the original, tidy MVC set without calling a controller via URI (i.e., another http call using file_get_contents() or curl). You can get controller output without having to go out through the http interface again.</p>
<p>Modular HMVC means modular MVC triads. Matchbox and Modular Extensions allows related controllers, models, libraries, views, etc. to be grouped together in module directories and used like a mini application. But, ME goes one step further and allows those modules to “talk” to each other.</p>
<p><a title="Modular_Extensions_-_FAQ" href="http://codeigniter.com/wiki/Modular_Extensions_-_FAQ/"></a></p>
<h3>Features:</h3>
<p>All controllers can contain an $autoload class variable, which holds an array of items to load prior to running the constructor. This can be used instead of module/config/autoload.php, however using the file takes precedence over the class variable.<br />
Modules::run() output is buffered, so any data returned or output directly from the controller is caught and returned to the caller. In particular, $this-&#62;load-&#62;view() can be used as you would in a normal controller, without the need for return.<br />
Controllers can be loaded as class variables of other controllers using $this-&#62;load-&#62;module(’module/controller’); or simply<br />
$this-&#62;load-&#62;module(’module’); if the controller name matches the module name.<br />
Any loaded module controller can then be used like a library, ie: $this-&#62;module_controller-&#62;do_stuff(), but it has access to its own models and libraries independently from the caller.<br />
Module controllers can have independent methods, located in a module/methods directory, these methods act as libraries extending their parent controller and have access to the parent controller features.<br />
Loading a method is achieved from a module controller by using $this-&#62;load-&#62;method(’method’); or from a view by using modules:run(), if the method name is not defined in the controller then the method subclass will be loaded and its own index() method will be called, however if the controller actually has the method, it will be called as normal.<br />
Controllers also have a instance() method that can be used instead of get_instance() in libraries and helpers etc.<br />
ie: $ci = controller::instance();<br />
Of course all module controllers are accessible from the URL via module/controller/method or simply module/method if the module and controller names match.<br />
However if you add the _remap() method to your controllers you can prevent unwanted access to them and redirect or flag an error as you like.</p>
<h3>Download</h3>
<p>Download new version 4.2: <a class="noArticle" title="modular_extensions_4206.zip" href="http://codeigniter.com/wiki/File:modular_extensions_4206.zip/"><span style="color:#0e7fc7;">File:modular extensions 4206.zip</span></a><br />
<strong>Note: Version 4.2 is not backward compatible with version 4.0</strong></p>
<h3>View Partials</h3>
<p>Your modules output will be buffered by the modules::run() function and the explicit return used in earlier versions is no longer required.<br />
Using a Module as a view partial from within a view is as easy as writing:</p>
<div class="codeblock"><code><span style="color:#0000bb;">&#60;?php </span><span style="color:#007700;">echo </span><span style="color:#0000bb;">modules</span><span style="color:#007700;">::</span><span style="color:#0000bb;">run</span><span style="color:#007700;">(</span><span style="color:#dd0000;">'module'</span><span style="color:#007700;">, </span><span style="color:#0000bb;">$data</span><span style="color:#007700;">, </span><span style="color:#dd0000;">'method'</span><span style="color:#007700;">) </span><span style="color:#0000bb;">?&#62;</span> </code></div>
<p>The $data and ‘method’ above are optional. The default method is index.</p>
<h3>Tips and Tricks:</h3>
<p><strong>Using language files</strong><br />
<span style="color:#ff0000;">application/modules/home/language/home_lang.php</span><br />
Put this in your controller-file:</p>
<div class="codeblock"><code><span style="color:#0000bb;">$this</span><span style="color:#007700;">-&#62;</span><span style="color:#0000bb;">load</span><span style="color:#007700;">-&#62;</span><span style="color:#0000bb;">language</span><span style="color:#007700;">(</span><span style="color:#dd0000;">'home'</span><span style="color:#007700;">);</span> </code></div>
<p> </p>
<p>On your view-file:</p>
<div class="codeblock"><code><span style="color:#0000bb;">&#60;?php </span><span style="color:#007700;">echo </span><span style="color:#0000bb;">$this</span><span style="color:#007700;">-&#62;</span><span style="color:#0000bb;">lang</span><span style="color:#007700;">-&#62;</span><span style="color:#0000bb;">line</span><span style="color:#007700;">(</span><span style="color:#dd0000;">'name'</span><span style="color:#007700;">);</span><span style="color:#0000bb;">?&#62;</span> </code></div>
<p> </p>
<p>If you want to specify the language of the language-file you are going to use, you can alter the first line in something like:</p>
<div class="codeblock"><code><span style="color:#0000bb;">$this</span><span style="color:#007700;">-&#62;</span><span style="color:#0000bb;">load</span><span style="color:#007700;">-&#62;</span><span style="color:#0000bb;">language</span><span style="color:#007700;">(</span><span style="color:#dd0000;">'home'</span><span style="color:#007700;">,</span><span style="color:#dd0000;">'english'</span><span style="color:#007700;">);</span> </code></div>
<p> </p>
<p><strong>Using debug</strong><br />
The debug_helper has two debug methods you might like to look at.<br />
debug($any_object); will display the $any_object and list its loaded libraries, using $this will display the current module.<br />
debug_in($any_object) or debug_in($any_array) will do a full dump on the subject.<br />
<span style="color:#ff0000;"><strong>NOTE:</strong></span><br />
If you debug_in() the CodeIgniter Core ($CI), you will get a page full of recursive arrays. This is not an issue because most of the recursions are only references back into $CI core objects.</p>
<h3>Issues</h3>
<p>Do not use the <strong>MY_Controller</strong> extension in your application/libraries directory. This will cause CodeIgniter to bypass loading Modular Extensions and modules will not function. If you need to run methods in a base controller define them in another module controller and use the controller autoload functionality.<br />
MY_ prefixed resources are not loaded by ME when they are inside the module directory (e.g., MY_directory_helper.php is not loaded when it is in the modulename/helpers directory). This is because ME doesn’t check for MY_ extensions in modules. To get new functionality using helpers, plugins, models, etc… either make a new named file and load that resource or put your MY_ prefixed resource up in the requisite application directory (helpers for a MY_ helper, libraries for a MY_ library, etc…).</p>
<p><!-- BEGIN 'Category' Namespace Stuff --><!-- END 'Category' Namespace Stuff --><!-- BEGIN Categories for Page --></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CodeIgniter: un Framework tutto da scoprire...]]></title>
<link>http://miky4e.wordpress.com/?p=7</link>
<pubDate>Tue, 30 Sep 2008 15:49:55 +0000</pubDate>
<dc:creator>miky4e</dc:creator>
<guid>http://miky4e.es.wordpress.com/2008/09/30/codeigniter-un-framework-tutto-da-scoprire/</guid>
<description><![CDATA[Ho da poco iniziato lo sviluppo di alcune applicazioni web con il famoso Framework Open Source CodeI]]></description>
<content:encoded><![CDATA[<p><a href="http://miky4e.files.wordpress.com/2008/09/ci_logo.jpg"><img class="alignleft size-full wp-image-8" title="ci_logo" src="http://miky4e.wordpress.com/files/2008/09/ci_logo.jpg" alt="" width="200" height="106" /></a>Ho da poco iniziato lo sviluppo di alcune applicazioni web con il famoso <strong>Framework</strong> Open Source <strong>CodeIgniter</strong>. </p>
<p>Beh, che posso dire? Sono molto soddisfatto dei risultati che sto ottenendo; infatti <strong>CI</strong> rispecchia pienamente la filosofia di sviluppo e i principi attraverso i quali viene sponsorizzato dalla <strong>EllisLab.</strong></p>
<p><strong>CodeIgniter</strong> è un Framework sviluppato in <strong>PHP4</strong>, compatibile con <strong>PHP5</strong> che supporta una miriade di database (MySQL, MySQLi, Oracle, PostgreSql, e tanti altri ancora...).</p>
<p>Rilasciato sotto licenza<strong> GNU/GPL </strong>è composto da una attivissima comunità online e da una ricchissima documentazione (forse la più ricca che io abbia mai visto, per un <strong>Framework</strong>, <span style="text-decoration:line-through;">Apple Cocoa</span> esclusa ;) )</p>
<p>Beh, che posso aggiungere ancora?</p>
<p>Provatelo, programmatori web, ne rimarrete stupiti!</p>
<p>Nei prossimi giorni pubblicherò qualche brevissimo articolo su come realizzare semplici e validi struttere MVC, autenticazioni utenti, gestione delle sessioni e qualche upload di file.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[如何讓不同的 view 都共用同樣的 Layout]]></title>
<link>http://sjcode.wordpress.com/?p=63</link>
<pubDate>Tue, 30 Sep 2008 15:19:08 +0000</pubDate>
<dc:creator>sj</dc:creator>
<guid>http://sjcode.es.wordpress.com/2008/09/30/customerizelayout/</guid>
<description><![CDATA[網站中的每個版面通常會包含許多共通的區塊，
像是頁首的標題，目錄，頁]]></description>
<content:encoded><![CDATA[<p>網站中的每個版面通常會包含許多共通的區塊，<br />
像是頁首的標題，目錄，頁中的廣告，<br />
甚至頁尾的版權說明，<br />
在 CodeIgniter 中，如果每個 View 都有一些共用區塊，<br />
就要在每一個 View 中都複製貼上大量共用的區塊，<br />
這當然絕對不是一個好方法，<br />
這裡利用 CodeIgniter 提供的 Library 稍作修改來說明。</p>
<p><!--more--></p>
<p>在 CodeIgniter 的 Library 提供了一個 Layout 的方法，<br />
檔案在「..\system\libraries\Layout.php」，<br />
基本上只要稍微修改這個檔案即可，<br />
但是在儘量不動到原始檔案的原則下，<br />
這裡把檔案另外複製再來增加必要的功能。</p>
<p>ps. 除了設定的部份之外，個人習慣不去動 framework 原本的任何東西。</p>
<p>1. 新增 Library</p>
<p>初步動作其實只是複製修改原本的 library ，<br />
先將「 ..\system\libraries\Layout.php」 複製為 「..\system\application\libraries\Masterpage.php」<br />
他的功能其實和 Layout 一樣。開啟「Masterpage.php」，將「Layout 」都改為「Masterpage」，</p>
<blockquote><p>class MasterPage<br />
{<br />
...<br />
function MasterPage($MasterPage = "<span style="color:#ff0000;"><strong>template</strong></span>")<br />
{<br />
$this-&#62;obj =&#38; get_instance();<br />
$this-&#62;MasterPage = $MasterPage;<br />
}</p>
<p>function setMasterPage($MasterPage)<br />
{<br />
$this-&#62;MasterPage = $MasterPage;<br />
}</p></blockquote>
<p>在 function MasterPage()中的 template 就是版面設計的檔案，<br />
也就是之後在 view 中要載入的版面。</p>
<p>如果要使用這個 Library 必須要在每個 view 中都 load ，</p>
<blockquote><p>$this-&#62;load-&#62;library('Masterpage');</p></blockquote>
<p>所以，還是到「..\system\application\config\autoload.php」修改就可以了。</p>
<blockquote><p>$autoload['libraries'] = array('Masterpage');</p></blockquote>
<p>2. 新增 「template.php」</p>
<p>在「..\system\application\view\」中新增「template.php」，並加入以下內容</p>
<blockquote><p>something before<br />
&#60;hr/&#62;<br />
&#60;?=$<strong><span style="color:#ff0000;">main</span></strong>?&#62;<br />
&#60;hr/&#62;<br />
and something after that.</p></blockquote>
<p>3. 修改 $loadedData[]</p>
<p>在「Masterpage.php」中修改</p>
<blockquote><p>$loadedData = array();<br />
$loadedData['<span style="color:#ff0000;"><strong>main</strong></span>'] = $this-&#62;obj-&#62;load-&#62;view($view,$data,true);</p></blockquote>
<p>4. 套用版面</p>
<p>回到你要套用這個版面的 view 中，<br />
這裡用 Welcome.php 來示範，<br />
原本載入「welcome_message.php」的方式是</p>
<blockquote><p>$this-&#62;load-&#62;view('welcome_message');</p></blockquote>
<p>修改為</p>
<blockquote><p>$data = array();<br />
$data['welcome_message'] = $this-&#62;load-&#62;view('welcome_message', $data, TRUE);<br />
$this-&#62;masterpage-&#62;view('welcome_message', $data);</p></blockquote>
<p>ps. 其實這樣會產生一個 unvalid 的網頁檔，在「welcome_message.php」中其實是一個 valid 的 html，<br />
在加上 「template.php」中的東西，就會產生一個 unvalid 的網頁檔了，<br />
必須把「welcome_message.php」最前面以及最後面的兩個部份剪下貼上到「template.php」中即可。</p>
<p>5. That's all!</p>
<p>只要在每個 view 中，加入最後四行的程式碼，<br />
就可以讓每一個 view 都有一樣的畫面！</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[縮短網址]]></title>
<link>http://sjcode.wordpress.com/?p=70</link>
<pubDate>Mon, 29 Sep 2008 12:38:04 +0000</pubDate>
<dc:creator>sj</dc:creator>
<guid>http://sjcode.es.wordpress.com/2008/09/29/rewrite-url/</guid>
<description><![CDATA[在 CodeIgniter 中，
預設的網址是 http://&#8230;&#8230;/index.php/mvc/func/segm
這篇說明]]></description>
<content:encoded><![CDATA[<p>在 CodeIgniter 中，<br />
預設的網址是 http://....../index.php/mvc/func/segm<br />
這篇說明如何修改將 index.php 刪除（隱藏）。</p>
<p>部份內容是參考 <a title="http://codeigniter.com/" href="http://codeigniter.com/" target="_blank">CodeIgniter</a> 的 <a title="http://codeigniter.com/forums" href="http://codeigniter.com/forums" target="_blank">Forums</a></p>
<p><!--more--></p>
<p>先到 Apache 下修改設定檔「httpd.conf」，啟動 rewrite_module，</p>
<blockquote><p>LoadModule rewrite_module modules/mod_rewrite.so</p></blockquote>
<p>在目錄下新增一個「.htaccess」檔案，<br />
並加入以下內容。</p>
<blockquote><p>DirectoryIndex index.php<br />
RewriteEngine on<br />
RewriteCond $1 !^(index\.php&#124;images&#124;css&#124;js&#124;robots\.txt&#124;favicon\.ico)<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]</p></blockquote>
<p>這樣，開啟</p>
<blockquote><p>http://....../mvc/func/segm</p></blockquote>
<p>即可得到與</p>
<blockquote><p>http://....../index.php/mvc/func/segm</p></blockquote>
<p>一樣的結果。</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[安裝 CodeIgniter]]></title>
<link>http://sjcode.wordpress.com/?p=42</link>
<pubDate>Sun, 28 Sep 2008 09:40:17 +0000</pubDate>
<dc:creator>sj</dc:creator>
<guid>http://sjcode.es.wordpress.com/2008/09/28/codeigniter-install/</guid>
<description><![CDATA[初始安裝的步驟紀錄。

基本下載、安裝
1. 官方網站
到 http://codeigniter.com 下]]></description>
<content:encoded><![CDATA[<p>初始安裝的步驟紀錄。</p>
<p><!--more--><br />
<strong>基本下載、安裝</strong><br />
1. 官方網站</p>
<blockquote><p>到 <a title="CodeIgniter" href="http://codeigniter.com" target="_blank">http://codeigniter.com</a> 下載，<br />
官方網頁還有線上文件說明（<a title="User Guide" href="http://codeigniter.com/user_guide/" target="_blank">User Guide</a>），討論區（<a title="Forums" href="http://codeigniter.com/forums/" target="_blank">Forums</a>），和一些大家開發的小元件（放在 <a title="wiki" href="http://codeigniter.com/wiki/" target="_blank">wiki</a>）</p></blockquote>
<p>基本的系統安裝就如這樣，<br />
接下來進行必要的系統修改。</p>
<p><strong>必要系統設定修改</strong></p>
<p>1. 解壓縮下載的檔案到 www 目錄下，這裡新建一個「ci」資料夾</p>
<p>2. 新增一個 database，名稱任意，這裡使用「ci」當作測試用的 database</p>
<p>3. 刪除 user_guide 資料夾</p>
<blockquote><p>在原始的壓縮檔案中，CodeIgniter 自動壓入完整的線上說明，<br />
本身系統其實不需要這份說明，<br />
建議在完成自己的網站開發前移除或是更名。</p></blockquote>
<blockquote><p>僅是建議，可跳過此步驟。</p></blockquote>
<p>在官方網站有說明，<a title="http://codeigniter.com/user_guide/general/urls.html" href="http://codeigniter.com/user_guide/general/urls.html" target="_blank">http://codeigniter.com/user_guide/general/urls.html</a></p>
<blockquote><p>如果不用 rewrite_mod的話，網址列會保留 index.php，<br />
像是這樣， http://your.domain.name/index.php/main/func/1<br />
index.php 似乎是多餘的，<br />
所以利用 rewrite_mod 把他刪掉。</p></blockquote>
<blockquote><p>僅是建議，可跳過此步驟。</p></blockquote>
<p>4. 修改系統檔案</p>
<p>首先修改幾個重要的檔案，讓這個網站具備資料庫功能。</p>
<p>在 www\ci\system\application\config\config.php 檔案中修改根目錄</p>
<blockquote><p>$config['base_url']    = "http://localhost/ci/";</p></blockquote>
<p>在 www\ci\system\application\config\database.php 檔案中修改資料庫連結設定</p>
<blockquote><p>$db['default']['hostname'] = "localhost";<br />
$db['default']['username'] = "";<br />
$db['default']['password'] = "";<br />
$db['default']['database'] = "";<br />
.....</p></blockquote>
]]></content:encoded>
</item>
<item>
<title><![CDATA[php frameworks - my opinion]]></title>
<link>http://momgeek.wordpress.com/?p=51</link>
<pubDate>Fri, 26 Sep 2008 18:41:29 +0000</pubDate>
<dc:creator>fast times at sweet valley high</dc:creator>
<guid>http://momgeek.es.wordpress.com/2008/09/26/php-frameworks-my-opinion/</guid>
<description><![CDATA[I heart PHP. I&#8217;ve been working with it in one form or another for over 8 years &#8212; back in]]></description>
<content:encoded><![CDATA[<p>I heart PHP. I've been working with it in one form or another for over 8 years -- back in the PHP 3 days, even! I'm entirely self-taught, relying on php.net and tutorials to help me figure out how to do stuff.</p>
<p>Last fall I was working on a niche-oriented CMS and was getting majorly bored/burned out by all the procedural stuff; the code felt horribly messy to me and I wanted to get into OOP (Object Oriented Programming) but previous attempts had left me scratching my head.</p>
<p>Somehow I stumbled on CodeIgniter and I was immediately hooked. Once I figured out my way around MVC and their way of doing things I tripled the amount of code I was able to put out. Was my code the best you could ever find? No, but it was definitely a step ahead of where I'd been.</p>
<p>Once I finished the CMS I decided to tackle another project and turned again to CI. I've been working on this project for the majority of 2008, and might have it done by the end of the year.</p>
<p>Now, I really love CI because it's so easy and flexible, and it's pretty much agreed that they have the easiest to understand documentation. However, I began to get frustrated with some of the features the default CI lacks - Auth being the biggest -- so I started "shopping around" some other popular frameworks. Following are the ones I dabbled with. Note that there are no benchmarks because frankly that wasn't my concern -- realtive ease of use and the speeding up of my development were the primary concerns was.</p>
<p><strong>Zend Framework - <a href="http://framework.zend.com" target="_blank">http://framework.zend.com</a>:</strong><br />
Impression: After Symfony, I say ZF is probably the daddy of the frameworks. You can develop some really powerful stuff with it. That said, I found it to have a really steep learning curve and to be too loosely coupled for my taste. Requires more manual configuration than most other frameworks. It took me almost a full day to figure out the Zend_Db class and even then I wasn't able to move too far with it. I was really impressed with their ACL and Auth classes, although I didn't get far enough to really dabble with them.<br />
Conclusion: If I had more time to play with it, I'm sure I could figure ZF out and develop some really cool stuff. For now, I will most likely stick with implementing components of ZF with other frameworks.</p>
<p><strong>CakePHP - <a href="http://www.cakephp.org" target="_blank">http://www.cakephp.org</a></strong><br />
Impression: One of the most popular frameworks. Pretty strict with naming conventions. Models are a must (this is not a bad thing). I actually played with this for a couple of days and got a lot farther with it than I did with ZF. The docs (2.2) are pretty good and I was able to find almost everything I needed to know within them. Because it's so popular, finding things that weren't in the docs -- like a form tutorial -- was really easy.</p>
<p>Conclusion: I may go back and try my hand developing something with Cake. If you have moderate experience with MVC, it's not (IMO) that hard to learn. It's a lot slower than pretty much any other framework but it also does a lot of stuff for you that could speed up your production.</p>
<p><strong>KohanaPHP - <a href="http://www.kohanaphp.com" target="_blank">http://www.kohanaphp.com</a></strong><br />
Impression: Kohana is a relative newcomer to the PHP Framework scene; it originated as a fork of CI when a bunch of CI developers got tired of waiting for EllisLab (creators of CI) to fix bugs with CI. Right now the current release is 2.2 (I think) and while a lot of things are different from CI, it's still feasible to port CI apps to Kohana by renaming a few things and following some different rules, like using helper::helper_function instead of $this-&#62;load-&#62;helper('helper') and helper_function(). I wasn't very impressed with their docs; I found reference to the "Forge" class, that helps consolidate form creating/validation rules, only to find out Forge has been depreceated in Kohana 2.2.<br />
However, Kohana does seem very powerful and I don't think it would be too big of a leap to go from CI to Kohana. I really like that they have an advanced archive class as well as auth and payment modules.</p>
<p>Conclusion: I will probably use Kohana at some point; I may even recode the 2nd draft of my current project in Kohana since it provides more built-in functionality than CI does. I really like that it is community based; however, from what I've read the framework seems to depreceate things fairly often, which could make developing with it a pain in the ass.</p>
<p><strong>CodeIgniter - <a href="http://www.codeigniter.com" target="_blank">http://www.codeigniter.com</a></strong><br />
Impression: As I said, I love CI. It was so easy to learn and really helped speed up my PHP production. The community is awesome, the docs are awesome, and it's so flexible I can do pretty much anything I want with it. The "bare-bones-ness" of it, though, is also frustrating at times, especially when I have to manually code something in that the other frameworks provide by default -- again, mainly Auth stuff. I think it's kind of neat that it's used and backed by a company (EllisLab, which produces the Expression Engine commercial CMS), which should provide security as far as it being around. The bad thing about that is that since it's developed and maintained by a company, fixes to bugs and other issues can take a lot longer than a community driven framework. I'd really like to see CI get into module-type stuff or at least include company-supported libraries like auth and payment.</p>
<p>Conclusion: I will likely stay with CI for now; when I get more time to dabble with Kohana more it will become more of a competition in my mind. I have to say, though, that for each (hee!) framework I tried, I ended up going back to CI with relief mostly for its flexibility. That could just be due to my being most familiar with CI, though.</p>
<p>To wrap it up, my choices would likely go like so:</p>
<ol>
<li>CodeIgniter</li>
<li>Kohana</li>
<li>CakePHP</li>
<li>Zend Framework</li>
</ol>
<p>I know that this hasn't been a very "techy" type of comparison; as the title suggests, these are merely my opinions on the 4 frameworks I've tried out. Eveyrone has one that clicks for them, and you're definitely entitled to use that one and call it the best (for you!).</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[voyage through the wonderful world of PHP MVC]]></title>
<link>http://ederscubicle.wordpress.com/?p=49</link>
<pubDate>Thu, 25 Sep 2008 21:40:10 +0000</pubDate>
<dc:creator>El Chido</dc:creator>
<guid>http://ederscubicle.es.wordpress.com/2008/09/25/voyage-through-the-wonderful-world-of-php-mvc/</guid>
<description><![CDATA[You guys know that I&#8217;ve been working with ASP.NET lately and a CMS called DotNetNuke. While i]]></description>
<content:encoded><![CDATA[<p>You guys know that I've been working with <a title="ASP.NEt" href="http://msdn.microsoft.com/en-us/asp.net/default.aspx" target="_blank">ASP.NET</a> lately and a CMS called <a title="DotNetNuke" href="http://www.dotnetnuke.com" target="_blank">DotNetNuke</a>. While it's cool and all I really want to go back to my first love: <a title="Hypertext Preprocessor" href="http://www.php.net" target="_blank">PHP</a>. I've been looking around trying to find something similar. I thought about learning how to write modules with <a title="Drupal" href="http://www.drupal.org" target="_blank">Drupal</a>. But I really want to write the software the way I've learned how to do it with <a title="DotNetNuke" href="http://www.dotnetnuke.com" target="_blank">DotNetNuke</a>, with the <a title="Model-View-Controller" href="http://en.wikipedia.org/wiki/Model-view-controller" target="_blank">MVC</a> philosophy. Model-View-Controller is a software architectural pattern that tries to make it easier to write and maintain code by separating your data access code and business logic from the UI code. Keeps everything neat. If you've ever heard of <a title="Ruby on Rails" href="http://www.rubyonrails.org/" target="_blank">Ruby on Rails</a> you know what I am talking about. </p>
<p>I tried <a href="http://cakephp.org/" target="_blank">CakePHP</a> but it was a little too rigid on its rules when it came to the data access layer, not enough flexibility. I don't like frameworks that box you in trying to get you to do things a certain way. I want a certain amount of freedom when I code. I've been reading lately about <a title="CodeIgniter" href="http://codeigniter.com/" target="_blank">CodeIgniter</a> which is a very lightweight MVC framework that gives you that freedom (from what I've read). So I will be trying it in the next couple of weeks.</p>
<p>I think that in the long run I'd like to be able to make <a title="Drupal" href="http://www.drupal.org" target="_blank">Drupal</a> modules and build applications on it. Besides, there is a crazy amount of people out there using <a title="Drupal" href="http://www.drupal.org" target="_blank">Drupal</a> for their portals, ecommerce, and other sites. All of those will need maintenance at some point and I will be ready to dive in if I ever get a contract like that. But if I ever want to write something from scratch I am going to use a framework like <a title="CodeIgniter" href="http://codeigniter.com/" target="_blank">CodeIgniter</a>. That way I have the best of both worlds.</p>
<p>I will update the blog as I learn more about both platforms...</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CodeIgniter Small Review]]></title>
<link>http://codewalker.wordpress.com/?p=8</link>
<pubDate>Wed, 24 Sep 2008 18:36:30 +0000</pubDate>
<dc:creator>codewalking</dc:creator>
<guid>http://codewalker.es.wordpress.com/2008/09/24/codeigniter-small-review/</guid>
<description><![CDATA[CodeIgniter
Recently I&#8217;ve tried this PHP framework and I &#8216;ve to say that it&#8217;s a v]]></description>
<content:encoded><![CDATA[[caption id="attachment_15" align="alignleft" width="87" caption="CodeIgniter"]<img class="size-thumbnail wp-image-15   " title="ci_logo_flame5" src="http://codewalker.wordpress.com/files/2008/09/ci_logo_flame5.jpg?w=87" alt="CodeIgniter Logo" width="87" height="96" />[/caption]
<p>Recently I've tried this PHP framework and I 've to say that it's a very good one but not for everyone in my opinion.</p>
<p><strong>CodeIgniter</strong>(CI) have a lot of good features to stand up against the established or usual frameworks that people is using around like CakePHP or Symphony. This is very hard to do because ... well, ask yourself what new can you bring to the framework's world that people don't have yet.</p>
<p>And they come up with a very lightweight and flexible framework. Is it just the opposite at the ones I mentioned before? mmm, in someway It could be, but I can tell that I 've been researching around internet and everyone is highlighting the speed difference between other frameworks. CI is faster and that have a reason: <em>CI don't load stuff you are not going to use</em>. If you want to use it, do it by loading it yourself when you need it (also you have the option to autoload the component if you use it very often).</p>
<p>Let see the top features:</p>
<ul>
<li><strong>Lightweight</strong></li>
<li><strong>Fast</strong></li>
<li><strong>Flexible</strong></li>
<li><strong>MVC</strong></li>
</ul>
<p>But in the other hand have some issues:</p>
<ul>
<li><strong>Don't have an ORM incorporated</strong>. It have a small ActiveRecord group of shortcuts but you can also use another one created by the community only if you need it.</li>
<li><strong>It isn't modularized</strong>. This is the worst issue because it retains people with more complex needs on their projects. Imagine a very big and complex application not being modular ... mmm ...</li>
<li><strong>More work</strong>. Because of the good CI's features we will have to do more work to create the functionality other frameworks already have. But maybe this is a good thing to you if you want to fully customize your functions.</li>
</ul>
<p> </p>
<p>One important thing is <strong>documentation</strong>. Compared with Django documentation (one of the best online framework documentation I ever see) it's a little bit far from them. It's very well organized but I think it could be better, more complete, with better examples, warnings, etc.</p>
<p><strong>About modularity</strong>, I think I read in one of the thread's forum this is going to be present in the next version, which I don't know the release date or if it's confirmed. I hope so, meanwhile you can use one of the plugins created by the community, but it's not as good as an official solution.</p>
<p><strong>In conclusion</strong>, it's a framework to people with previous experience wit PHP (you will have to write a lot) but we have the advantage of excellent performance with an MVC structure.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CodeIgniter: konek ke port MySQL tertentu selain 3306]]></title>
<link>http://akhdaniel.wordpress.com/?p=48</link>
<pubDate>Tue, 23 Sep 2008 23:18:00 +0000</pubDate>
<dc:creator>akhdaniel</dc:creator>
<guid>http://akhdaniel.es.wordpress.com/2008/09/23/codeigniter-konek-ke-port-mysql-tertentu-selain-3306/</guid>
<description><![CDATA[Secara default, database driver MySQL CodeIgniter konek ke port default MySQL yaitu 3306. Pada kondi]]></description>
<content:encoded><![CDATA[<p>Secara default, database driver MySQL CodeIgniter konek ke port default MySQL yaitu 3306. Pada kondisi dimana port MySQL bukan 3306 misalnya 3307, CodeIgniter tidak punya option untuk menentukan pada port berapa MySQL berjalan.</p>
<p>Solusi untuk hal ini dapat dilakukan dengan beberapa cara:</p>
<ol>
<li>mengedit file driver database CodeIgniter: <strong>system/database/drivers/mysqli/mysqli_driver.php.</strong> Pada file ini dapat ditentukan port MySQL pada function ‘db_connect’ yaitu dengan menambahkan parameter $port pada function tsb: <strong><br />
mysqli_connect</strong> ( [string $host [, string $username [, string $passwd [,  string $dbname [, int $port [, string $socket]]]]]] )</li>
<li>mengedit file PHP.INI, pada bagian  mysql.default_port, ganti dari 3306 menjadi 3307</li>
<li>jika tidak punya akses ke file PHP.INI, bisa juga dicoba dengan mengedit file <strong>config/database.php</strong> nya CodeIgniter yaitu pada baris:
<div class="codeblock"><code> <span style="color:#0000bb;">$db[</span><span style="color:#dd0000;">'default'</span><span style="color:#0000bb;">][</span><span style="color:#dd0000;">'hostname'</span><span style="color:#0000bb;">] </span><span style="color:#007700;">= </span><span style="color:#dd0000;">"mysqlhost.yourdomain.com:3307"</span><span style="color:#007700;">;</span></code></div>
</li>
</ol>
]]></content:encoded>
</item>
<item>
<title><![CDATA[PHP framework usage]]></title>
<link>http://hmvrulz.wordpress.com/?p=78</link>
<pubDate>Tue, 23 Sep 2008 09:49:34 +0000</pubDate>
<dc:creator>hmvrulz</dc:creator>
<guid>http://hmvrulz.es.wordpress.com/2008/09/23/php-framework-usage/</guid>
<description><![CDATA[
]]></description>
<content:encoded><![CDATA[<p><a href="http://img225.imageshack.us/img225/2033/googletrendssymfonyzendbq4.jpg"><img src="http://img225.imageshack.us/img225/2033/googletrendssymfonyzendbq4.jpg" alt="compare" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[PHP tan fácil como bailar :-)]]></title>
<link>http://trescuartos.wordpress.com/?p=14</link>
<pubDate>Mon, 22 Sep 2008 05:53:14 +0000</pubDate>
<dc:creator>sonycrocket</dc:creator>
<guid>http://trescuartos.es.wordpress.com/2008/09/22/php-tan-facil-como-bailar/</guid>
<description><![CDATA[PHP tan fácil como bailar&#8230; Cumbia ? o.. Kumbia ?  
Software Libre en Español
Kumbia es un we]]></description>
<content:encoded><![CDATA[<p>PHP tan fácil como bailar... Cumbia ? o.. Kumbia ? ;-)</p>
[caption id="attachment_15" align="aligncenter" width="318" caption="Software Libre en Español"]<a href="http://trescuartos.wordpress.com/files/2008/09/kumbia-assembla.jpg"><img class="size-full wp-image-15" title="kumbia-assembla" src="http://trescuartos.wordpress.com/files/2008/09/kumbia-assembla.jpg" alt="kumbia" width="318" height="88" /></a>[/caption]
<p><strong>Kumbia</strong> es un web framework libre escrito en <strong>PHP5</strong>. Basado en las mejores prácticas de desarrollo web, usado en software comercial y educativo, Kumbia fomenta la velocidad y eficiencia en la creación y mantenimiento de aplicaciones web, reemplazando tareas de codificación repetitivas por poder, control y placer.</p>
<p>Sus principales características son:</p>
<ul>
<li>Sistema de Plantillas sencillo</li>
<li>Administración de Cache</li>
<li>Scaffolding Avanzado</li>
<li>Modelo de Objetos y Separación MVC</li>
<li>Soporte para AJAX</li>
<li>Generación de Formularios</li>
<li>Componentes Gráficos</li>
<li>Seguridad</li>
</ul>
<p>y muchas cosas más.</p>
<p>Adicional a esto Kumbia integra lo mejor de la Web en un solo framework para producir las aplicaciones Web del mañana (prototypejs, phpMailer, Smarty, FPDF, Script.aculo.us)</p>
<p>Kumbia puede ser la solución que estabas esperando!</p>
<p>Lo mas importante de todo es que Kumbia está 100% en español, recomendado para proyectos medianos o grandes, preferentemente que lleven mas de 10 páginas dinámicas</p>
<p><a href="http://www.kumbiaphp.com">Sitio web Kumbia</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Obsession History]]></title>
<link>http://mynameiszanders.wordpress.com/?p=95</link>
<pubDate>Wed, 17 Sep 2008 11:59:32 +0000</pubDate>
<dc:creator>Alexander Baldwin</dc:creator>
<guid>http://mynameiszanders.es.wordpress.com/2008/09/17/obsession-history/</guid>
<description><![CDATA[The following is what I&#8217;m thinking of using in a couple of months when I try to start a career]]></description>
<content:encoded><![CDATA[<blockquote><p>The following is what I'm thinking of using in a couple of months when I try to start a career in website development, as my history and experience in web technologies. Please tell me what you think!</p></blockquote>
<p>My hobby and obsession for the internet and websites began seven years ago when I began secondary school in 2001. I started using a WYSIWYG Webpage editor that generated the <em>HTML</em> for me. It was when I came across sites that referenced tags like <em>head</em>, <em>body</em> and <em>a</em> that I began to learn the language.<!--more--></p>
<p>After learning <em>HTML</em> for a while, I started with <em>CSS</em> to style the documents, and realising different technologies tied in together began my route to web development. </p>
<p>A few years after that I delved in the server-side, as I was drawn to the way pages were generated by query strings. I installed a localhost using a <em>WAMP</em> configuration and started learning <em>PHP</em>. I now have advanced experience with procedure and object-orientated programming in <em>PHP,</em> along with creating basic frameworks with <em>MVC</em> and using large ones such as <em>CodeIgniter</em>.</p>
<p>When I started coding for databases, I chose the most discussed open-source variation available, <em>MySQL</em>, which I use for all database applications now (which I now see as bad practice and plan to extend my knowledge to other databases, including closed-source). I then looked at other ways of holding data, for transfer/export and flat file storage, and came across <em>XML</em> (and recently <em>JSON</em>).</p>
<p>About a year and a half ago, I started to concentrate on the client-side, most notably, <em>Javascript</em> (including experience with <em>XMLHttpRequest</em> and frameworks like <em>jQuery</em> and <em>Mootools</em>), and communication between client and server using <em>HTTP Headers</em> and <em>Status Codes</em>.</p>
<p>Now I spend my time catching up with newer technology like <em>RSS 2.0</em> / <em>Atom</em> and <em>Scalable Vector Graphics</em>, practising standards-compliance (when it comes to syntax and markup, friends familiar to web development regard me as a perfectionist, although they don't regard it as a good thing), accessibility and semantics (such as <em>microformats</em> (hopefully to be replaced by <em>RDFa</em>), <em>XFN</em> and <em>SEO</em>), whilst keeping up to date with <em>W</em>3C recommendations and specification drafts for proposed technologies such as PHP 6, <em>XHTML 2</em>, <em>CSS 3</em> and <em>RDFa</em>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Instalacion de CodeIgniter]]></title>
<link>http://asinox.wordpress.com/?p=80</link>
<pubDate>Mon, 08 Sep 2008 16:32:39 +0000</pubDate>
<dc:creator>asinox</dc:creator>
<guid>http://asinox.es.wordpress.com/2008/09/08/instalacion-de-codeigniter/</guid>
<description><![CDATA[Pues como dije en el post, me he mudado para CodeIgniter y es que, las ventajas son muchas, de las ]]></description>
<content:encoded><![CDATA[<p>Pues como dije en el post, <a title="Me he mudado para codeigniter" href="http://asinox.wordpress.com/2008/08/13/y-finalmente-me-mude-para-codeigniter/">me he mudado para CodeIgniter</a> y es que, las ventajas son muchas, de las cuales solo puedo mencionar la mas importante: <a title="Extensa Documentacion" href="http://codeigniter.com/user_guide/" target="_blank">Extensa documentacion, con ejemplos claros y reales</a>, y es que la documentacion es el corazon de todas las aplicaciones, cosa que muchos de los demas Frameworks no tienen y si la tienen, es muy engorrosa.</p>
<p><strong>INSTALANDO CODEIGNITER</strong></p>
<p>1.- Descargar la version mas actual de codeigniter : <a title="Descargar" href="http://codeigniter.com/downloads/" target="_blank">codeigniter.com</a>, hasta este momento es la version 1.6.3. (menos de 1MB) :D</p>
<p>2.- Descomprimir, navegar dentro de la carpeta CodeIgniter_1.6.3\CodeIgniter_1.6.3, allí existen 4 archivos (dos directorios y dos archivos), system, user_guide, index.php, licence.txt.</p>
<p>3.- Imaginando que ya tienes instaladon un paquete bajo window de apache, php y mysql, yo utilizo <a title="Descargar WampServer" href="http://www.wampserver.com/" target="_blank">WampServer</a>. Lo siguiente es crear una caperta en tu document root (en mi caso esta en E: WAMP/WWW), alli dentro de WWW crear una carpeta llamada CI o CodeIgniter (en verdad como gustes), y copiar los 4 archivos en contrados dentro de CodeIgniter_1.6.3\CodeIgniter_1.6.3 [system, user_guide, index.php, licence.txt].</p>
<p>4.- luego de eso, creo que estamos listo para dar una mirada al http://locahost/ci</p>
<p>En la proxima entrega... como configurar CI para empezar nuestra propia aplicacion.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CodeIgniter No input file specified error on PHP5 and Apache 2.2]]></title>
<link>http://terencechang.wordpress.com/?p=27</link>
<pubDate>Fri, 29 Aug 2008 05:00:31 +0000</pubDate>
<dc:creator>Terence Chang</dc:creator>
<guid>http://terencechang.es.wordpress.com/2008/08/28/codeigniter-no-input-file-specified-error-on-php5-and-apache-22/</guid>
<description><![CDATA[
Image Source: Day 486 / 365 - Late Night High Level Coding Courtesy Of: JasonRogers
I think I will ]]></description>
<content:encoded><![CDATA[<p><a title="Speed Coding by SmileMyDay.com, on Flickr" href="http://www.flickr.com/photos/peanutlen/2806928289/"><img src="http://farm4.static.flickr.com/3093/2806928289_71da23ea22_o.jpg" alt="Speed Coding" width="600" height="140" /></a></p>
<p><span style="font-size:xx-small;">Image Source: </span><a href="http://www.flickr.com/photos/restlessglobetrotter/2677069387/"><span style="font-size:xx-small;">Day 486 / 365 - Late Night High Level Coding</span></a><span style="font-size:xx-small;"> Courtesy Of: </span><a href="http://www.flickr.com/photos/restlessglobetrotter/"><span style="font-size:xx-small;">JasonRogers</span></a></p>
<p>I think I will get back on more IT related blog post later. It's been a while since my last post about IT. After backing in the speed coding game, I have some issues to resolve.</p>
<p>Just has an error related to PHP5 running on Apache. Problem is solved and are ready at <a href="http://www.terencechang.com/2008/08/28/codeigniter-no-input-file-specified-php-5-apache-2/"><strong>CodeIgniter - No input file specified error - .htaccess - PHP5 - Apache 2</strong></a>.</p>
<p>Feel freel to read and apply to your site, if you are having the same issues.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Hello WordPress! Hi CI!]]></title>
<link>http://vanowen.wordpress.com/?p=5</link>
<pubDate>Wed, 27 Aug 2008 15:29:08 +0000</pubDate>
<dc:creator>owen</dc:creator>
<guid>http://vanowen.es.wordpress.com/2008/08/27/ext-20/</guid>
<description><![CDATA[This is my first official post for this blog. It&#8217;s 11:21pm and I&#8217;m halfway through exper]]></description>
<content:encoded><![CDATA[<p>This is my first official post for this blog. It's 11:21pm and I'm halfway through experimenting on a few things with CodeIgniter (im a web developer, by the way). CodeIgniter is PHP framework patterned after the Model-View-Controller architecture. I've used it in projects and I must say that the framework is really easy to use and is quite extensible, or at least for my experience. I know that there are still things about it that I need to learn. While in the process, I will, through this blog, share my learnings.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[fastQuotes version 2]]></title>
<link>http://sangling.wordpress.com/?p=103</link>
<pubDate>Tue, 19 Aug 2008 07:42:54 +0000</pubDate>
<dc:creator>sangling</dc:creator>
<guid>http://sangling.es.wordpress.com/2008/08/19/fastquotes-version-2/</guid>
<description><![CDATA[This weekend we launched v2 of fastQuotes. The new version of fastQuotes was developed in the fantas]]></description>
<content:encoded><![CDATA[<p>This weekend we launched v2 of <a href="http://www.fastquotes.co.za" target="_blank">fastQuotes</a>. The new version of fastQuotes was developed in the fantastic PHP framework <a href="http://www.codeigniter.com" target="_blank">CodeIgniter</a>.</p>
<p>Have a look and if you haven't already signed up your South African business then fill you details in on the <a href="http://www.fastquotes.co.za/signup" target="_blank">signup form</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Y finalmente me mude para CodeIgniter]]></title>
<link>http://asinox.wordpress.com/?p=72</link>
<pubDate>Wed, 13 Aug 2008 19:27:46 +0000</pubDate>
<dc:creator>asinox</dc:creator>
<guid>http://asinox.es.wordpress.com/2008/08/13/y-finalmente-me-mude-para-codeigniter/</guid>
<description><![CDATA[¿Qué es CodeIgniter?
CodeIgniter (CI) es un poderoso Framework PHP con una pequeña guia que nos d]]></description>
<content:encoded><![CDATA[<p><strong>¿Qué es CodeIgniter?</strong></p>
<p>CodeIgniter (CI) es un poderoso Framework PHP con una pequeña guia que nos detalla cada funcion del framework y como debemos usarla, esta construido para programadores PHP quienes necesitan un simple y elegante herramienta para crear aplicaciones completamente funcionales. Si eres web developer quien esta cansado de escribir tantas lineas de codigo y cansado de buscar y probar Frameworks los cuales no traen una buena guia para su utilizacion te recomiendo que pruebes CodeIgniter.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Codeigniter: AJAX Pagination]]></title>
<link>http://tohin.wordpress.com/2008/08/12/codeigniter-ajax-pagination/</link>
<pubDate>Tue, 12 Aug 2008 08:59:27 +0000</pubDate>
<dc:creator>tohin</dc:creator>
<guid>http://tohin.es.wordpress.com/2008/08/12/codeigniter-ajax-pagination/</guid>
<description><![CDATA[Few days ago, I was looking for an AJAX pagination for codeigniter. Then i saw this AJAX pagniation ]]></description>
<content:encoded><![CDATA[<p>Few days ago, I was looking for an AJAX pagination for codeigniter. Then i saw this <a href="http://codeigniter.com/forums/viewthread/74602/">AJAX pagniation</a> by Gin2. He used Prototype. In my case i wanted to use JQuery. I saw his approach and wanted to make it work for my project and after a quick typo the pagination library is done.</p>
<p>Though the use is same as the built in pagination system except another extra config parameter :</p>
<blockquote><p>$config['div'] = '#content';  /* Here #content is the CSS selector for target DIV */</p></blockquote>
<p>Requirements:  Make sure you have added the Jquery.js file on top of the view file. Download latest Jquery from <a href="http://www.jquery.com">here</a>. Put "Jquery_pagination.php" file in you application/library folder and use it as a separate library.</p>
<p>Files:  <strong><a href="http://www.jhorotek.com/downloads/codeigniter/jquery_pagination.rar" target="_blank">Jquery_pagination</a></strong></p>
<p>I will try to add an example and a little tutorial very soon. Be in touch... :D</p>
<p>Modification:</p>
<p>To add extra javascript code after clicking the links or do other binding add the extra javascript code in</p>
<blockquote><p>$config['js_rebind'] = "alert('it works !!'); ";</p>
<p>Here is the new File:  <strong><a href="http://www.jhorotek.com/downloads/codeigniter/Jquery_pagination_20080925.rar" target="_blank">Jquery_pagination</a></strong></p></blockquote>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CodeIgniter dosya yapısı]]></title>
<link>http://darbetim.wordpress.com/?p=16</link>
<pubDate>Tue, 12 Aug 2008 08:33:47 +0000</pubDate>
<dc:creator>darbetim</dc:creator>
<guid>http://darbetim.es.wordpress.com/2008/08/12/codeigniter-dosya-yapisi/</guid>
<description><![CDATA[&lt;!&#8211;
google_ad_client = &#8220;pub-9317856510830362&#8243;;
google_ad_width = 120;
google_ad]]></description>
<content:encoded><![CDATA[<div style="background:transparent none repeat scroll 0 50%;float:right;width:120px;height:auto;">&#60;!--<br />
google_ad_client = "pub-9317856510830362";<br />
google_ad_width = 120;<br />
google_ad_height = 90;<br />
google_ad_format = "120x90_0ads_al";<br />
//2007-03-23: anasayfa - makale ici<br />
google_ad_channel = "1957172888";<br />
google_color_border = "F2F2F3";<br />
google_color_bg = "F2F2F3";<br />
google_color_link = "354860";<br />
google_color_text = "000000";<br />
google_color_url = "354860";<br />
//--&#62;</p>
<div id="beacon_104" style="position:absolute;left:0;top:0;visibility:hidden;"><img style="width:0;height:0;" src="http://reklam.ceviz.net/adlog.php?bannerid=104&#38;clientid=6&#38;zoneid=34&#38;source=&#38;block=0&#38;capping=0&#38;cb=3a103a23e7bd80cbd1c1c92fb2b2e763" alt="" width="0" height="0" /></div>
</div>
<p>Hatırlarsanız bir önceki yazımda, <a title="Bölüm 1 - CodeIgniter Kurulumu" href="http://www.katodivaihe.com/index.php/bolum-1-codeigniter-kurulumu/" target="_blank">MVC yapısı, CodeIgniter framework'ü ve kurulumu</a> hakkında bilgiler vermiştim. Bu bölümde ise <strong>CodeIgniter</strong> dosya yapısı hakkında bilgiler vermek istiyorum.</p>
<p>Daha öncede söylediğim üzere, <strong>CodeIgniter</strong> ile gelen arşiv dosyasını bilgisayarımıza açtığımızda, <strong>system</strong> ve <strong>user_guide</strong> klasörleri ile <strong>index.php</strong> ve <strong>license.txt</strong> dosyalarının geldiğini görmüştük. Şimdi bu klasör ve dosyaların ne olduğunu biraz açmak istiyorum.</p>
<p>System klasörü içinde farklı görevleri olan bir çok klasör bulunmaktadır. Bu klasörlerin içinde ki dosyalar da <strong>CI</strong>'nin iskeletini oluşturmaktadır. CI'nin sahip olduğu klasörleri şu şekilde sıralayabiliriz.</p>
<ul>
<li>application
<ul>
<li>config</li>
<li>controllers</li>
<li>errors</li>
<li>hooks</li>
<li>libraries</li>
<li>models</li>
<li>views</li>
</ul>
</li>
<li>cache</li>
<li>codeigniter</li>
<li>database
<ul>
<li>drivers
<ul>
<li>mssql</li>
<li>mysql</li>
<li>mysqli</li>
<li>oci8</li>
<li>odbc</li>
<li>postgre</li>
<li>sqlite</li>
</ul>
</li>
</ul>
</li>
<li>fonts</li>
<li>helpers</li>
<li>language
<ul>
<li>english</li>
</ul>
</li>
<li>libraries</li>
<li>logs</li>
<li>plugins</li>
<li>scaffolding
<ul>
<li>images</li>
<li>views</li>
</ul>
</li>
</ul>
<p><strong>Application klasörü</strong><br />
Application klasörü bizim için büyük önem arz etmektedir. Çünkü yaptığımız geliştirmeleri burada saklamaktayız. Genel olarak işleyiş bu klasör içinde gerçekleşmektedir. <strong>Model-View-Controller</strong> dosyalarımız bu klasör içinde yer alan yardımcı klasörler içinde saklanacaktır. Ayrıca geliştirdiğimiz kütüphaneleri de yine burada bulunan <strong>libraries</strong> klasörü içine atarak projemize yine burada dahil edebileceğiz.  <strong></p>
<p>Cache klasörü</strong><br />
Adından da anlaşıldığı gibi, sistem üzerinde önbelleğe alınan veriler burada tekrardan kullanılmak üzere saklanmaktadır.  <strong>Codeigniter klasörü</strong> <strong> CI</strong>'nin <strong>php 4+</strong> ve <strong>php 5+</strong> sürümlerinde çalışması için gerekli olan dosyalar burada bulunmaktadır.  <strong></p>
<p>Database klasörü</strong><br />
Veritabanı işlemleri için gerekli olan kütüphaneler burada bulunmaktadır. Halihazırda destek verdiği veritabanları başlıca : <a title="SQL Server" href="http://www.microsoft.com/sql/default.mspx" target="_blank"><strong>mssql</strong></a>, <a title="MYSQL" href="http://www.mysql.com/" target="_blank"><strong>mysql</strong></a>, <a title="PostgreSQL" href="http://www.postgresql.org/" target="_blank"><strong>postgresql</strong></a> ve <a title="SQLite" href="http://www.sqlite.org/"><strong>sqlite</strong></a></p>
<p><strong>Fonts klasörü</strong><br />
Aslına bakarsanız bu klasörün ne olduğu hakkında bir bilgim yok. Ancak tahmin ediyorum ki, <a title="Completely Automated Public Turing test to tell Computers and Humans Apart" href="http://tr.wikipedia.org/wiki/CAPTCHA" target="_blank">captcha</a> veya buna benzer bir sistemde kullanılmak üzere oluşturulmuş bir klasör. İçinde daha sonradan kullanmak üzere yazı tiplerinizi saklayabilirsiniz.</p>
<p><strong>Helpers klasörü</strong><br />
Kullanılmak üzere hazırlanmış yardım fonksiyonlarının bulunduğu klasördür.  <strong></p>
<p>Language klasörü</strong><br />
Dil dosyalarının saklandığı klasördür.</p>
<p><strong>Libraries klasörü</strong><br />
Kullanılmak üzere hazırlanmış sistem kütüphanelerinin bulunduğu klasördür.  <strong></p>
<p>Logs klasörü</strong><br />
Sistem kayıtlarını tutan klasördür.</p>
<p><strong>Plugins klasörü</strong><br />
Eklentilerin bulunduğu klasördür.  <strong></p>
<p>Scaffolding klasörü</strong><br />
İlk önce bu terimin ne olduğuna dair fikir edinmemizin yararı olacağını düşünüyorum. <strong>Scaffolding</strong>, <strong><a title="Ruby On Rails" href="http://www.rubyonrails.org/" target="_blank">Ruby On Rails</a></strong> dünyasında adını sıkça duyduğumuz, veritabanı üzerinde ki bilgileri kod yazmaya gerek duymadan işleyebileceğimiz, sisteme verilen ad. <strong>Scaffolding</strong> klasörüde bu sistemi içinde barındıran depodur.</p>
<p>Kabaca <strong>CI</strong>'nin klasör yapısı bu şekilde özetlenebilir. Daha detaylı bilgi için <strong>CI</strong> ile birlikte gelen <a title="CodeIgniter - User Guide" href="http://codeigniter.com/user_guide/" target="_blank">kullanım rehberine</a> bakabilirsiniz.</p>
<p>Bu kadar kaba bilgiden sonra esas işlerimizi yürüteceğimiz <strong>Application</strong> klasörünün yapısına deyinmek istiyorum.</p>
<p>Hatırlarsanız <strong>Application</strong> klasörü bizim için büyük önem arz etmekteydi. Çünkü büyük çoğunlukla bu klasör ile haşır neşir olacağız.</p>
<p><strong>Application</strong> klasörü içinde bulunan <strong>Config</strong> klasöründe çeşitli ayarlamalar yapabileceğimiz dosyalar bulunmaktadır. Burada bulunan dosyalar ile veritabanı ayarları ve <strong>CI</strong> ile ilgili çeşitli sistem ayarları yapabilirsiniz.</p>
<blockquote><p><strong>Controller</strong> klasöründe ise istekte bulunduğumuz işlemleri ve model yapısı ile sağladığımız verileri işleyeceğimiz dosyalar saklanacaktır. (İş katmanı)</p></blockquote>
<blockquote><p><strong>Errors</strong> klasöründe hata dosyaları bulunmaktadır. İsterseniz siz de kendinize göre hata sayfaları hazırlayıp bunları <strong>CI</strong>'nin işlemesini sağlayabilirsiniz.</p></blockquote>
<blockquote><p><strong>Hooks</strong> klasörü hakkında henüz bilgi sahibi olmadığım için hakkında birşey söyleyemiyorum. Öğrenir öğrenmez sizlerle paylaşacağım. (:  <strong></p>
<p>Libraries</strong> klasöründe, daha önce de bahsettiğim gibi kendi yazdığımız kütüphaneleri daha sonra kullanmak üzere burada saklayacağız.  <strong></p>
<p>Model</strong> klasöründe uygulamamız için yazdığımız veritabanı işlemlerinin bulunduğu dosyalar saklanacaktır. (Veri katmanı)  <strong></p>
<p>View</strong> klasöründe ise arayüz dosyalarımız saklanacaktır. (Sunum katmanı)</p></blockquote>
<p>Evet <strong>CI</strong>'nin <strong>Application</strong> klasöründe bulunan, klasör ve dosya yapısına da kabaca değinmiş olduk. Umuyorum ki bu yazım ile CI hakkında biraz daha bilgi sahip oldunuz.</p>
<p>Bir sonra ki yazımda <strong>CI</strong> dosyaların yapılandırılması hakkında bilgiler vermek istiyorum. Sonra ki yazımda görüşmek üzere...</p>
<p><span style="font-weight:bold;">Alıntı :</span> <a href="http://www.katodivaihe.com/" target="_blank">http://www.katodivaihe.com</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Where is the Include Coming From ??? [ Ref: ]]]></title>
<link>http://tohin.wordpress.com/2008/08/06/where-is-the-include-coming-from-ref/</link>
<pubDate>Wed, 06 Aug 2008 06:54:45 +0000</pubDate>
<dc:creator>tohin</dc:creator>
<guid>http://tohin.es.wordpress.com/2008/08/06/where-is-the-include-coming-from-ref/</guid>
<description><![CDATA[Today i saw this post referenced by Derek Allard and found it handy.
The Includes of the system map ]]></description>
<content:encoded><![CDATA[<p>Today i saw this post referenced by Derek Allard and found it handy.</p>
<p>The Includes of the system map out of the dependencies of the system. [ <a href="http://phpimpact.wordpress.com/2008/08/04/php-applications-where-is-the-include-coming-from/">Here</a> ]</p>
<p>Tools Used to Develop Such maps are..  [<a href="http://t3.dotgnu.info/blog/tags/inclued/">here</a>] and [ <a href="http://www.graphviz.org/">here</a> ]</p>
<p>Check this for CodeIgniter:</p>
<p><img style="max-width:800px;" src="http://tohin.files.wordpress.com/2008/08/codeigniter.gif" height="175" width="523" /></p>
]]></content:encoded>
</item>

</channel>
</rss>
