On Sun, Mar 20, 2011 at 7:25 PM, Zeu5 <[email protected]> wrote:
> Hi there,
>
> I want to make it as easy as I can for my users to customize their own
> themes.
>
> I want to know if there is a way I can render views onto actions in
> this manner.
>
> under app/views/themed/some_theme_name/products/view.ctp, i am
> rendering this view for products view action.
>
> is there a way i can use app/views/themed/some_theme_name/product.ctp
> as the view for the same action?

$this->viewPath = 'themed/some_theme_name';
$this->render('product');

But this looks like it would be a nightmare for maintenance. Instead
of creating separate views for each theme, why not use CSS?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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