Guest User

Untitled

a guest
Sep 14th, 2018
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment