Re: How setting path for only one layout

2009-06-03 Thread andy
Petr, Read http://book.cakephp.org/view/428/render. On Jun 2, 1:40 pm, Petr Vytlačil petr.vytla...@gmail.com wrote: APP CONTROLLER  function beforeRender(){             if($this-params['controller']=='frontends'){                  // This do nothing                  $viewPaths =

Re: How setting path for only one layout

2009-06-03 Thread delocalizer
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

How setting path for only one layout

2009-06-02 Thread Petr Vytlačil
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:

Re: How setting path for only one layout

2009-06-02 Thread Petr Vytlačil
APP CONTROLLER function beforeRender(){ if($this-params['controller']=='frontends'){ // This do nothing $viewPaths = array(CAKE_CORE_INCLUDE_PATH .'\shared items\views'); // This do nothing