ok, so i've solved the problem although i'm pretty sure this isnt an ideal
solution:
i manually check to see if the view is readable, if it is i change the view
suffix to what i want it to be. this way i at least control which views are
loaded so as to reduce the number of errors.
$base = APPLICATION_PATH . "/views/scripts/";
$mobile = $base . $request->getControllerName() . "/" .
$request->getActionName() . ".mobile.phtml";
if(is_readable($mobile)) {
Zend_Controller_Action_HelperBroker::getExistingHelper('ViewRenderer')->setViewSuffix('mobile.phtml');
}
If there is a better way then please let me know, i've been looking
everywhere for a solution i had to cobble this one together myself from 2
seperate problems.
-----
... or is it me?
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Detect-Mobile-use-Different-View-tp3387303p3387843.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]