Call to a member function validate() on a non-object using own library |
(01-26-2015, 05:05 AM)behnampmdg3 Wrote: That's not what the manual says! I am talking about pure PHP nothing related to CI.. Here is working example of your first post class PHP Code: class Generate_token When you are in Class you can call methods from the same class using $this->methodname() When you are in class and want to call method from some class loaded with CI you can use $this->CI->classs->method name() but first inside class constructor you have to set $this->CI to get instance of CI.. Best VPS Hosting : Digital Ocean
|
Welcome Guest, Not a member yet? Register Sign In |