View Single Post
  #1 (permalink)  
Old 04-01-2008, 05:28 PM
Howler9443 Howler9443 is offline
Junior Member
 
Join Date: Oct 2007
Posts: 26
Question baseUrl questions

Hello everyone,

I would like to get the baseUrl and set that value in the placeholder collection.

Code:
$baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
$view->placeholder('baseurl')->baseurl = $baseUrl;
It is my impression (and I assume I am incorrect here ;-) ) that the framework derives the baseUrl. Is that true, or do I need to explicitly set the baseUrl?

If I dump $baseUrl or $frontController, $baseUrl is null as well as the baseUrl within the $frontController.

What I am ultimately attempting to accomplish is to have simple links in my view. If I don't use the baseUrl, the destination URL continues to get added to (as many of you already know). So, /index/list will become someething like /index/index/index/list after the link is clicked a few times.

Any advice would be most appreciated.

Thanks in advance.
Reply With Quote