本文整理汇总了PHP中Controlador::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Controlador::__construct方法的具体用法?PHP Controlador::__construct怎么用?PHP Controlador::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Controlador
的用法示例。
在下文中一共展示了Controlador::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($parametrosseg)
{
parent::__construct();
$this->parametrosSeguridad = $parametrosseg;
$traducciones = $this->getLocaleTard();
$diccionario = $traducciones->trad('formpass');
$this->txt_comun = $diccionario;
}
示例2: __construct
public function __construct()
{
parent::__construct();
$comun = $this->getLocaleTard();
$this->trad = $comun->trad('comun');
$acceso = $this->getLocaleTard();
$this->trad_acceso = $acceso->trad('formpass');
}
示例3: header
function __construct()
{
parent::__construct();
Session::init();
$logeado = Session::get('logeado');
if (!$logeado) {
Session::destroy();
header('location: ' . URL . 'login');
exit;
}
$this->view->titulo = ' - Index';
}
示例4: array
function __construct()
{
parent::__construct();
// Session::init();
// $logeado = Session::get('logeado');
// if(!$logeado){
// Session::destroy();
// header('location: '. URL .'/login');
// exit;
// }
$this->view->js = array('dashboard/js/default.js');
}
示例5: header
function __construct()
{
parent::__construct();
Session::init();
$logeado = Session::get('logeado');
$role = Session::get('rol');
$usuario = Session::get('usuario');
if (!$logeado) {
Session::destroy();
header('location: ' . URL . 'login');
exit;
}
$this->view->js = array('usuario/js/default.js');
}
示例6: header
function __construct()
{
parent::__construct();
Session::init();
$logeado = Session::get('logeado');
$role = Session::get('rol');
$usuario = Session::get('usuario');
if (!$logeado) {
Session::destroy();
header('location: ' . URL . 'login');
exit;
}
if (!Permisos::tienePermiso('productos', 'ver')) {
header('location: ' . URL . 'index');
}
$this->view->js = array('producto/js/default.js');
}
示例7: __construct
public function __construct()
{
parent::__construct();
$traducciones = $this->getLocaleTard();
$traducciones2 = $this->getLocaleTard();
$diccionario = $traducciones->trad('formpass');
$diccionario2 = $traducciones2->trad('comungestor');
$this->txt_pass = $diccionario;
$this->txt_comun = $diccionario2;
//Config Gestor
$this->gestorConfig = $this->cargaGestorConfig();
$this->menuTablas = $this->crearMenu();
// IMG
$this->IMGTablas = $this->configIMG();
$this->IMG = $this->cargaIMG();
// Carga los parametros $_GET
$this->cargaGets();
}
示例8: __construct
public function __construct($modelo, $accion)
{
parent::__construct($modelo, $accion);
$this->setModelo($modelo);
}
示例9: __construct
public function __construct()
{
parent::__construct();
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->_alumno = $this->loadModelo('alumno');
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->_curso = $this->loadModelo('curso');
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->_centroeducativo = $this->loadModelo('centroeducativo');
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->_docente = $this->loadModelo('docente');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->_perfil = $this->loadModelo('perfil');
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->view->js = array('factura/js/default.js');
}