if we use multi theme or we create standar application for our projects, there is problem like this :
profile controller for CLASSIC theme :
//profileController.php
class ProfileController extends CController{
public $defaultAction = 'profile';
public function actionProfile(){
//show profile
}
public function actionEdit(){
//edit profile
}
public function actionChangePassword(){
//change Password
}
}
profile controller for METRO theme:
//profileController.php
class ProfileController extends CController{
public $defaultAction = 'profile';
public function actionProfile(){
if($_POST['editProfile']){
//handle action editProfile
}
if($_POST['changePasword']){
//handle action changePasswordForm
}
//show profile
}
}
so, how the solutions, couse this is one file is profileController.php??