public function __construct() { $this->id = $this->req('id'); if (!($this->form = oo::cfg('form.' . NFS::$controller))) { echo 'no ' . NFS::$controller . ' cfg in form.php'; } empty($this->form['tpl']) && ($this->form['tpl'] = 'form'); $this->assign('form', $this->form); }
public static function get($driver = '') { $name = empty($driver) ? 'db' : 'db.' . $driver; return oo::cfg($name); }
public static function get($driver) { return oo::cfg('db.' . $driver); }