I am very new to Yii, but am liking it. I would like to respond to a url something like ?r=mything/tree with a JSON result set. I have no problem doing the JSON part, but I’m not sure how to associate “tree” with an action in the controller. It seems like there can only be one action for “list”.
in your controller you can have as many different actions as you want - they only have to start with "action". So a reasonable candidate in your case might be "actionTree".
Thank you! I didn’t realize the association was automatic and that simple. I was trying to declare it using an example from one of the docs, but that was causing it to look for a .php class using a dotted path.