Another solution extend basic view class.

<?php
class ExView extends View
{

        function renderPartial($name, $params = array(), $loadHelpers =
false) {
                if ((strpos($name, '\\')===false) && (strpos($name, 
'/')===false)) {
                        $name = '..' . DS . Inflector::underscore($this->name) 
. DS .
$name;
                }
                return $this->renderElement($name, $params, $loadHelpers);
        }


}
?>

And set this class as default view class

<?php
class AppController extends Controller {
        var $helpers = array('Debug','Javascript','Html','Jquery');

        function beforeRender() {
                $this->view='Ex';
                return true;
        }

}
?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to