<?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>Agence de Développement Informatique du Nord &#187; module</title>
	<atom:link href="http://blog.adin.pro/tag/module/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>PHP &#8211; Use of undefined constant MCRYPT_BLOWFISH &#8211; assumed &#8216;MCRYPT_BLOWFISH</title>
		<link>http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/</link>
		<comments>http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/#comments</comments>
		<pubDate>Thu, 07 Aug 2014 12:45:43 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[module]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=393</guid>
		<description><![CDATA[<p>While your coding session, you encounter this error : You think, easy, a module should be missing on my php So you install it : And restart apache. But it still doesn&#8217;t work. In phpinfo() it seems the module is &#8230; <a href="http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/">PHP &#8211; Use of undefined constant MCRYPT_BLOWFISH &#8211; assumed &#8216;MCRYPT_BLOWFISH</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>While your coding session, you encounter this error :</p>
<pre class="brush: bash; title: ; notranslate">
Use of undefined constant MCRYPT_BLOWFISH - assumed 'MCRYPT_BLOWFISH
</pre>
<p>You think, easy, a module should be missing on my php<br />
So you install it :</p>
<pre class="brush: bash; title: ; notranslate">
sudo apt-get install php5-mcrypt
</pre>
<p>And restart apache.</p>
<p>But it still doesn&#8217;t work. In phpinfo() it seems the module is not installed.</p>
<p>In fact with the new version of PHP, you still need to activate the module</p>
<pre class="brush: bash; title: ; notranslate">
php5enmod -s apache2 mcrypt
</pre>
<p>The restart apache and the module should work.</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/">PHP &#8211; Use of undefined constant MCRYPT_BLOWFISH &#8211; assumed &#8216;MCRYPT_BLOWFISH</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2014-08-07/php-use-of-undefined-constant-mcrypt_blowfish-assumed-mcrypt_blowfish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Développement d&#8217;un module magento avec Git et Modman</title>
		<link>http://blog.adin.pro/2013-06-27/developpement-dun-module-magento-avec-git-et-modman/</link>
		<comments>http://blog.adin.pro/2013-06-27/developpement-dun-module-magento-avec-git-et-modman/#comments</comments>
		<pubDate>Thu, 27 Jun 2013 09:26:20 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[modman]]></category>
		<category><![CDATA[module]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=239</guid>
		<description><![CDATA[<p>Ca fait donc un moment que j&#8217;utilise Git dans mes développements quotidiens et jusqu&#8217;à présent j&#8217;utilisais le fichier .gitignore pour sortir l&#8217;ensemble des fichiers de magento de mon repo. Ensuite il me suffisait d&#8217;ajouter les fichiers de mon modules en &#8230; <a href="http://blog.adin.pro/2013-06-27/developpement-dun-module-magento-avec-git-et-modman/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-06-27/developpement-dun-module-magento-avec-git-et-modman/">Développement d&#8217;un module magento avec Git et Modman</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Ca fait donc un moment que j&#8217;utilise Git dans mes développements quotidiens et jusqu&#8217;à présent j&#8217;utilisais le fichier .gitignore pour sortir l&#8217;ensemble des fichiers de magento de mon repo.</p>
<p>Ensuite il me suffisait d&#8217;ajouter les fichiers de mon modules en utilisant le paramètre de forçage ce qui me donnait des trucs du style :</p>
<pre class="brush: bash; title: ; notranslate">
git add -f app/code/community/MonNamespace/MonModule/
</pre>
<p>Ca fonctionne .. c&#8217;est pas optimal et il faut pas oublier d&#8217;inclure à la main l&#8217;ensemble des fichiers&#8230;<br />
Aujourd&#8217;hui j&#8217;ai décidé d&#8217;essayer un outil qui à priori est fait pour faire ce type de développement j&#8217;ai nommé <a title="modman" href="https://github.com/colinmollenhour/modman/wiki/Tutorial" target="_blank">modman</a></p>
<p>En résumé c&#8217;est un gros bash qui va s&#8217;occuper pour nous :</p>
<ul>
<li>de gérer les interactions avec votre repository git en le clonant dans son répertoire .modman</li>
<li>de faire les liens symboliques du repository placé dans .modman et notre instance de Magento</li>
</ul>
<h2>Etape 1 &#8211; Création d&#8217;un repository git qui va contenir le code de notre module</h2>
<p>Donc la première chose à faire est de créer votre nouveau bare repository git avec par exemple le fichier de configuration modman à l&#8217;intérieur.</p>
<p>Sur le serveur contenant git</p>
<pre class="brush: bash; title: ; notranslate">
mkdir &lt;monrepot&gt;.git
cd !$
git --bare init
</pre>
<p>Puis en local chez vous vous préparer à faire votre premier commit</p>
<pre class="brush: bash; title: ; notranslate">
cd /tmp
mkdir temporaire
cd temporaire
git init
git remote add origin &lt;monserveur&gt;/&lt;monrepot&gt;.git
touch modman
git add modman
git commit -f &quot;Initial commit&quot;
git push origin master
</pre>
<p>et voilà .. fin de la première étape .. votre repo git qui va contenir le module est prêt</p>
<h2>Etape 2 &#8211; Initialisation de modman et clone</h2>
<p>Bon maintenant il vous faut une version toute fraichement installé de magento pour commencer .. je vais pas vous expliquer comment faire .. c&#8217;est assez bien décrit <a title="Installer magento" href="http://www.install-magento.com/" target="_blank">ici</a> ou <a title="Installer magento" href="http://blog.baobaz.com/blog/installer-magento-en-5-minutes" target="_blank">ici</a></p>
<p>Vous êtes donc désormais dans le DocumentRoot de votre magento et on va commencer par :</p>
<ul>
<li>Initialiser modman
<pre class="brush: bash; title: ; notranslate">modman init</pre>
</li>
<li>Cloner notre dépôt git
<pre class="brush: bash; title: ; notranslate">modman clone '&lt;monserveur&gt;/&lt;monrepot&gt;.git'</pre>
</li>
</ul>
<p>Arrivé ici vous devriez avoir votre repo cloné dans .modman/<monrepot></p>
<h2>Etape 3 &#8211; Le fichier de configuration de modman</h2>
<p>Le fichier de configuration de modman est relativement simple en gros on a par ligne </p>
<pre class="brush: bash; title: ; notranslate"> &lt;cible&gt; &lt;source&gt;</pre>
<p>Du coup on va commencer avec une configuration basique pour un module à savoir</p>
<pre class="brush: bash; title: ; notranslate">
app/etc/modules/Namespace_Module.xml       app/etc/modules/Namespace_Module.xml
app/code/community/Namespace/Module/       app/code/community/Namespace/Module/
</pre>
<p>On peut lancer ensuite la commande modman, à la racine de votre documentroot,  qui va créer les liens symboliques</p>
<pre class="brush: bash; title: ; notranslate">modman update &lt;monrepot&gt;</pre>
<p>Vous devriez voir apparaître dans les répertoires concernés les liens symboliques mappés sur le repot (dans .modman/xxxx)</p>
<p>Voilà .. pour finir il ne faut pas oublier d&#8217;activer la gestion de la prise en compte des liens symboliques dans magento. Ca se passe dans le backend et plus particulièrement dans le menu <strong>Système>Configuration>Développeur>Paramètres de gabarit</strong></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-06-27/developpement-dun-module-magento-avec-git-et-modman/">Développement d&#8217;un module magento avec Git et Modman</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2013-06-27/developpement-dun-module-magento-avec-git-et-modman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
