<?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>Kromack &#187; SGBD</title>
	<atom:link href="http://kromack.com/tag/sgbd/feed/" rel="self" type="application/rss+xml" />
	<link>http://kromack.com</link>
	<description>Ressources et tutoriaux : Web 2.0 - PHP - CodeIgniter - Webdesign</description>
	<lastBuildDate>Thu, 09 Sep 2010 18:06:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Intégration de MongoDB à CodeIgniter</title>
		<link>http://kromack.com/developpement-php/codeigniter/integration-de-mongodb-a-codeigniter/</link>
		<comments>http://kromack.com/developpement-php/codeigniter/integration-de-mongodb-a-codeigniter/#comments</comments>
		<pubDate>Sat, 15 May 2010 13:13:59 +0000</pubDate>
		<dc:creator>Kromack</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SGBD]]></category>

		<guid isPermaLink="false">http://www.kromack.com/?p=1046</guid>
		<description><![CDATA[MongoDB est un gestionnaire de base de données &#171;&#160;NoSQL&#160;&#187; orientée documents dans la lignée de CouchDB et Riak. Ces SGBD dits SchemaLess permettent de stocker des objets dynamiques sous forme de Hash (notamment au format JSON) indépendamment de leur structure. Il n&#8217;existe donc plus de contraintes d&#8217;évolution de tables comme c&#8217;est le cas par exemple [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fkromack.com%252Fdeveloppement-php%252Fcodeigniter%252Fintegration-de-mongodb-a-codeigniter%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Int%C3%A9gration%20de%20MongoDB%20%C3%A0%20CodeIgniter%22%20%7D);"></div>
<p><img class="alignright size-full wp-image-1048" title="Powered Mongo DB" src="http://www.kromack.com/wordpress/wp-content/uploads/2010/05/PoweredMongoDBbrown66.png" alt="Powered Mongo DB" width="168" height="79" /><strong>MongoDB</strong> est un <strong>gestionnaire de base de données</strong> &laquo;&nbsp;<strong>NoSQL</strong>&nbsp;&raquo; <strong>orientée documents</strong> dans la lignée de <strong>CouchDB</strong> et <strong>Riak</strong>. Ces <strong>SGBD </strong>dits <strong>SchemaLess</strong> permettent de stocker des objets dynamiques sous forme de <strong>Hash</strong> (notamment au format <strong>JSON</strong>) indépendamment de leur structure. Il n&#8217;existe donc plus de contraintes d&#8217;évolution de tables comme c&#8217;est le cas par exemple avec <strong>MySQL</strong>.</p>
<p>Ainsi, la mise à jour des objets peut être effectuée dynamiquement (ajouts de champs par exemple) sans impacts sur le stockage de ceux-ci.</p>
<p><strong>MongoDB</strong> (qui est écrite en <strong>C++</strong>) a pour avantages d&#8217;être <strong>Open Source</strong> et de présenter de très bonnes performances.</p>
<p>Si vous désirez intégrer <strong>MongoDB</strong> à vos applications <strong>CodeIgniter</strong>, sachez qu&#8217;il existe déjà plusieurs <strong>ressources et librairies</strong> facilitant cette tâche !</p>
<ul class="charte">
<li><a href="http://bitbucket.org/alexbilbie/codeigniter-mongo-library/wiki/Home" target="_blank">CodeIgniter Mongo Library</a></li>
<li><a href="http://alexbilbie.blogs.lincoln.ac.uk/2010/04/09/mongodb-codeigniter-101-part-1/" target="_blank">Tutoriel MongoDB + CodeIgniter</a></li>
<li><a href="http://stackoverflow.com/questions/2248789/mongodb-and-codeigniter" target="_blank">Thread sur StackOverflow</a></li>
</ul>
<p>Bonne intégration ! <img src='http://kromack.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

]]></content:encoded>
			<wfw:commentRss>http://kromack.com/developpement-php/codeigniter/integration-de-mongodb-a-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bonnes pratiques sur la gestion de bases de données sous CodeIgniter</title>
		<link>http://kromack.com/developpement-php/codeigniter/bonnes-pratiques-sur-la-gestion-de-base-de-donnees-sous-codeigniter/</link>
		<comments>http://kromack.com/developpement-php/codeigniter/bonnes-pratiques-sur-la-gestion-de-base-de-donnees-sous-codeigniter/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 22:16:59 +0000</pubDate>
		<dc:creator>Kromack</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Acicrud]]></category>
		<category><![CDATA[Bonnes pratiques]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programmation Orientée Objet]]></category>
		<category><![CDATA[SGBD]]></category>
		<category><![CDATA[tutoriel]]></category>

		<guid isPermaLink="false">http://www.kromack.com/?p=767</guid>
		<description><![CDATA[Cet article illustre trois bonnes pratiques et astuces concernant la gestion et la configuration de bases de données sous le framework PHP CodeIgniter au travers de la création de modèles utilisant la classe Active Record.]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fkromack.com%252Fdeveloppement-php%252Fcodeigniter%252Fbonnes-pratiques-sur-la-gestion-de-base-de-donnees-sous-codeigniter%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Bonnes%20pratiques%20sur%20la%20gestion%20de%20bases%20de%20donn%C3%A9es%20sous%20CodeIgniter%22%20%7D);"></div>
