public function action_store() { if (!Auth::instance()->logged_in('admin')) { $this->redirect('http://localhost/login'); } else { $this->template->scripts = array('jquery', 'bootstrap.min', 'scrollTo', 'script', 'admin'); $content = View::factory('admin/store'); $db = new Model_Stanki(); $stores = $db->select_stores(); $content->stores = $stores; $this->template->content = $content; } }