Welcome Guest, Not a member yet? Register   Sign In
Undefined Proper
#1

[eluser]ibnclaudius[/eluser]
I'm getting this error when removing "if ($this->input->server('REQUEST_METHOD') === 'POST')":

Quote:A PHP Error was encountered

Severity: Notice

Message: Undefined property: Web::$form

Filename: controllers/web.php

Line Number: 26

Code:
public function index()
{
  if ($this->input->server('REQUEST_METHOD') === 'POST')
  {
   $this->load->helper('form');
  
   if ($this->form->input('action') == 'LOGIN')
   {
    $data = array('email' => $this->form->input('email'),
      'password' => $this->form->input('password')
    );
    
    $this->Mb_auth_lib->login($data);
   }
  }
  
  $data['title'] = 'MeuBoletim';
  $data['folder'] = 'web';
  $data['page'] = 'home';
  
  $this->load->view('template', $data);
}




Theme © iAndrew 2016 - Forum software by © MyBB