Hey Barry, have a look at the documentation: You can obtain the Request object in various ways, depending on the place where you need it.
- In your action controller, in a Front Controller plugin and in an action helper you you can use $this->getRequest(); - Anywhere else, use Zend_Controller_Front::getInstance()->getRequest(); The baseurl is set in the request object on dispatch, if I remember correctly. You can also set the baseurl yourself anywhere in your application. Best regards, Tobias 2008/11/14 barry hembree <[EMAIL PROTECTED]> > > > > Matthew Weier O'Phinney-3 wrote: > > > > -- barry hembree <[EMAIL PROTECTED]> wrote > > (on Friday, 14 November 2008, 10:51 AM -0800): > >> I installed the Pastebin demo using the VirtualHost scenario and > >> everything > >> worked fine. I then tried it out using an Alias Directive rather than a > >> VirtualHost. The application works (after a fashion) but none of the > Dojo > >> or > >> CSS is working. I tried several different ways to configure Dojo in the > >> Initialize.php script but to no avail. Does anyone have an idea about > >> what > >> is going on here? > > > > Yep. In the Initialize plugin, you'll see that I call setLocalPath() on > > the dojo helper -- and pass it a path relative to the document root. > > Ideally, it would pull the baseUrl() from the request object and use > > that to prefix that path: > > > > ->setLocalPath($request->getBaseUrl() . '/js/dojo/dojo.js') > > > > Only that line would need to change for the dojo includes to work > > correctly. > > > > -- > > Matthew Weier O'Phinney > > Software Architect | [EMAIL PROTECTED] > > Zend Framework | http://framework.zend.com/ > > > > > Thanks Matthew, > > It's not quite working for me. Where does the $request object come from? > > Barry > > -- > View this message in context: > http://www.nabble.com/Pastebin-demo-%28Dojo-modulePath-relative-to-what-%29-tp20506386p20507933.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
