Skip to main content

iI am working on magento admin. tryTry to adding grid with add edit action. but iBut I am stuck at strange issue my form is display in left sidebar under selected tab. don'tDon't know why this happen. pleasePlease help me if you know why this is happenenter image description here

Code of XXXX/XXX/Block/Adminhtml/Dragon/Edit/Form.php

<?php

class XXXX_XXX_Block_Adminhtml_Dragon_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
{
  protected function _prepareForm()
  {
      $form = new Varien_Data_Form(array(
                                      'form_id' => 'edit_form',
                                      'action' => $this->getUrl('*/*/save', array('form_id' => $this->getRequest()->getParam('form_id'))),
                                      'method' => 'post',
                                      'enctype' => 'multipart/form-data'
                                   )
      );

      $form->setUseContainer(true);
      $this->setForm($form);
      $this->setTemplate('XXXX/form.phtml');
      return parent::_prepareForm();
  }
}

i am working on magento admin. try to adding grid with add edit action. but i am stuck at strange issue my form is display in left sidebar under selected tab. don't know why this happen. please help me if you know why this is happenenter image description here

Code of XXXX/XXX/Block/Adminhtml/Dragon/Edit/Form.php

<?php

class XXXX_XXX_Block_Adminhtml_Dragon_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
{
  protected function _prepareForm()
  {
      $form = new Varien_Data_Form(array(
                                      'form_id' => 'edit_form',
                                      'action' => $this->getUrl('*/*/save', array('form_id' => $this->getRequest()->getParam('form_id'))),
                                      'method' => 'post',
                                      'enctype' => 'multipart/form-data'
                                   )
      );

      $form->setUseContainer(true);
      $this->setForm($form);
      $this->setTemplate('XXXX/form.phtml');
      return parent::_prepareForm();
  }
}

I am working on magento admin. Try to adding grid with add edit action. But I am stuck at strange issue my form is display in left sidebar under selected tab. Don't know why this happen. Please help me if you know why this is happenenter image description here

Code of XXXX/XXX/Block/Adminhtml/Dragon/Edit/Form.php

<?php

class XXXX_XXX_Block_Adminhtml_Dragon_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
{
  protected function _prepareForm()
  {
      $form = new Varien_Data_Form(array(
                                      'form_id' => 'edit_form',
                                      'action' => $this->getUrl('*/*/save', array('form_id' => $this->getRequest()->getParam('form_id'))),
                                      'method' => 'post',
                                      'enctype' => 'multipart/form-data'
                                   )
      );

      $form->setUseContainer(true);
      $this->setForm($form);
      $this->setTemplate('XXXX/form.phtml');
      return parent::_prepareForm();
  }
}
added 663 characters in body
Source Link
Vikrant Roy
  • 123
  • 2
  • 16

i am working on magento admin. try to adding grid with add edit action. but i am stuck at strange issue my form is display in left sidebar under selected tab. don't know why this happen. please help me if you know why this is happenenter image description here

Code of XXXX/XXX/Block/Adminhtml/Dragon/Edit/Form.php

<?php

class XXXX_XXX_Block_Adminhtml_Dragon_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
{
  protected function _prepareForm()
  {
      $form = new Varien_Data_Form(array(
                                      'form_id' => 'edit_form',
                                      'action' => $this->getUrl('*/*/save', array('form_id' => $this->getRequest()->getParam('form_id'))),
                                      'method' => 'post',
                                      'enctype' => 'multipart/form-data'
                                   )
      );

      $form->setUseContainer(true);
      $this->setForm($form);
      $this->setTemplate('XXXX/form.phtml');
      return parent::_prepareForm();
  }
}

i am working on magento admin. try to adding grid with add edit action. but i am stuck at strange issue my form is display in left sidebar under selected tab. don't know why this happen. please help me if you know why this is happenenter image description here

i am working on magento admin. try to adding grid with add edit action. but i am stuck at strange issue my form is display in left sidebar under selected tab. don't know why this happen. please help me if you know why this is happenenter image description here

Code of XXXX/XXX/Block/Adminhtml/Dragon/Edit/Form.php

<?php

class XXXX_XXX_Block_Adminhtml_Dragon_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
{
  protected function _prepareForm()
  {
      $form = new Varien_Data_Form(array(
                                      'form_id' => 'edit_form',
                                      'action' => $this->getUrl('*/*/save', array('form_id' => $this->getRequest()->getParam('form_id'))),
                                      'method' => 'post',
                                      'enctype' => 'multipart/form-data'
                                   )
      );

      $form->setUseContainer(true);
      $this->setForm($form);
      $this->setTemplate('XXXX/form.phtml');
      return parent::_prepareForm();
  }
}
Source Link
Vikrant Roy
  • 123
  • 2
  • 16

Unable to add form in content section magento admin custom extension

i am working on magento admin. try to adding grid with add edit action. but i am stuck at strange issue my form is display in left sidebar under selected tab. don't know why this happen. please help me if you know why this is happenenter image description here