<?php echo \Controller_Test::excerpt('bla bla bla'); ?>
Davide Bellini wrote on Tuesday 17th of May 2011:
<?php
class Model_Test extends Model {
    
    public static function get_user($id)
    {
        $query = \DB::select('username')->from('users')->where('id', '=', $id)->execute();
        return $query->as_array();
    }
    
}
    public function action_test($user_id)
    {
        $user = \Model_Test::get_user($user_id);
        ...
    }
		It looks like you're new here. If you want to get involved, click one of these buttons!