E
E
EVOSandru62015-02-09 10:16:00
Yii
EVOSandru6, 2015-02-09 10:16:00

Why might the default controller not work in Yii?

Good afternoon,
I have a fresh version of Yii , I wrote in config/main.php :

return array(
   'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'defaultController' => 'service',
   ...
);

But, being on the main page of the site at the address website/ in the code I write:
echo Yii::app()->controller->id;
That does not come out service , but site . Those. I still fall in site/index . What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EVOSandru6, 2015-02-09
@EVOSandru6

It was in the rules

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question