Top Menu

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

About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Close