public function __construct() { parent::__construct(); $this->load->model('launch_model'); $this->load->library('pagenation'); $this->common->checkMemberLogin(); }
public function __construct() { parent::__construct(); $this->load->model('star_model'); $this->load->model('center_product_model'); $this->load->library('pagenation'); }
public function __construct() { parent::__construct(); $this->load->model('mysetting_model'); $this->common->checkMemberLogin(); $this->userinfo = $this->userinfo(); }
public function __construct() { parent::__construct(); $this->load->model('center_model'); $this->load->model('center_account_model'); $this->member = json_decode($this->common->get_session('member')); }
public function __construct() { parent::__construct(); $this->load->model('product_model'); //$this->load->helper('download'); $this->common->checkMemberLogin(); }
public function __construct() { parent::__construct(); $this->_notificacaoDao = WeLearn_DAO_DAOFactory::create('NotificacaoDAO'); $this->_usuarioAtual = $this->autenticacao->getUsuarioAutenticado(); $this->template->appendJSImport('notificacao.js'); }
public function index() { /* $data = array("error"=>"Opps you can't login ipray admin at this moment. sorry."); $this->load->view('invalidtoken',$data); return; */ parent::initView('dashboard', 'dashboard', 'dashboard', array('registered_users' => $this->Mdl_Users->get_length(), 'online_users' => $this->Mdl_Users->online_usercnt(), 'requests' => count($this->Mdl_Requests->getAll()), 'prays' => count($this->Mdl_Prays->getAll()))); parent::loadView(); }
public function __construct() { parent::__construct(); $this->load->model('center_model'); $this->load->model('center_account_model'); $this->load->model('center_point_model'); $this->load->model('mysetting_model'); $this->load->library('pagenation'); $this->common->checkMemberLogin(); }
function __construct() { parent::__construct(); $data = array(); $this->load->library('template'); $this->template->set_template('backend'); $this->template->add_doctype(); $this->template->parse_view('header', 'backend/dashboard/header', $data); $this->template->parse_view('content', 'backend/dashboard/content', $data); $this->template->parse_view('siderbar', 'backend/dashboard/siderbar', $data); $this->template->parse_view('footer', 'backend/dashboard/footer', $data); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ function __construct() { parent::__construct(); $this->load->model('Mdl_AdminUsers', '', TRUE); $this->load->helper('form'); }
public function __construct() { parent::__construct(); $this->load->model('center_model'); $this->common->checkMemberLogin(); }
/** * Construtor carrega configurações da classes base CI_Controller * (Resolve bug ao utilizar this->load) */ function __construct() { parent::__construct(); $this->template->appendJSImport('quickstart.js')->appendJSImport('dados_pessoais.js')->appendJSImport('dados_profissionais.js')->appendJSImport('imagem_usuario.js'); }
function __construct() { parent::__construct(); $this->template->appendJSImport('busca.js'); }
/** * Construtor carrega configurações da classes base CI_Controller * (Resolve bug ao utilizar this->load) */ function __construct() { parent::__construct(); $this->_areaDAO = WeLearn_DAO_DAOFactory::create('AreaDAO'); $this->template->appendJSImport('area.js'); }
function __construct() { parent::__construct(); header('Content-type:text/html; charset=utf-8'); }
public function __construct() { parent::__construct(); // $this->load->library('Resphelper'); }
function __construct() { parent::__construct(); $this->template->appendJSImport('home.js')->appendJSImport('mensagem.js'); }
public function __construct() { parent::__construct(); $this->load->model('index_model'); }
function __construct() { parent::__construct(); }
protected function _renderTemplateHome($view = '', $dados = null) { $this->_barraDireitaSetVar('menuContexto', $this->template->loadPartial('menu', array(), 'administracao')); parent::_renderTemplateHome($view, $dados); }
protected function _renderTemplateHome($view = '', $dados = null) { $usuarioDao = WeLearn_DAO_DAOFactory::create('UsuarioDAO'); $usuarioAutenticado = $this->autenticacao->getUsuarioAutenticado(); try { $amizadeUsuarioDao = WeLearn_DAO_DAOFactory::create('AmizadeUsuarioDAO'); $listaRandonicaAmigos = $amizadeUsuarioDao->recuperarAmigosAleatorios($usuarioAutenticado, 10); } catch (cassandra_NotFoundException $e) { $listaRandonicaAmigos = null; } try { $gerenciadorPrincipal = $usuarioDao->criarGerenciadorPrincipal($usuarioAutenticado); $cursoDao = WeLearn_DAO_DAOFactory::create('CursoDAO'); $listaRandonicaCursosCriados = $cursoDao->recuperarTodosPorCriadorAleatorios($gerenciadorPrincipal, 10); } catch (cassandra_NotFoundException $e) { $listaRandonicaCursosCriados = null; } try { $aluno = $usuarioDao->criarAluno($usuarioAutenticado); $cursoDao = WeLearn_DAO_DAOFactory::create('CursoDAO'); $listaRandonicaCursosInscritos = $cursoDao->recuperarTodosPorAlunoAleatorios($aluno, 10); } catch (cassandra_NotFoundException $e) { $listaRandonicaCursosInscritos = null; } $widgets = array(); if (!is_null($listaRandonicaAmigos)) { $widgets[] = $this->template->loadPartial('widget_amigos', array('legenda' => 'Meus Amigos', 'link' => 'usuario/amigos/listar/' . $usuarioAutenticado->id, 'listaRandonicaAmigos' => $listaRandonicaAmigos), 'usuario/amigos'); } if (!is_null($listaRandonicaCursosCriados)) { $widgets[] = $this->template->loadPartial('widget_cursos_criados', array('legenda' => 'Cursos criados por mim', 'link' => site_url('/curso/meus_cursos_criador'), 'listaRandonicaCursosCriados' => $listaRandonicaCursosCriados), 'usuario/cursos'); } if (!is_null($listaRandonicaCursosInscritos)) { $widgets[] = $this->template->loadPartial('widget_cursos_aluno', array('legenda' => 'Cursos em que participo', 'link' => site_url('/curso/meus_cursos_aluno'), 'listaRandonicaCursosInscritos' => $listaRandonicaCursosInscritos), 'usuario/cursos'); } $this->_barraDireitaSetVar('widgetsContexto', $widgets); parent::_renderTemplateHome($view, $dados); }
protected function _renderTemplateHome($view = '', $dados = array()) { $this->_barraDireitaSetVar('menuContexto', $this->template->loadPartial('menu', $dados, 'usuario/amigos')); parent::_renderTemplateHome($view, $dados); }
private function plusjade_hook() { # does plusjade need anything special on this page? if ('start' == $this->page_name) { $home = new Home_Controller(); return $home->_index(); } if ('utada' == $this->page_name and $this->client->can_edit($this->site_id)) { $utada = new Utada_Controller(); return $utada->_index(); } return FALSE; }
function __construct() { parent::__construct(); header('Content-type:text/html; charset=utf-8'); $this->load->helper("markdown"); }
$controller = new $class(); if (null != $request->action()) { $action = $request->action() . $method; if (method_exists($controller, $action)) { $controller->{$action}($request->params()); } else { include 'error.php'; } } else { $controller->index($request->params()); } } else { include 'error.php'; } } else { $controller = new Home_Controller(); $controller->index(); } ?> <div class="clear"></div> </div> <!-- Footer Section --> <div id="footer"> <div class="foot_inr"> <div class="foot_top"> <div class="foot_logo"> <a href="#"><img src="images/footer_logo.png" alt="" /></a> </div> <div class="botm_navi"> <ul>