Example #1
0
 public function main()
 {
     $model = load_model('Example');
     $array = (array) $model->get_by_name();
     $result = F\Factory::create_from_array($array, 'Example', null, true, true);
     F\View::add_key('users', $result);
     F\View::add_template('home');
     //return Framework\Core::redirect('Other');
 }
Example #2
0
function load_model($model, $id = null, $specified_fields = null, $autoload = true, $protected = false)
{
    return \Framework\Factory::create($model, $id, $specified_fields, $autoload, $protected);
}