I have admin form in which I have image upload option.Button "Select" will select a image ,then user click button Upload to upload image.
Finally image name and path will be save when form submit
It will be great help if someone can help me with this. thanks
1 Answer
First you should create a new controller.php for inserting data in database. give url in form action of your controller
public function indexAction() {
$block = $this->getLayout()->createBlock('core/template');
$block->setTemplate('folder/file.phtml');
echo $block->toHtml();
$this->_title($this->__('Customers'))->_title($this->__('Customers Authentication'));
$this->loadLayout();
$this->renderLayout();
}