Yes, look in the api for Controller::render();

On Oct 20, 5:08 pm, the_woodsman <[EMAIL PROTECTED]> wrote:
> Erm, isn't there some variable like viewPath inside a controller?
> Also, can you not specify a path when you call render inside a
> controller?
>
> If I understand your problem correctly, Im sure one of those
> approaches willl work...
>
> On Oct 20, 3:48 pm, Soulcatcher <[EMAIL PROTECTED]> wrote:
>
> > Ok, so there is no way to specify ctp file to render inside the
> > function w/o hacking cakePHP?
>
> > In any way, if i have pretty large website and dont want to use
> > database to store pages - this means that my events folder in views
> > will have dozens and dozens of ctp files?
>
> > On Oct 20, 1:50 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote:
>
> > > Sounds like a site begging for a CMS (Content Management System) of some 
> > > kind.
>
> > > Wayne
>
> > > On 10/20/07, Soulcatcher <[EMAIL PROTECTED]> wrote:
>
> > > > Basically, i was asked to organize stuff inside views folder so that
> > > > people who have no idea about cakephp can do some small changes
> > > > directly to views.
>
> > > > Ideally my views folder should mirror organization's structure. For
> > > > example, they have Events section that has several events and each
> > > > event has several html document describing it.
>
> > > > So they have something like that:
> > > > Events/
> > > > Events/EventA/description.html
> > > > Events/EventB/description.html
> > > > Events/EventC/description.html
> > > > Events/EventC/SubEventC/description.html
>
> > > > So in cakePHP i have Events controller - so views folder has events
> > > > folder - but that folder can contain only .ctp files (no folders)
> > > > since they correspond to functions inside events controller.
>
> > > > Is there any way to specify ctp file inside function? Or how do people
> > > > actually tackle this problem - because in a big site it's not very
> > > > convenient to have hundreds of ctp files in some controller folder
> > > > without having any structure w/o folders.- Hide quoted text -
>
> > - Show quoted text -


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