Using a class within another class
Posted 14 June 2006 - 07:11 AM
Class 1 is the Smarty() Template Engine
Class 2 is my system class for redirecting users, processing user logins...etc etc.
Thing is im trying to use the smarty class within my system for this
public function redirect_header($url,$time,$message)
// Set Smarty Variables
// Display Redirect Page...
it works just fine...until i use the display function then i get this error
Fatal error: Call to undefined method core_system_factory::fetch() in c:\Inetpub\wwwroot\classes\smarty\Smarty.class.php on line 1108.
I dont understand why it doesnt work.... fetch() is a smarty function not mine...so why is it looking in my class for it....
So my true question is how can i use a class function from another class within a class... with extending my system class from Smarty....
Posted 14 June 2006 - 07:52 AM
Posted 14 June 2006 - 07:59 AM
the Smarty object refers to it and you have called the Smarty object. check what's going on on line 1108 in the smarty class file
Smarty works just fine...just not when im trying to use it within another class...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users