I think it works like this:

You create a new View let's call it Theme and then you put it into app/views/theme.php. Your ThemeView class looks like this:

class ThemeView extends View
{
    // Overwritten functions go here
}

Then you modify your AppController to look like this:

class AppController extends Controller
{
      var $view = 'Theme';
}

and from that point on, your ThemeView class should be used. Haven't tested this but I think that's the general way to go.

Best Regards,
Felix Geisendörfer aka the_undefined



Gonçalo Marrafa schrieb:
I looked at the comment added to ticket #1031
(https://trac.cakephp.org/ticket/1031) by phpnut. He says the correct way
of using themes is to override the core View class. How can i do this? I
haven't seen this documented anywhere.

Thanks in advance.

  

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to