logo       

RE: [SMARTY] ??Cannot Instantiate None Existent Class???: msg#00387

php.smarty.general

Subject: RE: [SMARTY] ??Cannot Instantiate None Existent Class???

It means you tried to create a class without first referencing (properly)
the class file which your trying to instatiate.

If you want to do something like
$foo = new goo();

Then above that line of code, you need a reference (include, require, etc)
to the file that contains the class contructor. So you'd need to

include("goo.class.php");
// and then you can
$foo = new goo();
// but it will only work if it can find "goo.class.php" in either the same
folder as the current script, or in the php include path.

Chances are your include didn't work. It takes a little messing around
before your Smarty includes will work, that was my experience anyway. I
added the path to the Smarty folder (C:\Smarty) (not placed in the htdocs
as they suggest) to my php.ini include_path on my local box, but it's a bit
more complicated on shared *nix host b/c the path to your folder isn't
always documented that well.

HTH-
Geoff


> -----Original Message-----
> From: Roger [mailto:webmaster@xxxxxxxxxxx]
> Sent: Monday, January 27, 2003 7:37 PM
> To: smarty
> Subject: [SMARTY] ??Cannot Instantiate None Existent Class???
> Could someone please tell me what this error means and how
> can I fix it?
> Fatal error: Cannot instantiate non-existent class:
> smarty_guestbook in
> /usr/local/plesk/apache/vhosts/myserver.com/httpdocs/smarty/in
> dex.php on
> line 16
>
> Thanks,
> Roger
>
>
>


--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise