public function onInit() { $this->formDictionary = new K_Dictionary(); $this->formDictionary->loadFromIni(ROOT_PATH . '/configs/forms/errors.txt'); K_Validator::setDefaultDictionary($this->formDictionary); // $this->view->bigtable = true; }
public function __construct($name = null, $primary = null, &$adapter = null) { parent::__construct(); if (!empty($name)) { $this->name = $name; } if (!empty($primary)) { $this->primary = $primary; } if (empty($adapter)) { $this->db =& K_Db_Adapter::$defaultAdapter; } else { $this->setAdapter($adapter); } }