How can Direct Import model in .ctp file without controller in cake php
App::import('Model','ModelName');
$this->ModelName=new ModelName();
$active=$this->ModelName->functionName($parameters);
$this->ModelName=new ModelName();
$active=$this->ModelName->functionName($parameters);
No comments:
Post a Comment