Jump to content

OOP Error


Smartcode

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.