11-30-2010, 02:11 AM
[eluser]diasansley[/eluser]
hello there is a small confusion here
IF i have a function in a model how is it accessed
say i have
where and how would the image be called.
Thanks
hello there is a small confusion here
IF i have a function in a model how is it accessed
say i have
Code:
class m_coupons extends WC_Model
{
function __construct()
{
parent::__construct();
$this->table = 'coupons';
}
function getAllocatedCoupons($entry_id)
{
$this->db->where('entry_id', $entry_id);
$result = $this->db->get($this->table);
return $result->result_array();
}
where and how would the image be called.
Thanks