can you please help me a little, how can i extend capplication class, i need some core thing there, that will be common in WebApplication and ConsoleApplication, and i also don’t want to rewrite CWebApplication code. for example see this code
"WebApplication extends CWebApplication" and "ConsoleApplication extends CConsoleApplication", and i want something common in both so i have to "Application extends CApplication", but how CWebApplication and CConsoleApplication extends from this "Application"
i want my code to be suppoted in php 5.3,
do you have any idea, best pratices, any solution,
If you want your code to work for both a web and console app, the best solution is to write a behavior for you app model. Then you can have your logic in there
Thanks jacmoe, hi jacmoe do know something better approach for modules, i am trying to load all my modules once, when application starts, so all enabled modules will load and according to their dependency, so they can communicate with each other, do you know any good example of code where application is divided into modules, like a base module will load front page, and other module will get a chance to inject their items in menus, etc trough event, hook or anything,
please suggest me some good examples of code if you know any, or something about idea,
i know, its really great and similar to php traits , and i am also watching code of yupe-cms, zurmo which are most powerfull apps buid on top of yii (as i see yet)