OK, looks like providing an absolute path to the css file solved the issue, I did not think that would be necessary since the path I provided was relative to the document root. Odd.
Is there a Zend Framework shortcut or helper function to link the CSS file so that wherever you are in the navigation scheme your link will remain valid? (I mean of course as opposed to making the link absolute which is the obvious thing). I dont mean to blaspheme here, and trust me im no fan of the framework, but ruby on rails provides a function called 'stylesheet_link_tag' that keeps the stylesheet linked up according to its location by convention. On Mon, Jun 23, 2008 at 9:43 AM, Matthew Ishii <[EMAIL PROTECTED]> wrote: > Ahem. Im sorry ;0) > > The bit in my master layout IS $this->layout()->content, however, it only > takes the index.phtml. > > I made a mistake describing my problem. The issue is my CSS link no longer > works with the loginAction. With the indexAction I get the layout code, > then my content, and its styled properly with the CSS link in the head. > However when I navigate to the login.phtml page, I get only the content, > with no styling. > > A view source reveals that my head tag contains the normal unmolested CSS > link, yet it will not style the page. I have done nothing different between > the two pages. > > > On Mon, Jun 23, 2008 at 12:16 AM, Bart McLeod <[EMAIL PROTECTED]> wrote: > >> I use <?= $this->layout()->content ?> in my layout.phtml. That works for >> all actions that render their own action.phtml in place of the >> layout()->content bit. I don't know about $this->content() that you seem to >> be using. >> >> Bart McLeod >> >> Matthew Ishii schreef: >> >> Hi, >>> >>> I have specified two actions for my IndexController. One is the default >>> indexAction and the other is called loginAction. I have sucessfully invoked >>> and configured the ZendLayout in my bootstrap.php file, and the content for >>> the master layout is the index.phtml view script that i created for the >>> default controller action IndexController::indexAction. >>> >>> The problem is ive added IndexController::loginAction and a new view >>> script called login.phtml. However when I link to the view script, I loose >>> all my headers, footers, css, everything from the layout is gone. >>> I was under the impression that the layout master script applied to all >>> the actions and corresponding views within a controller. However in my case >>> the layout master is only taking its '$this->content()' from the index.phtml >>> and not taking it from the login.phtml when I call it by URI. >>> >>> What am I missing? Ive gone through the documentation for Zend_View and >>> Zend_Layout many many times. Help! ;0) >>> >>> -Matthew R Ishii >>> >> >