<p>Je vous propose au travers de ce tutoriel de mettre en évidence <strong>3 bonnes pratiques</strong> concernant la gestion de base de données sous <strong>CodeIgniter</strong> et plus particulièrement par rapport à la création de modèles basés sur la classe Active Record.</p>
<p>Je précise avant tout que les points évoqués ci-après sont pleinement compatibles avec <strong>ACICRUD</strong>, ma <a title="Acicrud library" href="http://www.kromack.com/acicrud/" target="_blank">librairie d&#8217;abstraction de modèles pour CodeIgniter</a>.</p>
<h2>Gérer efficacement les préfixes de tables</h2>
<p>Afin de débuter cet article, parlons des préfixes de tables pour vos applications. Puisqu&#8217;il est admit par le simple fait d&#8217;utiliser une librairie d&#8217;abstraction de base de données comme Active Record sous CodeIgniter, que votre base de données est abstraite, c&#8217;est à dire que l&#8217;on ne connaît pas en théorie quel système de gestion de base de données est utilisé en production, je considère également admit que vous ne devriez pas connaître la liste des tables présentes dans la base de données de production (ou du moins qu&#8217;il ne faut pas en tenir compte lors de la création du schéma de base de données de votre application).</p>
<p>Ainsi, afin d&#8217;éviter toute collision de table avec un autre système utilisant la même base de données, il devient très utile de préfixer l&#8217;ensemble des tables de notre application par une chaîne unique mais explicite.</p>
<p>Pour illustrer ceci, nous allons partir du principe que nous concevons une application nommée &laquo;&nbsp;Gestion&nbsp;&raquo; pour un client donné. Nous ne pouvons pas connaître à l&#8217;avance la liste des tables dans la base de données qu&#8217;utilise déjà notre client pour ses autres applications.</p>
<p>Aussi, afin d&#8217;éviter toute collision sur les noms de tables, nous allons choisir de préfixer nos tables avec la chaîne &laquo;&nbsp;gestion_&nbsp;&raquo;.</p>
<p>C&#8217;est ainsi que toutes nos tables SQL devront être créées avec ce préfixe, comme par exemple &laquo;&nbsp;gestion_user&nbsp;&raquo;, &laquo;&nbsp;gestion_user_acl&nbsp;&raquo;, etc. De cette manière, si la base de données de production comporte déjà une table nommée &laquo;&nbsp;user&nbsp;&raquo;, cela ne générera aucun conflit.</p>
<p>Ceci est très facilement gérable avec <strong>CodeIgniter</strong>, en effet il suffit d&#8217;indiquer le préfixe de table à utiliser dans le fichier de configuration <em>database.php</em>. Ainsi, <strong>Active Record </strong>utilisera automatiquement le préfixe de nos tables pour lors de la <strong>génération de requêtes SQL</strong>.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p767code1'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7671"><td class="code" id="p767code1"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hostname'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;root&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;password&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'database'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;the_production_database&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dbdriver'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;mysql&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dbprefix'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;gestion_&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pconnect'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'db_debug'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cache_on'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cachedir'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'char_set'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;utf8&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'production'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dbcollat'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;utf8_general_ci&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h2>Ne pas coder en dur les noms de table !</h2>
<p>Voici une règle simple mais souvent oubliée : <strong>éviter de coder en dur</strong>. Ceci est particulièrement valable pour les noms de tables !</p>
<p>Voici comment profiter simplement de la programmation orientée objet afin de transformer notre nom de table en attribut de classe de notre modèle.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p767code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7672"><td class="code" id="p767code2"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> User <span style="color: #000000; font-weight: bold;">extends</span> Model <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$table</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'user'</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        parent<span style="color: #339933;">::</span>__construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> example<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    	<span style="color: #666666; font-style: italic;">//$this-&gt;table is used instead of the 'user' string.</span>
        <span style="color: #666666; font-style: italic;">//Active Record will use `gestion_user`</span>
    	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">select</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">from</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">table</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">result</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Ainsi, à chaque fois que nous aurons besoin d&#8217;appeler la table utilisée par le modèle, il suffira d&#8217;utiliser <em>$this-&gt;table,</em> ce qui aura également comme avantage de rendre les <strong>méthodes du modèle plus génériques</strong>.</p>
