[eluser]joky[/eluser]
Code:
<?php
class Form extends CI_Controller {
function index()
{
$this->output->enable_profiler(true);
$this->load->helper(array('form', 'url'));
$this->load->library('form_validation');
if ($this->form_validation->run() == FALSE)
{
$this->load->view('tests/myform');
}
else
{
$this->load->view('tests/formsuccess');
}
}
}
?>
Same output....
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: Form::$form_validation
Filename: controllers/form.php
Line Number: 12
If it can help, this is the log output (all messages)
Quote:<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
DEBUG - 2011-04-26 14:11:17 --> Config Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Hooks Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Utf8 Class Initialized
DEBUG - 2011-04-26 14:11:17 --> UTF-8 Support Enabled
DEBUG - 2011-04-26 14:11:17 --> URI Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Router Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Output Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Security Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Input Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Global POST and COOKIE data sanitized
DEBUG - 2011-04-26 14:11:17 --> Language Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Loader Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Helper loaded: url_helper
DEBUG - 2011-04-26 14:11:17 --> Helper loaded: form_helper
DEBUG - 2011-04-26 14:11:17 --> Database Driver Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Controller Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Controller Class Initialized
DEBUG - 2011-04-26 14:11:17 --> Form Validation Class Initialized
ERROR - 2011-04-26 14:11:17 --> Severity: Notice --> Undefined property: Form::$form_validation /home/joky/fb/bk/application/controllers/form.php 12