Welcome Guest, Not a member yet? Register   Sign In
Say No to Composer!
#42

(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
Reply


Messages In This Thread
Say No to Composer! - by MatthewSchenker - 06-10-2015, 07:40 AM
RE: Say No to Composer! - by sv3tli0 - 06-10-2015, 11:09 AM
RE: Say No to Composer! - by mwhitney - 06-10-2015, 11:16 AM
RE: Say No to Composer! - by ivantcholakov - 06-10-2015, 01:24 PM
RE: Say No to Composer! - by francis94c - 12-17-2019, 01:19 PM
RE: Say No to Composer! - by MatthewSchenker - 06-10-2015, 01:37 PM
RE: Say No to Composer! - by kenjis - 06-10-2015, 03:07 PM
RE: Say No to Composer! - by ivantcholakov - 06-10-2015, 03:26 PM
RE: Say No to Composer! - by MatthewSchenker - 06-10-2015, 06:23 PM
RE: Say No to Composer! - by wolfgang1983 - 06-11-2015, 07:33 AM
RE: Say No to Composer! - by no1youknowz - 06-11-2015, 01:24 PM
RE: Say No to Composer! - by MatthewSchenker - 06-12-2015, 05:28 AM
RE: Say No to Composer! - by kilishan - 06-12-2015, 07:13 AM
RE: Say No to Composer! - by MatthewSchenker - 06-14-2015, 08:42 PM
RE: Say No to Composer! - by apsweb - 06-15-2015, 05:06 AM
RE: Say No to Composer! - by kilishan - 06-15-2015, 06:43 AM
RE: Say No to Composer! - by apsweb - 06-15-2015, 08:16 AM
RE: Say No to Composer! - by Hobbes - 06-15-2015, 07:18 AM
RE: Say No to Composer! - by angrymongol - 06-05-2019, 01:38 PM
RE: Say No to Composer! - by Paradinight - 06-06-2019, 08:34 AM
RE: Say No to Composer! - by albertleao - 06-06-2019, 08:38 AM
RE: Say No to Composer! - by angrymongol - 06-06-2019, 11:11 AM
RE: Say No to Composer! - by Paradinight - 06-07-2019, 08:29 AM
RE: Say No to Composer! - by angrymongol - 06-07-2019, 08:56 AM
RE: Say No to Composer! - by includebeer - 06-06-2019, 12:29 PM
RE: Say No to Composer! - by angrymongol - 06-06-2019, 01:12 PM
RE: Say No to Composer! - by website - 06-06-2019, 03:30 PM
RE: Say No to Composer! - by InsiteFX - 06-06-2019, 03:58 PM
RE: Say No to Composer! - by website - 06-07-2019, 02:55 AM
RE: Say No to Composer! - by John_Betong - 06-06-2019, 06:21 PM
RE: Say No to Composer! - by angrymongol - 06-07-2019, 09:13 AM
RE: Say No to Composer! - by Paradinight - 06-07-2019, 10:37 AM
RE: Say No to Composer! - by angrymongol - 06-07-2019, 11:46 AM
RE: Say No to Composer! - by Paradinight - 06-07-2019, 12:57 PM
RE: Say No to Composer! - by angrymongol - 06-07-2019, 01:51 PM
RE: Say No to Composer! - by kilishan - 06-07-2019, 09:21 PM
RE: Say No to Composer! - by ciadmin - 06-07-2019, 02:27 PM
RE: Say No to Composer! - by sv3tli0 - 06-10-2019, 09:54 PM
RE: Say No to Composer! - by ronelb - 06-11-2019, 03:59 AM
RE: Say No to Composer! - by ignitedcms - 06-12-2019, 02:39 PM
RE: Say No to Composer! - by francis94c - 12-17-2019, 01:08 PM
RE: Say No to Composer! - by francis94c - 12-17-2019, 01:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB