Say No to Composer! |
(06-10-2015, 01:24 PM)ivantcholakov Wrote: PS: For achieving autoloading, if somebody finds a way to trick $this->load->lang('language_file'); he/she will be the master of the Universe. :-) This is very possible with Class Overloading (https://www.php.net/manual/en/language.o...oading.php)... I've been thinking of making something like this possible with Splint (https://splint.cynobit.com) You can do this by extending the LoaderĀ class Extend one of you core classes (The Loader) by creating a MY_Loader.php file in your application/core folder Then define a __get() function in the class and try to resolve aliases that don't exits.... In your case of a language file, you can override the lang() method of the Loader class and go from there |
Welcome Guest, Not a member yet? Register Sign In |