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 <[email protected]> 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 [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