<?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>Frédéric MARTINEZ - Freelance MAGENTO &#187; Drupal</title>
	<atom:link href="http://www.martinez-frederic.fr/category/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martinez-frederic.fr</link>
	<description>Freelance Magento Toulouse - Entrepreneur</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:54:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Chemin absolu sous Drupal</title>
		<link>http://www.martinez-frederic.fr/2009/07/30/chemin-absolu-sous-drupal/</link>
		<comments>http://www.martinez-frederic.fr/2009/07/30/chemin-absolu-sous-drupal/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 14:01:22 +0000</pubDate>
		<dc:creator>Frédéric Martinez</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[chemin]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[theme]]></category>
		<guid isPermaLink="false">http://martinez-frederic.fr/?p=386</guid>
		<description><![CDATA[Dans le développement d&#8217;un module personnel sous Drupal, nous avons besoin du chemin absolu du theme (par exemple). Sans cela, nous sommes obligés d&#8217;utiliser un chemin commencant par /sites/all/themes/nom_theme/. Cependant, ce n&#8217;est pas pratique si nous déplaçons notre site dans un dossier. Cela diffère de la racine. Nous utilisons donc &#171;&#160;drupal_get_path&#160;&#187; pour cela. global $theme; [...]]]></description>
			<content:encoded><![CDATA[<p>Dans le développement d&#8217;un module personnel sous Drupal, nous avons besoin du chemin absolu du theme (par exemple). Sans cela, nous sommes obligés d&#8217;utiliser un chemin commencant par /sites/all/themes/nom_theme/.</p>
<p>Cependant, ce n&#8217;est pas pratique si nous déplaçons notre site dans un dossier. Cela diffère de la racine. Nous utilisons donc &laquo;&nbsp;<em><a href="http://api.drupal.org/api/function/drupal_get_path">drupal_get_path</a></em>&nbsp;&raquo; pour cela.</p>
<pre class="brush: php; title: ;">
global $theme;
 $ptt = drupal_get_path('theme', $theme);
</pre>
<p>utilisation :</p>
<pre class="brush: php; title: ;">&lt;img src=&quot;/&lt;?php echo $ptt ?&gt;/images/logo.png&quot; alt=&quot;&quot; /&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinez-frederic.fr/2009/07/30/chemin-absolu-sous-drupal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
