[eluser]atoleon[/eluser]
Hello
Its possible create a method wich call other method in the same controller?
For example
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Galeria extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('general');
$this->load->database();
$this->load->helper ('url');
}
public function index () {
...
}
public function other() {
...
index ();
}
}
?>
this example show this error: Fatal error: Call to undefined function index()
Thank you everybody