[eluser]changereturnssuccess[/eluser]
thanks for answering,
the controller is this
Code:
class Noticias extends Controller{
function Noticias(){
parent::Controller();
$this->load->scaffolding('noticias');
}
function index()
{
$this->load->view('noticias/header');
$this->load->library('pagination');
$config['base_url'] = base_url()."index.php/noticias/index/";
$config['total_rows'] = $this->db->count_all_results('noticias');
$config['per_page'] = '3';
$this->pagination->initialize($config);
$variables['query'] = $this->db->get('noticias', $config['per_page'], (int)$this->uri->segment(3));
$this->load->view('noticias/index', $variables);
$this->load->view('noticias/pie');
}
I changed my config.php to function in the hosting, and also database.php, these two inside the config folder.
some syntax problem can exist in the code or hosting?
thanks