<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Preguntas extends CI_Controller{
	public function __construct(){
		parent::__construct();		
		$this->load->model('ayuda/Cosmetologo/preguntas_models');
		$this->load->library(array('session','form_validation'));
	}

	public function index()
	{
		if($this->session->userdata('Rol_IdRol')==FALSE || 
			$this->session->userdata('Rol_IdRol') == '1'|| 
			$this->session->userdata('Rol_IdRol') == '2')
		{
			redirect(base_url().'acceso/acceso');
		} else {
        $this->load->view('layout/headerCos');
		$this->load->view('layout/menuCosmetologo'); 
		$this->load->view('ayuda/Cosmetologo/preguntas');
		$this->load->view('layout/footer');
		}	
	}
}



