<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Commentaires sur : Du Javascript dynamique dans une vue en utilisant sf_format</title>
	<atom:link href="http://www.lexik.fr/blog/symfony/symfony/du-javascript-dynamique-dans-une-vue-en-utilisant-sf_format-746/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lexik.fr/blog/symfony/symfony/du-javascript-dynamique-dans-une-vue-en-utilisant-sf_format-746</link>
	<description>Blog sur le développement Web PHP avec Symfony 2</description>
	<lastBuildDate>Sun, 05 Feb 2012 05:07:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Par : shopoto</title>
		<link>http://www.lexik.fr/blog/symfony/symfony/du-javascript-dynamique-dans-une-vue-en-utilisant-sf_format-746/comment-page-1#comment-12284</link>
		<dc:creator>shopoto</dc:creator>
		<pubDate>Thu, 16 Sep 2010 21:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.lexik.fr/sfblog/?p=746#comment-12284</guid>
		<description>Bonsoir,

Ton article est très intérressant!
J\&#039;ai voulu le mettre en pratique.
avec la config  suivante:

Ds mon routing:
commun_arrays:
  url:   /js/commun_arrays.:sf_format
  param: { module: commun, action: arrays, sf_format: js }

Ds mon .htaccess:
..
&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  RewriteBase /

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \\..+$
  RewriteCond %{REQUEST_URI} !\\.html$
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]
&lt;/IfModule&gt;
..

ds mon settings
prod:
  .settings:
    no_script_name:         true
    logging_enabled:        false
    cache:                  true
dev:
  .settings:
    error_reporting:        &lt;?php echo (E_ALL &#124; E_STRICT).\&quot;\\n\&quot; ?&gt;
    web_debug:              true
    cache:                  true
    no_script_name:         false
    etag:                   false


avec tout ca voila mon pb:

mondomaine.com/index.php/js/commun_arrays.js  -&gt; ok
mondomaine.com/frontend_dev.php/js/commun_arrays.js  -&gt; ok
mondomaine.com/js/commun_arrays.js  -&gt; ko!!!

cette route ne fonctionne que si je precise le script index.php ou fronten_dev.php, sans l\&#039;un de ces deux fichiers il semble cherché ds le rep js (ki est vide  pour le coup).


Je pense avoir un pb avec le htaccess.

Peux tu m\&#039;éclairer ?

Merci d\&#039;avance</description>
		<content:encoded><![CDATA[<p>Bonsoir,</p>
<p>Ton article est très intérressant!<br />
J\&#8217;ai voulu le mettre en pratique.<br />
avec la config  suivante:</p>
<p>Ds mon routing:<br />
commun_arrays:<br />
  url:   /js/commun_arrays.:sf_format<br />
  param: { module: commun, action: arrays, sf_format: js }</p>
<p>Ds mon .htaccess:<br />
..<br />
&lt;IfModule mod_rewrite.c&gt;<br />
  RewriteEngine On</p>
<p>  # uncomment the following line, if you are having trouble<br />
  # getting no_script_name to work<br />
  RewriteBase /</p>
<p>  # we skip all files with .something<br />
  RewriteCond %{REQUEST_URI} \\..+$<br />
  RewriteCond %{REQUEST_URI} !\\.html$<br />
  RewriteRule .* &#8211; [L]</p>
<p>  # we check if the .html version is here (caching)<br />
  RewriteRule ^$ index.html [QSA]<br />
  RewriteRule ^([^.]+)$ $1.html [QSA]<br />
  RewriteCond %{REQUEST_FILENAME} !-f</p>
<p>  # no, so we redirect to our front web controller<br />
  RewriteRule ^(.*)$ index.php [QSA,L]<br />
&lt;/IfModule&gt;<br />
..</p>
<p>ds mon settings<br />
prod:<br />
  .settings:<br />
    no_script_name:         true<br />
    logging_enabled:        false<br />
    cache:                  true<br />
dev:<br />
  .settings:<br />
    error_reporting:        &lt;?php echo (E_ALL | E_STRICT).\&quot;\\n\&quot; ?&gt;<br />
    web_debug:              true<br />
    cache:                  true<br />
    no_script_name:         false<br />
    etag:                   false</p>
<p>avec tout ca voila mon pb:</p>
<p>mondomaine.com/index.php/js/commun_arrays.js  -&gt; ok<br />
mondomaine.com/frontend_dev.php/js/commun_arrays.js  -&gt; ok<br />
mondomaine.com/js/commun_arrays.js  -&gt; ko!!!</p>
<p>cette route ne fonctionne que si je precise le script index.php ou fronten_dev.php, sans l\&#8217;un de ces deux fichiers il semble cherché ds le rep js (ki est vide  pour le coup).</p>
<p>Je pense avoir un pb avec le htaccess.</p>
<p>Peux tu m\&#8217;éclairer ?</p>
<p>Merci d\&#8217;avance</p>
]]></content:encoded>
	</item>
</channel>
</rss>

