On Thu, Jul 31, 2008 at 9:42 PM, nolner <[EMAIL PROTECTED]> wrote:
>
> My layout file starts thus:
>
> <?php echo $this->doctype() ?><html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <script src="libajax/scriptaculous-js-1.8.1/prototype.js"
> type="text/javascript"></script>
> <script src="libajax/scriptaculous-js-1.8.1/scriptaculous.js"
> type="text/javascript"></script>
>
> This is giving me a 'missing ; before statement' error in Firebug - on
> clicking the link there I get this strange error (ZF seems to think the
> libajax directory should be the name of an action!?):
>
> <br />
> 2Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with
> message 'Action &quot;libajax&quot; does not exist and was not trapped in
> __call()' in C:\wampserver\www\library\Zend\Controller\Action.php:477
> 3Stack trace:
> 4#0 C:\wampserver\www\library\Zend\Controller\Action.php(504):
> Zend_Controller_Action-&gt;__call('libajaxAction', Array)
> 5#1 C:\wampserver\www\library\Zend\Controller\Dispatcher\Standard.php(293):
> Zend_Controller_Action-&gt;dispatch('libajaxAction')
> 6#2 C:\wampserver\www\library\Zend\Controller\Front.php(914):
> Zend_Controller_Dispatcher_Standard-&gt;dispatch(Object(Zend_Controller_Request_Http),
> Object(Zend_Controller_Response_Http))
> 7#3 C:\wampserver\www\life\index.php(58):
> Zend_Controller_Front-&gt;dispatch()
> 8#4 {main}
> 9 thrown in C:\wampserver\www\library\Zend\Controller\Action.php on line
> 477<br />
>
> And the libs are not loaded. It's got me flumuxed - any ideas? I'm fully up
> to date with zf 1.5.3 and the latest prototype and scriptaculous.

If the ZF thinks you are calling an action, then my quick guess is
that you should check your rewrite rule and exclude "js" in it.

My .htaccess looks like this:
RewriteEngine on
RewriteRule !\.(xml|pdf|php|js|ico|txt|gif|jpg|png|css|rss|zip|tar\.gz)$
index.php

Maybe (un)related, but I'd always use absolute paths... instead of
"libajax", "/libajax".

Hope that helps.
Till

Reply via email to