Welcome Guest, Not a member yet? Register   Sign In
where should the form_template be copied to in DMZ extension method

Why is this not working??

class Students extends Controller{
    function __construct(){
    function index(){
        $s= new Student();

I have assigned this in datamapper config:
$config['extensions'] = array('htmlform'=>array('form_template'=>'form','row_template'=>'row','section_template'=>'section'));

Please help!!

am actually novice here. Actually in the posted code extension need not be loaded as it is loaded in the config file. No need to mention options if sum1 is using the default templates only copyin dmz_htmlform folder to views will do.

First, no need to load the extension twice. Either do it at run time in your controller, or in the datamapper.php configuration file, not in the ci config.php file. This is all laid out pretty well in: http://www.overzealous.com/dmz/pages/ext...lform.html

Try to use the example first to get the hang of it, then go from there.

Theme © iAndrew 2016 - Forum software by © MyBB