[eluser]RaZoR LeGaCy[/eluser]
I did. I released my error was that I was naming the model file "name_model" and I just needed to name the model "name". I thought DMZ could just take the table and spit out a form like CI scaffolding. I thought that it would read that the field type was text for example and create a textarea automatically. Is there a way to do this?
I now have for Controller->index()
Code:
$u = new Movies();
$movies = $u->get_movies();
$u->load_extension('htmlform');
$form_fields = array(
'tid',
'title',
'text' => 'textarea',
'eid',
'img',
'counter',
);
echo $u->render_form($form_fields, 'savehere');
Model
Code:
class Movies extends DataMapper {
var $table = 'nuke_encyclopedia_text';
function get_movies(){
return $this->get_by_eid(3)->limit(5)->get();
}
}
Anyone know of a simple CRUD app using DMZ only that would show the correct way? I am talking about a Create Row, Review Data, Update Row, Delete Row Controller.
DMZ looks extremely powerful. I did a print_r() on $u and it returned all settings in the config, database, helpers loaded, models loaded etc. Print_r() on $u crashed firefox by the way LoL