0

Is possible use defined routes and autorouting together? Defined routes must have higher priority than autoroutes.

I tried to use, but after I set autoroutes on, defined routes dont work at all. index.php leaved unchanged:

<?php
include './protected/config/common.conf.php';
include './protected/config/routes.conf.php';
include './protected/config/db.conf.php';

Doo::app()->route = $route;
?>

But work only autoroutes.

PeeHaa
  • 71,436
  • 58
  • 190
  • 262
neworld
  • 7,757
  • 3
  • 39
  • 61

1 Answers1

0

In common.conf.php $config['AUTOROUTE'] set true.

But don't forget, that autoroute goes first, so if you have controller hello and in autoroute define /hello/:var - it will call HelloController().

Ernestas Stankevičius
  • 2,420
  • 2
  • 24
  • 30