error message getting as Only variables should be assigned by reference

error message getting as Only variables should be assigned by reference

Monday 13 September 2010 2:42:02 pm - 2 replies

Modified on Monday 13 September 2010 2:43:12 pm by Romeo Antony

Author Message

Heath

Monday 13 September 2010 9:05:56 pm

Hello Romeo,

That tutorial you mention is very old and contains example api calls which are long ago deprecated.

What version of eZ Publish are you using? In eZ Publish 4.3 templateInit() has been deprecated, so in the future calls to to get template instance should use this replacement instead:

eZTemplate::factory()

Cheers,

Heath

See: http://share.ez.no/forums/discussions/ez-publish-4.3.0-released

http://share.ez.no/forums/extensions/modules-fetching-templates-problems-with-4.3

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Romeo Antony

Tuesday 14 September 2010 2:56:48 am

Thank you for your reply Heath. Yes you are correct.I am using ez 4.3.0 . As you mentioned ,templateInit() has been deprecated.

So I should use

eZTemplate::factory()

So I have replaced $tpl =& templateInit(); by $tpl= eZTemplate::factory()

Is this is what you mean

You must be logged in to post messages in this topic!

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