I figured out the missing images problem by using the $html->image helper...
-Erich-
Erich C. Beyrent wrote:
> I have a few questions that perhaps you can help me with.
>
> 1. I have created a default layout, contains a masthead block that I
> want to display different things, depending on the controller. So, in
> my default layout, I have:
>
> <?php
> if(isset($this->offerTitle)){
> print '<h1 id="siteName">Site Name</h1>';
> }
> else
> {
> print '<h1 id="siteName">'.$this->offerTitle.'</h1>';
> }
> ?>
>
> And in one of my controllers, I have:
>
> $this->offerTitle = 'Test Promotion';
>
> However, I always get a notice-level warning from PHP that the variable
> doesn't exist, and I can't seem to set this variable. I also tried
> $this->set('offerTitle', 'Test Promotion');
>
> So my question is, how can I set dynamic data from my controllers and
> have the correct data displayed in my default layout?
>
> 2. I seem to be getting different renders depending on where in the app
> I am. For example, on the home section, everything looks as it should,
> yet when I go into a different section, I seem to be missing an image
> block at the top of the page.
>
> The offending links are as follows:
>
> http://resortscope.com/devel/cms/index.php
> http://resortscope.com/devel/cms/offers/test
>
> Any tips would be greatly appreciated!
>
> -Erich-
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---