<h2>Utiliser un préfixe de table avec la classe Database</h2>
<p>Il existe certains cas de figures ou les méthodes évoquées ci-dessus ne suffisent pas totalement. C&#8217;est notamment le cas lorsqu&#8217;une requête SQL doit être effectuée sur plusieurs tables ou lorsque le <strong>query builder d&#8217;Active Record</strong> n&#8217;est plus utilisé.</p>
<p>Prenons un exemple concret en sélectionnant des données dans la table gestion_user via la méthode <em>query()</em>. Dans ce cas précis, le préfixe de table ne sera pas automatiquement ajouté par <strong>CodeIgniter</strong> puisque <em>query()</em> permet justement d&#8217;écrire manuellement une requête SQL.</p>
<p>Il faut alors utiliser <em>$this->db->dbprefix()</em> afin de générer le préfixe de table adéquat.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p767code3'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7673"><td class="code" id="p767code3"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> User <span style="color: #000000; font-weight: bold;">extends</span> Model <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$table</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'user'</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        parent<span style="color: #339933;">::</span>__construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> manuel_query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    	<span style="color: #666666; font-style: italic;">//One way</span>
    	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SELECT * FROM `'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbprefix</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">table</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'` LIMIT 0 , 30'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    	<span style="color: #666666; font-style: italic;">//Second way</span>
    	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SELECT * FROM `'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbprefix</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">table</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'` LIMIT 0 , 30'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><em>Notez que les deux méthodes produisent un résultat identique.</em></p>
<h2>Conclusion</h2>
<p>Il existe de nombreuses méthodes permettant d&#8217;améliorer la <strong>qualité et la généricité des modèles sous CodeIgniter</strong>, et nous n&#8217;abordons même pas les notions <strong>d&#8217;ORM</strong> ou de <strong>CRUD</strong> dans cet article. Quoiqu&#8217;il en soit, je suis sûr que chaque <strong>développeur CodeIgniter</strong> utilise ses propres techniques, aussi n&#8217;hésitez pas à partager les vôtres en commentant ce billet <img src='http://kromack.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

]]></content:encoded>
			<wfw:commentRss>http://kromack.com/developpement-php/codeigniter/bonnes-pratiques-sur-la-gestion-de-base-de-donnees-sous-codeigniter/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
