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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.