Estou tendo um problema muito estranho no servidor, sempre que eu tento usar
algum método de uma library, ele diz:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Welcome::$form_validation
Filename: controllers/welcome.php
Line Number: 15
*Fatal error*: Call to a member function run() on a non-object in *
/usr/local/www/vhosts/
grupoct.com.br/subdomains/www2/httpdocs/system/application/controllers/welcome.php
* on line *15*
*
*Nesse erro, eu fiz um teste muito simples, carreguei a library:
"form_validation" e tentei usar o métido: $this->form_validation->run()
Segue abaixo o código fonte:
<?php
>
> class Welcome extends Controller {
>
> function Welcome()
> {
> parent::Controller();
> }
>
> function index()
> {
> $this->load->helper(array('form', 'url'));
> $this->load->library('form_validation');
>
> if ($this->form_validation->run() == FALSE)
> {
> $this->load->view('welcome_message');
> }
> else
> {
> $this->load->view('welcome_message');
> }
> }
> }
>
> /* End of file welcome.php */
> /* Location: ./system/application/controllers/welcome.php */
>
_______________________________________________
Lista mailing list
[email protected]
http://codeigniter.com.br/mailman/listinfo/lista_codeigniter.com.br