Welcome Guest, Not a member yet? Register   Sign In
Loading objects in model, how do I do this?
#3

[eluser]InsiteFX[/eluser]
Unless they have changed it you can not do it the normal way, the old way was like this
Code:
class Model_name extends CI_Model {

    // Class Variables.
    // --------------------------------------------------------------------
    private $params = array();

    // --------------------------------------------------------------------

    /**
     * __construct()
     *
     * PHP 5+    Constructor.
     *
     * @access    public
     * @return    void
     */
    public function __construct()
    {
        parent::__construct();
    }

    // --------------------------------------------------------------------

    /**
     * Initialize()
     *
     * Description:
     *
     * @access    public
     * @return    void
     */
    public function initialize($param1 = NULL)
    {
        // etc.
        $this->params = $param1;
    }

}
You would then need to call the intialize method to intilailize everything.

InsiteFX


Messages In This Thread
Loading objects in model, how do I do this? - by El Forum - 05-14-2011, 10:53 PM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 12:07 AM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 02:34 AM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 03:54 AM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 06:59 AM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 07:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB