Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. https://site.ru/category_1/.../category_N/post.html
  2.  
  3. $router = new PhalconMvcRouter();
  4.  
  5. $router->notFound(array(
  6. 'controller' => 'index',
  7. 'action' => 'error404',
  8. ));
  9.  
  10. $router->add(
  11. '/', array(
  12. 'controller' => 'index',
  13. 'action' => 'index'
  14. )
  15. );
  16.  
  17. $router->add(
  18. '/{uri:[a-zA-Z0-9-/.]+}', array(
  19. 'controller' => 'index',
  20. 'action' => 'index',
  21. )
  22. );
  23.  
  24. $router->add(
  25. '/sitemapsyswrub7g5ox6mtz2tbplwiu6yduox6m.xml', array(
  26. 'controller' => 'index',
  27. 'action' => 'sitemap'
  28. )
  29. );
  30.  
  31. return $router;
  32.  
  33. site.ru/blabla_
  34.  
  35. BlablaController handler class cannot be loaded
  36.  
  37. #0 [internal function]: PhalconMvcDispatcher->_throwDispatchException('BlablaControlle...', 2)
  38. #1 [internal function]: PhalconDispatcher->_dispatch()
  39. #2 [internal function]: PhalconDispatcher->dispatch()
  40. #3 /home/srv/http/project/site.ru/public/index.php(23): PhalconMvcApplication->handle()
  41. #4 {main}
  42.  
  43. site.ru/blabla_.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement