Welcome Guest, Not a member yet? Register   Sign In
Random Access Denied
#9

I think it's running in a linux instance. Apache version 2.4 and PHP version 5.5.

This is the controller PainelDeControle.php:

Code:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class PainelDeControle extends CI_Controller {

 public function index()
    {
   $this->load->helper('myhelperacesso');
   if (usuarioLogado()) {
     $this->load->view('templates/header.php');
     $this->load->view('templates/headerPainelDeControle.php');
     $this->load->view('templates/menuHeaderPainelDeControle.php');
     $this->load->view('painelDeControle/index.php');
     $this->load->view('templates/menuFooterPainelDeControle.php');
     $this->load->view('templates/footerPainelDeControle.php');
     $this->load->view('templates/footer.php');
   } else {
     $this->session->set_flashdata("mensagem-fracasso", "Acesso negado. Nenhum usuário logado.");
   
     $this->load->helper("url");
     redirect(base_url("index.php/usuario/entrar"));
   }
    }
}

?>

In the index() function the else statement is executed, because there's no user yet defined.
Reply


Messages In This Thread
Random Access Denied - by joaofrassetto - 03-07-2017, 06:48 AM
RE: Random Access Denied - by InsiteFX - 03-08-2017, 05:34 AM
RE: Random Access Denied - by joaofrassetto - 03-08-2017, 08:44 AM
RE: Random Access Denied - by InsiteFX - 03-08-2017, 11:19 AM
RE: Random Access Denied - by joaofrassetto - 03-08-2017, 12:03 PM
RE: Random Access Denied - by albertleao - 03-08-2017, 12:09 PM
RE: Random Access Denied - by joaofrassetto - 03-08-2017, 12:12 PM
RE: Random Access Denied - by albertleao - 03-08-2017, 02:24 PM
RE: Random Access Denied - by joaofrassetto - 03-08-2017, 04:15 PM
RE: Random Access Denied - by InsiteFX - 03-09-2017, 04:45 AM
RE: Random Access Denied - by joaofrassetto - 03-09-2017, 05:13 AM
RE: Random Access Denied - by joaofrassetto - 03-13-2017, 10:44 AM
RE: Random Access Denied - by joaofrassetto - 03-18-2017, 12:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB