Hi Petr, I'm not sure what you're asking here... if you just want to
change the layout for an action's view, then set the $layout variable
in the controller like: $this->layout = 'layoutname' where you have
'layoutname.ctp' in /app/views/layouts. Or are you saying that you
want the controller to render a view to a layout defined on a user's
machine? Because if you think about it that's just not remotely
possible - all the php action happens on the server before anything
gets sent to client (browser). How would the server know what is on a
client?

>
, 4:40 am, Petr Vytlačil <petr.vytla...@gmail.com> wrote:
> APP CONTROLLER
>
>  function beforeRender(){
>             if($this->params['controller']=='frontends'){
>                  // This do nothing
>                  $viewPaths = array(CAKE_CORE_INCLUDE_PATH .'\shared
> items\views');
>
>                  // This do nothing
>                  define('LAYOUTS','C:'.DS.'Program
> Files'.DS.'VertrigoServ'.DS.'www'.DS.'projekty'.DS.'klientpenzion'.DS.'app'.DS.'view'.DS);
>             }
>     }
>
> please help, how i can set directory for layout, thx.
>
> On 2 čvn, 13:50, Petr Vytlačil <petr.vytla...@gmail.com> wrote:
>
> > Hi I develop simple CMS, but it will be multisite system.
> > One core (controller, admin, frontend views, models)
> > User: (frontend layout, css, images)
>
> > Pleas is any idea how I can chagne path for on layout in any action in
> > controller?
> > Path must be in some adr for example: /root/cake/layout/frontend.ctp
>
> > THX
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to