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

[eluser]rum1man001[/eluser]
Why is this not working??

Code:
<?php
class Students extends Controller{
    function __construct(){
        parent::Controller();
        }
    
    function index(){
        $s= new Student();
        $form_fields=array(
                       'id',                          
                      'sid',
                      'name'
                      );
        $url="sdb/form";
        $s->load_extension('htmlform');
        $this->load->view('f',array('student'=>$s,'form_fields'=>$form_fields,'url'=>$url));
        }
    }

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

Please help!!


Messages In This Thread
where should the form_template be copied to in DMZ extension method - by El Forum - 12-19-2009, 04:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB