On Fri, Mar 18, 2011 at 10:14 AM, is that you john wayne? <
[email protected]> wrote:

> If there is a better way then please let me know,


You can use $view->getScriptPath($name) to see if the script by that name
exists. If it returns false, the view script does not exist.

This is a little cleaner because it will search through your view scripts
paths as if it were actually rendering a view script.

Note that $name will need to be in the format
"{controller}/{action}.mobile.phtml".

--
*Hector Virgen*
Sr. Web Developer
http://www.virgentech.com

Reply via email to