For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > August 2005 > Re: [SMARTY] assign & assign_by_ref









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] assign & assign_by_ref
messju mohr

2005-08-09, 5:05 pm

On Tue, Aug 16, 2005 at 03:38:27AM +0100, Pedro wrote:
> I've developed/inherited a few apps where assign_by_ref() is used
> and am also using php5 which throws the error
>
> Fatal error: Only variables can be passed by reference in
> e:\max\cca\appo\admin.menu.inc.php on line 49
>
> Is there a way to make Smarty correct this by detecting php5 ???


no. you have to fix that yourself in admin.menu.inc.php on line 49.
e.g. only pass references as 2nd param to assign_by_ref().

> Pete

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com