> Thanks. It wasn't quite the way it works, but I found this workaround:
>
> $this->render("controller/list");
>
> doesn't work,
>
> $this->render("../controller/list");
>
> works, but is quite ugly. So I added a function to app_controller.php:
>
> function renderView($viewname) {
> $vex = explode("/",$viewname);
> if(count($vex) > 1) {
> $this->render("../".$viewname);
> } else {
> $this->render($viewname);
> }
> }
your workaround looks like it breaks some core functionality,
specifically being able to nest sub-view folders within views, eg:
$this->render('news/ajax/search');
that would look for /views/news/ajax/search.thtml
I would personally prefer to leave cake's functionality in tact, and
instead use render('../controller/view') or better still create an
element.
jon
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---