Calling URL other than Controller Codeigniter

1

I would like to know if you have any simple way to make the URL different from the name of the driver in Codeigniter.

Knowing that the codeigniter works as follows: www.mysite.com/CONTROLLER/FUNCTION

For example: When calling the url www.meusite.com/Producto/Listar I do not want my controller to be named "Product" but rather as "ProductController". But you do not want the URL to be www.mysite.com/ProductController/List

    
asked by anonymous 01.03.2016 / 18:23

1 answer

0

Make a route in config / routes.php

$route['produto/listar'] = "ProdutoController/Listar";
    
04.03.2016 / 14:55