Welcome Guest, Not a member yet? Register   Sign In
How to find out member variables and functions of CI_Model and CI_Controller.
#1

[eluser]Crusoe[/eluser]
For example, I found out by trial and error that this also works :

Code:
class ProductModel extends CI_Model {
   function get_products() {
    $query = $this->db->query('select blah, blah products');
    }
}

I just guessed that db might support a method a method called "query" and tried it, it worked.

Is there any way of finding what are the members and methods of the base classes in CI ?

I tried looking through Loader.php, but it confuses me completely. Is there some documentation somewhere that explains how Loader.php works ?


Messages In This Thread
How to find out member variables and functions of CI_Model and CI_Controller. - by El Forum - 07-05-2011, 01:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB