Saturday, 28 January 2012

How can Direct Import model in .ctp file without controller in cake php


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);

No comments:

Post a Comment