Forums / Developer / Operator eZURL and specific modules
Maxime Thomas
Wednesday 16 January 2008 8:18:49 am
Hi,
I've designed a module and I would like to generate a link like ezurl do but I've got some troubles with the function actually used by the ezurl operator. So I need some light :I've found the function which treats the url (lib/ezutils/classes/ezuri.php : transformURI) but it is not working. I get a "1" instead of my link and the following message :
Only variables should be passed by reference
But I've just cut'n'pasted the code from the operator (kernel/common/ezurloperator).
So, where is the issue ?
Maxime Thomas [email protected] | www.wascou.org | http://twitter.com/wascou Company Blog : http://www.wascou.org/eng/Company/Blog Technical Blog : http://share.ez.no/blogs/maxime-thomas
André R.
Wednesday 16 January 2008 11:39:39 am
$recipe_url = $node->attribute('url_alias'); eZURI::transformURI( $recipe_url ); $recipe_text = 'http://mobil.dinmat.no' . $recipe_url;
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Thursday 17 January 2008 8:14:47 am
Thanks, it worked !