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

Hi,

You can read routes from the comments, no longer able to generate an array of these?

You can make routes from the comments and generate them travez a simple script. Thus I do not need to go to routes.php files because my script is automatically generated.

example:
PHP Code:
/**
 * @route::example4
 */
class Example4 extends CI_Controller
{
  
/**
  * @route::{post}data_post
  */
  
function data_post(){
    
//url: example4/data_post/  method = post
  
}

 
/**
  * @route::{get}my_data_get
  */
  
function my_data_get(){
    
//url: /example4/my_data_get/ method = get
  
}


only run
Code:
php routes

This works perfectly for CI3 https://github.com/yonineitor/routes-ci
Reply


Messages In This Thread
Routes in comments - by jonathanq - 09-22-2016, 04:25 PM
RE: Routes in comments - by kilishan - 09-22-2016, 09:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB