Example #1
0
 public function __construct($id = false, $table = null, $ds = null)
 {
     if (defined('__APP_LOAD_APP_BEHAVIORS') && ($behaviors = @unserialize(__APP_LOAD_APP_BEHAVIORS))) {
         if (!empty($behaviors[$this->name])) {
             $this->actsAs[] = $behaviors[$this->name];
         }
     }
     $this->rootPath = ROOT . DS . SITE_DIR . DS . 'Locale' . DS . 'View' . DS . 'webroot';
     parent::__construct($id, $table, $ds);
 }