Thanks for your reply. i saw that your solution. but in renderPartial(…array(‘data’=>)) we can not pass any data because here we can not assign values for that arguments(array(‘data’=>…)).i thing all arguments have null value, null value only pass that renderPartial() ($this->renderPartial(’…/event/viewEvents’, array(‘data’=>…)) . if null value pass that function means then how can we get exact output.
Sure. As I’ve understood, you want to embed ExamController::actionExamType() into StaffController::actionStafview().
Assuming you’re storing all your data in your database, and representing table rows as ActiveRecord models, the embedding is just a little work.
Copy your exam/examtype action’s content into staff/staffview. For example:
public function actionStaffView()
... your original code ...
$examtypes = ExamTypesModel::model()->findAll(); // or something similar according to your application structure
This way you can reach exam types from your views.