If you want multiple controllers to be able to share a view, do this:
Share this post:
Last updated: December 22, 2013
If you enjoyed this article, subscribe to receive more just like it.
Trackback URL | Comments RSS Feed
Thanks, AD, this looks like it will work great when you want all the views for a controller to come from a certain folder. The other way might be more efficient if you want some views to come from the default view folder and some to come from the common folder.
$this->viewPath = ‘name of view folder’;
$this->render(‘name of file only’);
Name ( required )
Email ( required; will not be published )
Connect with us on the following social media platforms.
E-Mail Me at Bill's Clockworks
My clock shop is at 8 W. Columbia Street, Flora, Indiana, 46929, USA. My shop is typically open weekdays 9 - 4 and Saturday mornings, but not always. It is best to E-Mail Me me to set up an appointment if you are making a special trip to see me.
My business web site is at billsclockworks.com
Please help me continue my Westclox history research, and put more data into the Westclox History Database!
Enter your email address below to receive updates each time we publish new content.