Przeglądaj źródła

ZF-6343
- Added IfModule for php to enable short tags in .htaccess for Zend_Tool_Project created projects

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16346 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph 16 lat temu
rodzic
commit
6472c807bb

+ 5 - 1
library/Zend/Tool/Project/Context/Zf/HtaccessFile.php

@@ -64,13 +64,17 @@ class Zend_Tool_Project_Context_Zf_HtaccessFile extends Zend_Tool_Project_Contex
         $output = <<<EOS
 SetEnv APPLICATION_ENV development
 
+<IfModule mod_php5.c>
+    php_flag short_open_tags on
+</IfModule>
+
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -s [OR]
 RewriteCond %{REQUEST_FILENAME} -l [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^.*$ - [NC,L]
 RewriteRule ^.*$ index.php [NC,L]
-        
+
 EOS;
         return $output;
     }