[eluser]warrennz[/eluser]
Double posting for the win
I'm trying to extend DMZ. This is my datamapperext.php
Code:
/**
* Data Mapper Extended Class
*
*/
//Grab base DM library
include(APPPATH.'libraries/datamapper'.EXT);
/**
* Data Mapper Class
*/
class DataMapperExt extends DataMapper {
function DataMapperExt()
{
parent::DataMapper();
}
/**
* Turns a result set into a simple dropdown list with the key as the row id, and the value being the selected fields value.
* You can also specific to have the first <option> blank with the 2nd paramer
*
* @param string $field
* @param bool $add_blank
function droplist($field,$add_blank = false)
{
foreach($this->all as $r)
{
echo $r->id; //Do something
}
} */
}
/* End of file datamapperext.php */
/* Location: ./application/models/datamapperext.php */