Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues
Author Message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Thu Feb 28, 2008 3:41 pm Reply with quote

Thanks, jakec.. I wish I had seen that first. The fix is simple enough. But it won't hurt to rename a commonly used variable in web_links admin - just in case there are other addons that clobber $title.

The moral of the story is to make your variable names unique to the addon...

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Thu Feb 28, 2008 4:01 pm Reply with quote

kguske wrote:

The moral of the story is to make your variable names unique to the addon...


Yes, for global variables that is a good idea. It is too bad PHP doesn't have namespaces like C++.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Fri Feb 29, 2008 6:00 am Reply with quote

I hear that is coming Gremmie. I least I read about it in my PHP5 classes book that it is being worked in PHP6.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Gremmie
PostPosted: Fri Feb 29, 2008 9:13 am Reply with quote

Good deal. Classes in PHP5 help a lot to reduce name collisions, but namespaces would really be nice.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©