Thursday 14 June 2012 2:18:12 am - 1 reply
When the eZURI::transformURI() method is used in the controller of the REST API, it behaves diferently than when used in a module. Consider this code:
$Url = 'content/view/full/2';
eZURI::transformURI( $Url )
When it's used in eZP module (let's say in admin interface) in the end the $Url variable is:
/mysite/administration/content/view/full/2
But when it's used in REST API conroller, in the end the $Url variable gets to be:
/content/view/full/2
The same thing occus when accessing URLs from the var folder (like stored images).
Is this a bug or intended behavior?
Modified on Thursday 14 June 2012 2:18:33 am by Mavko Žmak
You must be logged in to post messages in this topic!