Hi all !!
Coming from the Java world I would like to implement a service layer between the controllers and the models.
eg in the controller i would like to do something like this.
in the controller
public function actionTest($articleId, $endCustomer, $reseller){
$hwService = new HwService();
$hwQoutes = $hwService->gethwPrice( $articleId, $endCustomer, $reseller );
$this->render('list',array(
'hwQoutes'=>$hwQoutes
));
}
However I have some troubles I have added a "service" folder in the protected folder.
This folder conatains the hwservice class and I have added the service folder to the import array in config
But when instancing the hwservice class from a controller I get Missing argument 1 for CController…
what Im a missing here ?
Thanks in advance