JMNorris
(Jemandy)
1
I tried:
[tt]yiic webapp testdrive[/tt]
I added
to the components array in the main.php config file.
Then:
[tt]yiic shell
>> module test[/tt]
I browse to:
[tt]/testdrive[/tt]
And I get the familiar testdrive Welcome, Guest! page.
Finally, I browse to
[tt]/testdrive/?r=test[/tt]
and I get a Page Not Found exception with the message Unable to resolve the request "test".
I'm sure missed something horrifyingly embarrassing, but (I am embarrassed to admit) I can't find it.
What did I do wrong?
will
(Phpwindcn)
2
Quote
I tried:
[tt]yiic webapp testdrive[/tt]
I added
to the components array in the main.php config file.
Then:
[tt]yiic shell
>> module test[/tt]
I browse to:
[tt]/testdrive[/tt]
And I get the familiar testdrive Welcome, Guest! page.
Finally, I browse to
[tt]/testdrive/?r=test[/tt]
and I get a Page Not Found exception with the message Unable to resolve the request "test".
I'm sure missed something horrifyingly embarrassing, but (I am embarrassed to admit) I can't find it.
What did I do wrong?
Have you enabled .htaccess?
qiang
(Qiang Xue)
3
'modules' should be outside of the 'components' array (because it is a property of CApplication).
JMNorris
(Jemandy)
5
Ugh. I spoke too soon. It was working until I added
to the config components. Now
[tt]/testdrive/test[/tt]
again earns me a 404.
qiang
(Qiang Xue)
6
JMNorris
(Jemandy)
7
Of course. I must be getting old. Thanks.