sql - How to call Model class inside a normal php file? -
im using codeigniter framework. want know if possible call class extends model inside normal php file. if possible, how? thnx in advance response.
yes it's possible. model php class. example have
class blogmodel extends ci_model { ... }
you in .php file
include 'path/to/blogmodel.php'; $blogmodel = new blogmodel(); $result = $blogmodel->some_function();
Comments
Post a Comment