• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Routes From Controller

#1
Wink 
Can you image create slug in a controller,

Just adding:
PHP Code:
/**
* @route:thisismyslug
*/
function slug()
{
  echo 
"url thisismyslug";

or
PHP Code:
/**
* @route:thisismyslug/(:num)
*/
function slug2$param )
{
  echo 
"url thisismyslug ".param;


please check my dynamic routes repository
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.