(on Thursday, 16 July 2009, 08:42 AM -0600):
> (1.8.4) I was looking over my server error logs and noticed a number of errors
> like the following:
>
> ***
> Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid
> controller specified (js)' in /home1/tandrtra/Zend/Controller/Dispatcher/
> Standard.php:241
> Stack trace:
> #0 /home1/tandrtra/Zend/Controller/Front.php(945):
> Zend_Controller_Dispatcher_Standard->dispatch(Object
> (Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
> #1 /home1/tandrtra/public_html/inv/index.php(47): Zend_Controller_Front->
> dispatch()
> #2 {main}
> thrown in <b>/home1/tandrtra/Zend/Controller/Dispatcher/Standard.php</b> on
> line <b>241
> ***
>
> I was looking through the manual, but I'm not sure how to tell the router that
> the route:
>
> example.com/js/*
>
> should be left alone. I'm sure this could probably be handled in the rewrite
> definitions in .htaccess, but since the rewrite rules are fairly alien to me,
> can I configure the router to accomplish this for me?
Use the recommended rewrite rules from the manual. mod_rewrite is
determining where to send the request, and the recommended rules were
written precisely to ensure that public resources such as JS, CSS, etc.
in the document root are not served by ZF.
--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论