Append Actions to Controller

Hi,

How can we append new actions to existing controller using shell command,

We created message controller using following command

[b]

controller message helloworld contact about [/b]

it created 3 actions in message controller. In created actions we added some logic ,after that we want to create new action .

when we are executing contoller message goodbye its asking to overwrite existing controller if Yes its removing existing actions.

We dont want to loose existing actions.

In Zend frmework if you use ZF command it will append the actions to Controller. How can we do this in YII framework?

Thanks

Ramu Dara

AFAIK, there’s no option to “append”. So you have to do it manually, preserving the existing code by renaming it, merging the codes, … etc.

But the command line tools for code generation has been deprecated, and you should try the new GUI utility called Gii. It has a preview function that will show you the new code but won’t overwrite the existing one. So it’s easier for you to merge the new code by copy-and-pasting.