CodeIgniter Forums
Incorrect directory order for loading core classes? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Incorrect directory order for loading core classes? (/showthread.php?tid=38158)

Pages: 1 2


Incorrect directory order for loading core classes? - El Forum - 04-14-2011

[eluser]HdotNET[/eluser]
Anyone care to say why the first title on this page:

http://ellislab.com/codeigniter/user-guide/general/core_classes.html

...says 'replacing core files' and

"Any file named identically to one from the list above will be used instead of the one normally used."

@wh1tel1te you're wrong.


Incorrect directory order for loading core classes? - El Forum - 04-14-2011

[eluser]wh1tel1te[/eluser]
[quote author="HdotNET" date="1302789601"]@wh1tel1te you're wrong.[/quote]
I was mistaken, no need to make such a flaming response. Have a good day sir.


Incorrect directory order for loading core classes? - El Forum - 04-14-2011

[eluser]HdotNET[/eluser]
[quote author="wh1tel1te" date="1302792304"][quote author="HdotNET" date="1302789601"]@wh1tel1te you're wrong.[/quote]
I was mistaken, no need to make such a flaming response. Have a good day sir.[/quote]

Sorry you took it that way. Didn't mean to set anyone on fire, honestly and truly. Sometimes what sounds ok in your head doesn't translate well on a forum... Face to face I'm pretty sure you wouldn't take it that way.

Someone confiscate my matches!

H


Incorrect directory order for loading core classes? - El Forum - 04-14-2011

[eluser]wh1tel1te[/eluser]
[quote author="HdotNET" date="1302792962"]

Sorry you took it that way. Didn't mean to set anyone on fire, honestly and truly. Sometimes what sounds ok in your head doesn't translate well on a forum... Face to face I'm pretty sure you wouldn't take it that way.

Someone confiscate my matches!

H[/quote]
I understand, thanks for clearing it up :-)


Incorrect directory order for loading core classes? - El Forum - 04-14-2011

[eluser]wiredesignz[/eluser]
In fact this array should be APPPATH first so as to remain compatible with the functionality provided by previous versions of CI and as described in the Use Guide.

Having the array available as a config item would make CI much more extensible also.


Incorrect directory order for loading core classes? - El Forum - 04-14-2011

[eluser]HdotNET[/eluser]
[quote author="wiredesignz" date="1302801277"]In fact this array should be APPPATH first so as to remain compatible with the functionality provided by previous versions of CI and as described in the Use Guide.

Having the array available as a config item would make CI much more extensible also.[/quote]

Couldn't agree more. Can anyone patch this up in bitbucket because tbh, I haven't a clue how.... ;-)


Incorrect directory order for loading core classes? - El Forum - 04-15-2011

[eluser]kenjis[/eluser]
This is a bug that was reported to Bitbucket issue: https://bitbucket.org/ellislab/codeigniter-reactor/issue/56/cannot-replace-core-classes-in-200


Incorrect directory order for loading core classes? - El Forum - 06-08-2011

[eluser]Michel-Ange[/eluser]
Of course it's a bug, but curiously the comments before Common.php->load_class() indicates :

// Look for the class first in the native system/libraries folder
// thenin the local application/libraries folder

... did the developpers read the doc and did they consider that the application's core classe will never be replaced with that code ?

... I'm affraid ! Wink