daily pastebin goal
12%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cake php default routing not work
  2. Router::connect('/:lang/:plugins/:controller/:action/*', array('lang' => 'eng', 'controller' => 'index', 'action' => 'index', 'plugin' => null), array('lang' => '[a-z]{3}'));
  3.    
  4. /           Error: Controller could not be found.
  5. /eng        Error: EngController could not be found.
  6. /eng/pages  Error: EngController could not be found.
  7.    
  8. <?php
  9. App::uses('AppController', 'Controller');
  10. /**
  11.  * Eng Controller
  12.  *
  13.  */
  14. class EngController extends AppController {
  15.  
  16. /**
  17.  * Scaffold
  18.  *
  19.  * @var mixed
  20.  */
  21.     public $scaffold;
  22.  
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top