-- Jigal sanders <[email protected]> wrote
(on Tuesday, 08 December 2009, 11:36 AM +0100):
> For some reason my baseUrl stays empty.
>
> When i do
> $this->jQuery()->setLocalPath($this->baseUrl().'js/jquery/js/
> jquery-1.3.2.min.js')
>
> Then my baseurl stays empty
>
> any idea's?
baseUrl() will return an empty string if your application is running
directly out of the document root; it will only be populated if you're
running it out of a subdirectory or appending path information to a
file:
/foo/zfapp/controller/action -> /foo/zfapp would be baseUrl()
/app.php/controller/action -> /app.php would be baseUrl()
--
Matthew Weier O'Phinney
Project Lead | [email protected]
Zend Framework | http://framework.zend.com/