Welcome Guest, Not a member yet? Register   Sign In
Undefined method that's actually defined.
#3

[eluser]Ivan A. Zenteno[/eluser]
You are closing the model before the method of the controller

Check like this:
Code:
<?
/**
* @filesource app/models/proctor.php
* @notes Handles test administration, monitoring and issuing of certificates.
*/

class Proctor extends Model{
    
    function __construct()
    {    
        parent::Model();  
    }

    function get_verification_methods($media_id)
    {
        $ret = array();
        $sql = sprintf('SELECT * FROM `media-verification` AS mv INNER JOIN verification AS v ON mv.method=v.id WHERE media_id=%s', $media_id);
        $query = $this->db->query($sql);
        $_array = $query->result_array();
    
        foreach($_array as $key => $value)
        {    
            $ret[$value['media']] = $value['name'];
        }    
        return $ret;
    }
}
?>


Messages In This Thread
Undefined method that's actually defined. - by El Forum - 04-29-2010, 02:42 PM
Undefined method that's actually defined. - by El Forum - 04-29-2010, 04:18 PM
Undefined method that's actually defined. - by El Forum - 04-29-2010, 04:34 PM
Undefined method that's actually defined. - by El Forum - 04-29-2010, 07:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB