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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -