[eluser]RaZoR LeGaCy[/eluser]
I need to make a simple CRUD with Datamapper but I am lost. Does anyone have a simple CRUD app that we can download or view online.
Read the user guide and trying to just echo out data from table.
Code:
class Movie extends DataMapper {
var $table = 'encyclopedia_text';
function get_movies(){
$u = new Movie();
return $u->get();
}
Code:
class Movies extends Controller {
function movies() {
parent::Controller();
$this->load->library('datamapper');
}
function index() {
$d = new Movie();
echo $d->get();
}