Skip to main content

isIs it possible in magento to send parameter to controller form? code where i have button:

    $x=987654;
    $url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
    $block->addButton('label', array(
                     "label" => "Get Label",
           "label" => "Get Label",
       "onclick" =>"popWin('$url', 'windowname', 'width=400,height=300,scrollbars=yes')"

                                    )
    );;"

controller file:

class MyCompany_MyModule_Adminhtml_LabelController
extends Mage_Adminhtml_Controller_Action
{
    public function setlabelAction()
        {
           echo $x;//is this possible?
        }
 
}

iI have this $x parmeter, is it possible somehow to send it to controller and echo it there?

is it possible in magento to send parameter to controller form? code where i have button:

    $x=987654;
    $url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
    $block->addButton('label', array(
                                   "label" => "Get Label",
      "onclick" =>"popWin('$url', 'windowname', 'width=400,height=300,scrollbars=yes')"

                            ));

controller file:

class MyCompany_MyModule_Adminhtml_LabelController
extends Mage_Adminhtml_Controller_Action
{
    public function setlabelAction()
        {
           echo $x;//is this possible?
        }
 
}

i have this $x parmeter, is it possible somehow to send it to controller and echo it there?

Is it possible in magento to send parameter to controller form?

    $x=987654;
    $url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
    $block->addButton('label', array(
                     "label" => "Get Label",
                     "onclick" =>"popWin('$url', 'windowname', 'width=400,height=300,scrollbars=yes')
                                    )
    );"

controller file:

class MyCompany_MyModule_Adminhtml_LabelController
extends Mage_Adminhtml_Controller_Action
{
    public function setlabelAction()
        {
           echo $x;//is this possible?
        }
}

I have this $x parmeter, is it possible somehow to send it to controller and echo it there?

added 27 characters in body
Source Link
user6398
  • 145
  • 3
  • 13

is it possible in magento to send parameter to controller form? code where i have button:

    $x=987654;
    $url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
    $block->addButton('label', array(
                                   "label" => "Get Label",
      "onclick" =>"popWin('$url', 'windowname', 'width=400,height=300,scrollbars=yes')"

                            ));

controller file:

class MyCompany_MyModule_Adminhtml_LabelController
extends Mage_Adminhtml_Controller_Action
{
    public function setlabelAction()
        {
           echo $x;//is this possible?
        }

}

i have this $x parmeter, is it possible somehow to send it to controller and echo it there?

is it possible in magento to send parameter to controller form?

    $x=987654;
    $url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
    $block->addButton('label', array(
                                   "label" => "Get Label",
      "onclick" =>"popWin('$url', 'windowname', 'width=400,height=300,scrollbars=yes')"

                            ));

controller file:

class MyCompany_MyModule_Adminhtml_LabelController
extends Mage_Adminhtml_Controller_Action
{
    public function setlabelAction()
        {
           echo $x;//is this possible?
        }

}

i have this $x parmeter, is it possible somehow to send it to controller and echo it there?

is it possible in magento to send parameter to controller form? code where i have button:

    $x=987654;
    $url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
    $block->addButton('label', array(
                                   "label" => "Get Label",
      "onclick" =>"popWin('$url', 'windowname', 'width=400,height=300,scrollbars=yes')"

                            ));

controller file:

class MyCompany_MyModule_Adminhtml_LabelController
extends Mage_Adminhtml_Controller_Action
{
    public function setlabelAction()
        {
           echo $x;//is this possible?
        }

}

i have this $x parmeter, is it possible somehow to send it to controller and echo it there?

added 8 characters in body
Source Link
Marius
  • 198.5k
  • 55
  • 424
  • 833

is it possible in magento to send parameter to controller form?

    $x=987654;
    $url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
    $block->addButton('label', array(
                                   "label" => "Get Label",
      "onclick" =>"popWin('$url', 'windowname', 'width=400,height=300,scrollbars=yes')" 

                            ));

controller file: )); class MyCompany_MyModule_Adminhtml_LabelController extends Mage_Adminhtml_Controller_Action { public function setlabelAction() { echo $x;//is this possible? }

class MyCompany_MyModule_Adminhtml_LabelController
extends Mage_Adminhtml_Controller_Action
{
    public function setlabelAction()
        {
           echo $x;//is this possible?
        }

}

i have this $x parmeter, is it possible somehow to send it to controller and echo it there?

is it possible in magento to send parameter to controller form?

    $x=987654;
    $url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
    $block->addButton('label', array(
                                   "label" => "Get Label",
      "onclick" =>"popWin('$url', 'windowname', 'width=400,height=300,scrollbars=yes')"

controller file: )); class MyCompany_MyModule_Adminhtml_LabelController extends Mage_Adminhtml_Controller_Action { public function setlabelAction() { echo $x;//is this possible? }

}

i have this $x parmeter, is it possible somehow to send it to controller and echo it there?

is it possible in magento to send parameter to controller form?

    $x=987654;
    $url=Mage::helper("adminhtml")->getUrl("/label/setlabel");
    $block->addButton('label', array(
                                   "label" => "Get Label",
      "onclick" =>"popWin('$url', 'windowname', 'width=400,height=300,scrollbars=yes')" 

                            ));

controller file:

class MyCompany_MyModule_Adminhtml_LabelController
extends Mage_Adminhtml_Controller_Action
{
    public function setlabelAction()
        {
           echo $x;//is this possible?
        }

}

i have this $x parmeter, is it possible somehow to send it to controller and echo it there?

Source Link
user6398
  • 145
  • 3
  • 13
Loading