Just to add something the variable you set in controller $this- >set('var', $value) are also available in the layout...
On Jun 12, 7:43 pm, Juan Pablo Araya <[EMAIL PROTECTED]> wrote: > Sorry I don't understand your question. The way you can create this > html structure is saving it under app/views/layout (the html). In each > controller now you can change the layout with $this->layout = 'new- > layout' (new-layout.thtml in app/views/layout). > > You can create app/app_controller.php and do something like this > > class AppController extends Controller { > function beforeRender() { > $this->layout = 'new-layout'; > } > > } > > Within this, the default layout will be new-layout.thtml. > > Hope it servers to you. In fact, I don't understand your problem (more > with my poor English as you can see). > > Greetings! > > On 12 jun, 12:33, Claudia <[EMAIL PROTECTED]> wrote: > > > Hi there > > > I have just started with cakephp so most likely I just don't see the > > obvious but where is the controller for the default.thtml? > > > As far as I understand the default.thtml provides the HTML template > > which provides the basic html structure (head, meta-tags and body-tag) > > and into this structure the code of all the views are inserted. > > > Now I would like to use some custom class to create this html > > structure which means that I need a place where to include and > > instantiate this class. This instance I would then provide as a custom > > template variable to the default.thtml template. With other views I > > would use the corresponding controller to do this but I don't know how > > to do this with the default.thtml. > > > Thanks > > > Claudia --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---