Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/03/2016, 09:39
sebas0316
 
Fecha de Ingreso: marzo-2016
Ubicación: Argnetina
Mensajes: 1
Antigüedad: 8 años, 1 mes
Puntos: 0
Respuesta: Error 404 en CodeIgniter-Ayudaaa

YO yengo un inconveniente y no entiendo porque.
Quiza a muchos le paso lo mismo:
Error 404 Objeto no localizado,cuando intento acceder a un enlace del menu, les paso las diferentes partes que hacen al funcionamiento y que son las mas importantes.

la vista:
<div class="menu">
<ul>
<li><a href="<?php echo site_url('inicio') ?>">Inicio</a></li>
<li><a href="<?php echo site_url('regserv') ?>">Registrar Servicio</a></li>
<li><a href="#">Consulta de Datos</a></li>
<li><a href="#">Stock</a></li>
<li><a href="#">Contacto</a></li>
</ul>
</div>

------------------------------------------------------------------------------------------------------

el controlador:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Regserv extends CI_Controller {
public function __construct(){
parent::__construct();
}

public function index()
{
$this->load->view('regserv');
}
}

------------------------------------------------------------------------------------------------------
route
$route['default_controller'] = 'inicio';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
------------------------------------------------------------------------------------------------------
config
$config['base_url'] = 'http://localhost/codeigniter/';

/*
|------------------------------------------------------------------------------------------------------
| Index File
|------------------------------------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';
------------------------------------------------------------------------------------------------------
$autoload['helper'] = array('url');
------------------------------------------------------------------------------------------------------
mi htaccess:
RewriteEngine on
RewriteCond $1 !^(index.php|css|js|images|robots.txt)
RewriteRule ^(.*)$ index.php/$1 [L]