php - Getting at variables from CMS block insertions -
magento 1.9
i trying add form several times onto cms page code similar to:
{{block type="core/template" template="page/html/jobappform.phtml"}}
but want pass variable thru php in jobappform.phtml
can differentiate between different forms.
i have tried using:
{{block type="core/template" template="page/html/jobappform.phtml?a=1&b=2"}}
in hope get @ variables $_get
, if use form doesn't appear.
is there way of doing this:
{{block type="core/template" template="page/html/jobappform.phtml" a="1" b="2"}}
and in jobappform.phtml
can @ variables a
, b
?
this markup correct:
{{block type="core/template" template="page/html/jobappform.phtml" a="1" b="2"}}
this how access parameters inside block:
$a = $this->getdata('a');
Comments
Post a Comment