|
|||
|
Hi, how does one reference the public directory in a ZF application? In short, I would like to be able to access stylesheets, javascripts, and images directory. For local development, I have been using
<app_name>/public Is there a constant or another mechanism for performing similar action? Thanks in advance, -Conrad |
|
||||
|
Generally we reference paths through the baseUrl which is located in the request object. Usually in the view, I have a view helper
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
|
|||
|
What code does one use to access the stylesheets, images, and javascripts in the public? It's not all that clear from the documentation online. I have tried the following thus far:
$this->baseUrl => produces the incorrect result $this->staticUrl => produces the incorrect result -Conrad |
![]() |
| Thread Tools | |
| Display Modes | |
|
|