Note that there are some explanatory texts on larger screens.

plurals
  1. POhow should my .htaccess file look like so it ignores js files?
    text
    copied!<p>I didn't know there was something funny with it until I tried to inject a js file into a view with this:</p> <pre><code>$this-&gt;headScript()-&gt;appendFile($this-&gt;baseUrl('/js/planilla.js')); echo $this-&gt;headScript(); </code></pre> <p>Now, I'm using the Zend Framework and there's no problem when I do the same thing with any css file within the /public/css folder so I really don't nknow what the problem might be. The js folder and js file DO EXIST, and when I try to just access it (http://domain.local/js/planilla.js) through the browser I get the following error message:</p> <blockquote> <p>Exception information:</p> <p>Message: Invalid controller specified (js) Stack trace:</p> <h1>0 /home/fiodorovich/library/ZendFramework/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))</h1> <h1>1 /home/fiodorovich/library/ZendFramework/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()</h1> <h1>2 /home/fiodorovich/library/ZendFramework/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()</h1> <h1>3 /home/fiodorovich/public_html/gisele/public/index.php(26): Zend_Application->run()</h1> <h1>4 {main}</h1> <p>Request Parameters:</p> <p>array ( 'controller' => 'js', 'action' => 'planilla.js', 'module' => 'default', ) </p> </blockquote> <p>Right now my .htaccess looks like this:</p> <pre><code>SetEnv APPLICATION_ENV development RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_URI} (^.*/gisele.local/.*)$ [NC] RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] </code></pre> <p>Any help whatsoever will be welcomed and thud, thanks in advance...</p> <p>EDIT: the vhost file</p> <p>EDIT2: I got this thing to work.</p> <p>I had to add this line to the application.ini file for it to work:</p> <pre><code>resources.frontController.params.useDefaultControllerAlways = 1 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload