Welcome Guest, Not a member yet? Register   Sign In
Routes on comments
#1

This is helpful because it is not necessary to be editing the file routes.php

https://github.com/yonineitor/routes-ci

Ex:
Code:
/**
* @route::example-route
*/
class Example1 extends CI_Controller
{
  /**
* @route::product/(:num)
* @route::product
*/
  function product( $parm ){
    //url1: /example-route/product/1
    //url2: /example-route/product
  }
}
Reply




Theme © iAndrew 2016 - Forum software by © MyBB