Expanding Class Sphere of Influence?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Expanding Class Sphere of Influence?

Post by JAB Creations »

It seems that classes can only be accessed to an X number of includes depth...and including the class spawns a can not redeclare class error...so the included file sees the class, can't use it, and it can't include (and thus redeclare it though I don't see any benefit of executing a class twice any way). How do I increase the sphere of influence of my class files? :?:
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Re: Expanding Class Sphere of Influence?

Post by andyhoneycutt »

You could try advertising! :twisted:

Could you expand on your question a bit maybe with a practical example?

-Andy
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Expanding Class Sphere of Influence?

Post by JAB Creations »

Thanks for the reply Andy...turns out I converted the class to a set of session variables and didn't catch all the instances where I was calling the deprecated PHP cass. :oops: The thing is I didn't bump in to any errors on my site's site option prompt for some time...until I tested it in Opera 7.5. Yeah... :evil:
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Re: Expanding Class Sphere of Influence?

Post by andyhoneycutt »

Interesting. Glad it's working out now :)
Post Reply