When I create this method
actionTest($parameter){
print($parameter);
}
inside of a yii controller and attempt to access it in the browser I get an error 400.
How can I set up yii so that if I enter: /controller/test/text it would simply print the string 'text' on the screen instead of returning an invalid request error?
I already verified that the URL is correct. If I write
actionTest(){
print('text');
}
and then go to /controller/test/text then it works just fine.
How can I set up yii so that a controller action can accept parameter values in the URL?