<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Framework on Outweb</title><link>https://outweb.eu/categories/framework/</link><description>Recent content in Framework on Outweb</description><image><title>Outweb</title><url>https://outweb.eu/images/seo/outweb-default-og.svg</url><link>https://outweb.eu/images/seo/outweb-default-og.svg</link></image><generator>Hugo</generator><language>fr-FR</language><lastBuildDate>Tue, 16 Aug 2011 06:28:45 +0000</lastBuildDate><atom:link href="https://outweb.eu/categories/framework/feed.xml" rel="self" type="application/rss+xml"/><item><title>Framework JQuery mobile</title><link>https://outweb.eu/2011/08/16/framework-jquery-mobile/</link><pubDate>Tue, 16 Aug 2011 06:28:45 +0000</pubDate><guid isPermaLink="false">https://outweb.eu/2011/08/16/framework-jquery-mobile/</guid><description>Jqmphp, framework JQuery mobile</description></item><item><title>Sortie de Symfony 2</title><link>https://outweb.eu/2011/07/29/sortie-de-symphony-2/</link><pubDate>Fri, 29 Jul 2011 05:22:59 +0000</pubDate><guid isPermaLink="false">https://outweb.eu/2011/07/29/sortie-de-symphony-2/</guid><description>&lt;p>La nouvelle mouture tant attendue de Symfony 2 est sortie hier matin en version stable. Après de nombreux mois de tests, de versions releases, beta et RC, la version stable et définitive est enfin accessible.&lt;/p>
&lt;p>Au programme, énormément de changements et une simplification apparente du framework. Les bundles font leur apparition, ils vont vous permettre d&amp;rsquo;insérer dans votre site Internet des modules que vous pouvez télécharger avec composer. Il existe déjà un grand nombre de bundles tout faits et prêts à l&amp;rsquo;emploi, comme un forum ou une gestion des membres par exemple. Le but est réellement à court terme de fournir tous les codes de base pour un site Internet, afin de se focaliser seulement sur le coeur de votre application.&lt;/p></description></item><item><title>Créer un site Internet pour mobile avec JQuery mobile</title><link>https://outweb.eu/2011/07/12/creer-un-site-internet-pour-mobile-avec-jquery-mobile/</link><pubDate>Tue, 12 Jul 2011 19:46:24 +0000</pubDate><guid isPermaLink="false">https://outweb.eu/2011/07/12/creer-un-site-internet-pour-mobile-avec-jquery-mobile/</guid><description>&lt;p>Avez-vous déjà pensé à faire une application mobile, ou une version mobile de votre site Internet ?&lt;br>
Si oui, vous avez dû vous confronter à des centaines de problèmes de compatibilité entre les navigateurs mobile.&lt;/p>
&lt;p>L&amp;rsquo;article va vous montrer comment faire des pages HTML compatibles sur tous les téléphones et tablettes.&lt;/p>
&lt;p>Afin de bien comprendre l&amp;rsquo;article, il vous faudra connaître les bases du HTML ainsi que JQuery.&lt;/p>
&lt;p>Dans un premier temps, il va falloir télécharger la libraire JQuery mobile. Donc rendez-vous à la page suivante : &lt;a href="https://jquerymobile.com/download/">Télécharger&lt;/a>.&lt;/p></description></item><item><title>Système de pagination sous CodeIgniter</title><link>https://outweb.eu/2011/06/08/systeme-de-pagination-sous-codeigniter/</link><pubDate>Wed, 08 Jun 2011 09:45:58 +0000</pubDate><guid isPermaLink="false">https://outweb.eu/2011/06/08/systeme-de-pagination-sous-codeigniter/</guid><description>&lt;p>Avec Codigniter vous pouvez mettre en place simplement un système de pagination pour afficher vos informations par paquets. Tout cela sans se prendre la tête et se noyer dans des dizaines de lignes de code.&lt;/p>
&lt;p>Nous allons créer la base de donnée de l&amp;rsquo;article : &lt;a href="https://outweb.eu/2011/06/04/installation-et-configuration-de-codeigniter/">Installation et Configuration de CodeIgniter&lt;/a> .&lt;/p>
&lt;p>Dans un premier temps il créer le model. Pour cela nous allons utiliser la classe active record de CodeIgniter.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-gdscript3" data-lang="gdscript3">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">class&lt;/span> model &lt;span style="color:#66d9ef">extends&lt;/span> CI_Model {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> function __construct()
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">//&lt;/span> Call the Model constructor
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> parent::__construct();
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> public function getAll(&lt;span style="color:#f92672">$&lt;/span>debut&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">0&lt;/span>) {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">return&lt;/span> &lt;span style="color:#f92672">$&lt;/span>this&lt;span style="color:#f92672">-&amp;gt;&lt;/span>db&lt;span style="color:#f92672">-&amp;gt;&lt;/span>select(&lt;span style="color:#e6db74">&amp;#39;*&amp;#39;&lt;/span>)&lt;span style="color:#f92672">-&amp;gt;&lt;/span>from(&lt;span style="color:#e6db74">&amp;#39;message&amp;#39;&lt;/span>)&lt;span style="color:#f92672">-&amp;gt;&lt;/span>order_by(&lt;span style="color:#e6db74">&amp;#34;id&amp;#34;&lt;/span>, &lt;span style="color:#e6db74">&amp;#34;desc&amp;#34;&lt;/span>)&lt;span style="color:#f92672">-&amp;gt;&lt;/span>limit(&lt;span style="color:#ae81ff">30&lt;/span>, &lt;span style="color:#f92672">$&lt;/span>debut)&lt;span style="color:#f92672">-&amp;gt;&lt;/span>get()&lt;span style="color:#f92672">-&amp;gt;&lt;/span>result();
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> public function count(&lt;span style="color:#f92672">$&lt;/span>where &lt;span style="color:#f92672">=&lt;/span> array()) {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">return&lt;/span> (&lt;span style="color:#a6e22e">int&lt;/span>) &lt;span style="color:#f92672">$&lt;/span>this&lt;span style="color:#f92672">-&amp;gt;&lt;/span>db&lt;span style="color:#f92672">-&amp;gt;&lt;/span>where(&lt;span style="color:#f92672">$&lt;/span>where)&lt;span style="color:#f92672">-&amp;gt;&lt;/span>count_all_results(&lt;span style="color:#e6db74">&amp;#39;message&amp;#39;&lt;/span>);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Puis nous allons créer notre contrôleur.&lt;/p></description></item><item><title>Installation et Configuration de CodeIgniter</title><link>https://outweb.eu/2011/06/04/installation-et-configuration-de-codeigniter/</link><pubDate>Sat, 04 Jun 2011 12:32:39 +0000</pubDate><guid isPermaLink="false">https://outweb.eu/2011/06/04/installation-et-configuration-de-codeigniter/</guid><description>&lt;h2 id="pré-requis">Pré requis&lt;/h2>
&lt;ul>
&lt;li>Un serveur Apache ( lamp, wamp, easy php, mamp, &amp;hellip; )&lt;/li>
&lt;li>Un SGBD mysql&lt;/li>
&lt;/ul>
&lt;h2 id="la-base-de-données">La Base de données&lt;/h2>
&lt;p>Dans un premier temps voici un exemple de petite base de données. Par exemple la base de données suivante&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-mysql" data-lang="mysql">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">CREATE&lt;/span> &lt;span style="color:#66d9ef">DATABASE&lt;/span> &lt;span style="color:#f92672">`&lt;/span>tuto&lt;span style="color:#f92672">`&lt;/span> &lt;span style="color:#66d9ef">DEFAULT&lt;/span> &lt;span style="color:#66d9ef">CHARACTER&lt;/span> &lt;span style="color:#66d9ef">SET&lt;/span> latin1 &lt;span style="color:#66d9ef">COLLATE&lt;/span> latin1_swedish_ci;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">USE&lt;/span> &lt;span style="color:#f92672">`&lt;/span>tuto&lt;span style="color:#f92672">`&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">CREATE&lt;/span> &lt;span style="color:#66d9ef">TABLE&lt;/span> &lt;span style="color:#66d9ef">IF&lt;/span> &lt;span style="color:#66d9ef">NOT&lt;/span> &lt;span style="color:#66d9ef">EXISTS&lt;/span> &lt;span style="color:#f92672">`&lt;/span>message&lt;span style="color:#f92672">`&lt;/span> (
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">`&lt;/span>id&lt;span style="color:#f92672">`&lt;/span> &lt;span style="color:#66d9ef">int&lt;/span>(&lt;span style="color:#ae81ff">8&lt;/span>) &lt;span style="color:#66d9ef">NOT&lt;/span> &lt;span style="color:#66d9ef">NULL&lt;/span> &lt;span style="color:#66d9ef">AUTO_INCREMENT&lt;/span>,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">`&lt;/span>sujet&lt;span style="color:#f92672">`&lt;/span> &lt;span style="color:#66d9ef">varchar&lt;/span>(&lt;span style="color:#ae81ff">255&lt;/span>) &lt;span style="color:#66d9ef">NOT&lt;/span> &lt;span style="color:#66d9ef">NULL&lt;/span>,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">`&lt;/span>message&lt;span style="color:#f92672">`&lt;/span> &lt;span style="color:#66d9ef">text&lt;/span> &lt;span style="color:#66d9ef">NOT&lt;/span> &lt;span style="color:#66d9ef">NULL&lt;/span>,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">PRIMARY&lt;/span> &lt;span style="color:#66d9ef">KEY&lt;/span> (&lt;span style="color:#f92672">`&lt;/span>id&lt;span style="color:#f92672">`&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>) &lt;span style="color:#66d9ef">ENGINE&lt;/span>&lt;span style="color:#f92672">=&lt;/span>MyISAM &lt;span style="color:#66d9ef">DEFAULT&lt;/span> &lt;span style="color:#66d9ef">CHARSET&lt;/span>&lt;span style="color:#f92672">=&lt;/span>latin1 &lt;span style="color:#66d9ef">AUTO_INCREMENT&lt;/span>&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">1&lt;/span> ;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Maintenant que la base est prête nous alors configurer CodeIgniter pour qu&amp;rsquo;il puisse s&amp;rsquo;y connecter.&lt;/p>
&lt;p>Rendez-vous dans le fichier : application/config/database.php&lt;/p></description></item></channel></rss>