View Single Post
  #5 (permalink)  
Old 07-03-2008, 08:44 AM
amitshah amitshah is offline
Junior Member
 
Join Date: Jul 2008
Location: Ahmedabad
Posts: 9
Default

How could we pass form name and enctype dynamically? For more clarity below 2 lines I have added in model file.

PHP Code:
$this->setName('category');
$this->setAttrib('enctype''multipart/form-data'); 
Now I want to create .phtml file(view). Here I don't want to use <?php // echo $this->form; ?> Instead of I'm creating phtml file as per my format. How could I get form name and enctype in that form.

<form id="???" enctype="???" action="<?php echo $this->url(array('action'=>'edit')); ?>" method="post" >
__________________
Amit Shah
Reply With Quote