Controller::render($action = null, $layout = null, $file = null)

Yes, you can supply path, either in layout or in file variables. I'm
not sure what's the difference between them, but in either case it is
a _layout_ that is specified - not a view - this means that i cant
atually render view inside a layout. And also all the files have to be
in /views/layouts because of that.

So i'm still not sure how to specify a view file to render inside
current layout. For example, inside about() function in home
controller i want to render about.ctp file which is in
/views/about/about1/anotherfolde/oneMoreFolder/about.ctp

How can i do that? :)


On Oct 21, 1:48 am, dardosordi <[EMAIL PROTECTED]> wrote:
> 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