Update SmartyView.php

Based on the work on https://github.com/Lakhman/CakePHP-2-Smarty-3-Helper-Plugin