I had to something similar to this except each page had a different
banner.

So what I did was set an array with the height of the banner image,
path to the image, an alt text and the optional url path if the banner
was to be clickable.

So for example:

This would be put in my controller for your case index().

$this->set('banner', array('image_path'=>'some_file_path',
'image_height'=>'some number', 'image_alt'=>'', 'url_link'=>''));

And in my layout I would check to see if the banner variable was set
and output the code needed to display it.

On Dec 12, 6:12 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Well i have a problem.
> I am new to cake and just want to make some simple things like
> different index page from subpages
>
> example:http://www.lunacom.ba/on the fron page you can see sections
> like projects (on the right) latest new, news archie etc...
>
> on the subpagehttp://www.lunacom.ba/lunacom/Rjeshenja_za_male_tvrtke
> you can see there is no big header banner, and there are no other
> sections like on index page.
>
> how is it possible to make this
--~--~---------~--~----~------------~-------~--~----~
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