Forums / General / pass parameters to PHP function

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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