Operator eZURL and specific modules

Author Message

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
maxime.thomas@wascou.org | 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

Maxime Thomas

Thursday 17 January 2008 8:14:47 am

Thanks, it worked !

Maxime Thomas
maxime.thomas@wascou.org | 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

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

eZ debug

Timing: Jan 31 2025 06:11:23
Script start
Timing: Jan 31 2025 06:11:23
Module start 'layout'
Timing: Jan 31 2025 06:11:23
Module start 'content'
Timing: Jan 31 2025 06:11:23
Module end 'content'
Timing: Jan 31 2025 06:11:23
Script end

Main resources:

Total runtime0.0171 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.1563151.2109
Module start 'layout' 0.00550.0036 739.367236.6484
Module start 'content' 0.00910.0061 776.015694.2813
Module end 'content' 0.01520.0018 870.296933.9922
Script end 0.0171  904.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002816.6305140.0002
Check MTime0.00137.7769140.0001
Mysql Total
Database connection0.00074.001310.0007
Mysqli_queries0.003118.155530.0010
Looping result0.00000.157410.0000
Template Total0.00148.210.0014
Template load0.00116.484510.0011
Template processing0.00031.689410.0003
Override
Cache load0.00084.807710.0008
General
dbfile0.00127.297880.0002
String conversion0.00000.065540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs