I need to have 5 different views directories which use the same controllers.
I want all front end views to be different but i want them to use the same
controllers. I see there is a way to define the constants but i would like
to use the bootstrap to define the different View paths

/**
 * The settings below can be used to set additional paths to models, views
and controllers.
 * This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
 *
 * App::build(array(
 *     'plugins' => array('/full/path/to/plugins/',
'/next/full/path/to/plugins/'),
 *     'models' =>  array('/full/path/to/models/',
'/next/full/path/to/models/'),
 *     'views' => array('/full/path/to/views/',
'/next/full/path/to/views/'),
 *     'controllers' => array('/full/path/to/controllers/',
'/next/full/path/to/controllers/'),
 *     'datasources' => array('/full/path/to/datasources/',
'/next/full/path/to/datasources/'),
 *     'behaviors' => array('/full/path/to/behaviors/',
'/next/full/path/to/behaviors/'),
 *     'components' => array('/full/path/to/components/',
'/next/full/path/to/components/'),
 *     'helpers' => array('/full/path/to/helpers/',
'/next/full/path/to/helpers/'),
 *     'vendors' => array('/full/path/to/vendors/',
'/next/full/path/to/vendors/'),
 *     'shells' => array('/full/path/to/shells/',
'/next/full/path/to/shells/'),
 *     'locales' => array('/full/path/to/locale/',
'/next/full/path/to/locale/')
 * ));
 *
 */


considering these are 2 different view paths: 
 'views' => array('/full/path/to/views/', '/next/full/path/to/views/'),

How do i specify the full paths? Should it be like this:
'views' => array(APP.'views'.DS , APP.'mobile'.DS)

and where do i specify which path to use?



--
View this message in context: 
http://cakephp.1045679.n5.nabble.com/Changing-webroot-and-views-directories-tp5714038.html
Sent from the CakePHP mailing list archive at Nabble.com.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to