I had tried that approach.  What happens is that the view sees the 
variable without a problem, but not the default layout.  It's almost 
like I need to pass the variable to the controller that handles the 
layout to set.

-Erich-

Grant Cox wrote:
> I think the problem to #1 is that you have
> if(isset($this->offerTitle)){
> instead of
> if( !isset($this->offerTitle) ){
> 
> 
> But the best way to do it would be to have in your controller
> $this->set('offerTitle', 'Test Promotion');
> 
> and in your layout
> print '<h1 id="siteName">'.$offerTitle.'</h1>';
> 
> 
> > 

--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to