FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » Get rid of __autoload() and global settings (Lazy practice, messes up other frameworks' code)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Get rid of __autoload() and global settings [message #166598] Fri, 27 January 2012 14:52 Go to previous message
NeXuS is currently offline  NeXuS
Messages: 121
Registered: July 2010
Location: South Korea
Karma:
Senior Member
Contributing Core Developer
Hi,
in my infinite struggle to have FUDforum and CodeIgniter get along well, I came across an instance where the presence of __autoload() in core.inc causes problems (it tries to load one of CI's classes, which obviously is not in FUD's path).

I had to resort to a ugly hack checking the classname, but it would just be much better to get rid of __autoload in the first place and include the necessary files when needed (I will have to redo the hack every time I update FUD).

Also the use of tons of globals may lead to name conflicts. It would be much better to have only one global variable which is an object of options (or array of options).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3.0.4 and php
Next Topic: Props to Frank
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 04 19:46:31 GMT 2024

Total time taken to generate the page: 0.05040 seconds