Model_Register();
$user = new Model_User();
$user->email = $email;
$user->username = $name;
$user->phone = $phone;
$user->password = $password;
$user->save();
$limit = DB::select('per_page_block1')->from('settings')->limit(1)->execute()->get('per_page_block1', 10);
$this->template->categories = $data;
$this->template->block_1 = ORM::factory('news')->where('status', '=',
1)->order_by('id', 'DESC')->and_where('block1', '=',
1)->limit($limit)->find_all();
Settings::get('page_limit',10)