Hi,

if i add another subfolder in /app/view where i want to put
alternative view structure of the site, so for example for articles
folder i have following structure:

/app/
     /view/
            /_version2/
                   /articles/
     /articles/

and i have 2 files
/app/view/articles/index.ctp and /app/view/_version2/articles/
index.ctp

In general i want to render view from alternative folder if that view
exists. something like:

if ("/app/view/_version2/xxxxxx/yyyyy.ctp" exists) {
       render("/app/view/_version2/xxxxxx/yyyyy.ctp");
} else {
       render("/app/view/xxxxxx/yyyyy.ctp");
}

is this possible?
i wanted to add such control in beforeRender, but seems there i can't
control which view to render, only to post variables to the view. Any
thoughts?

Thanks in advance

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