Forums / General / pass parameters to PHP function

pass parameters to PHP function

Author Message

Amer Azzaz

Tuesday 13 December 2005 2:21:38 am

Hi , i created an extension and a modue displaydata and i have a problem in passing a prameter to a PHP function.
{def $val='xyz'}
{let names=fetch('displaydata','area',$val)}
....
In the function i got val is only 'x' ???!!!!!!! just one character is passed . Any idea ?

Bruce Morrison

Tuesday 13 December 2005 2:37:58 am

Hi Amer

The variables have to be in a hash. Try

{def $val='xyz'}
{let names=fetch('displaydata',hash('area',$val))}

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish