Hi sebas ,
Thanks for quick reply. But I have some problem. Here is what I did.
I just ran the yiic CRUD command on simple 'employee' table in database which gave me the model,views and EmployeeController. As you said I placed the model class in 'models' and 5 views in 'views' folder under the extensions/employee (name of extension) folder. I also extend EmployeeController from CExtController and place it under 'employee' folder.
Now, I want to place this extension in some other view, say MyView.php which is in default 'site' views. For that I wrote one php class which is as follows and I put it in the extension directory 'employee' along with EmployeeController:
class EmpExtRender extends CWidget
public function run()
Doing all this, I did get the view 'show' to be displayed inside view 'MyView', but when u click on the links for 'Add' or 'Update' operations, it is not been able to find the corresponding view, because it searches for those views under the 'site' controller, while the views are actually present under extensions/employee.
So, if u understand whats the problem, pls let me know. Thanks in advance