Smartcode Posted April 12, 2008 Share Posted April 12, 2008 Hello webmaster-talk users please help me to fix this problem PHP Fatal error: Call to a member function on a non-object in /home/user/public_html/folder/easytemplate.php(1) : eval()'d code on line 92 theis the error line function _vars_callback($matches){ $var = $this->_var_callback($matches); return('<?= '.$var.'?>'); } please help me fast Link to comment https://forums.phpfreaks.com/topic/100821-oop-error/ Share on other sites More sharing options...
Northern Flame Posted April 12, 2008 Share Posted April 12, 2008 function _vars_callback($matches){ $var = $this->_var_callback($matches); echo $var; } Link to comment https://forums.phpfreaks.com/topic/100821-oop-error/#findComment-515601 Share on other sites More sharing options...
Smartcode Posted April 12, 2008 Author Share Posted April 12, 2008 unfortunately , nothing happen you can dowload class at this link http://daif.net/easy/down/easytemplate.zip please help me . Link to comment https://forums.phpfreaks.com/topic/100821-oop-error/#findComment-515671 Share on other sites More sharing options...
Northern Flame Posted April 12, 2008 Share Posted April 12, 2008 wait a minute, i just realized, this code: function _vars_callback($matches){ $var = $this->_var_callback($matches); return('<?= '.$var.'?>'); } doesnt really make sense, you're just going in circles, I'm not too sure, but I think you're trying to do this: function _vars_callback($matches){ echo $matches; } Link to comment https://forums.phpfreaks.com/topic/100821-oop-error/#findComment-515674 Share on other sites More sharing options...
Smartcode Posted April 13, 2008 Author Share Posted April 13, 2008 unfortunately , nothing happen Link to comment https://forums.phpfreaks.com/topic/100821-oop-error/#findComment-515880 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.