Welcome Guest, Not a member yet? Register   Sign In
is loading through static class is bad idea?
#12

(This post was last modified: 06-13-2017, 09:33 PM by Paradinight.)

(06-13-2017, 12:40 PM)kharota Wrote:
(06-13-2017, 11:20 AM)PaulD Wrote: Less code is not necessarily the best code (unless you are playing code golf).

Great code is beautiful because it is easily followed, clear, DRY, easily maintained, well thought out, robust and flexible.

Sir, if less code is same code why not use that one?

$this->load->view (has 17 chars)
Load::view (has 10 chars)

 how many more hours i have to do (for simple thing) if i have to go through all loading and other stuff? time is money and as freelancer its even more costly. 

I understand your point. are not we using frameworks to save our time?

https://github.com/nicolas-goudry/CI-PHP..._CI_CC.php
Works on netbeans too.

If you use a My_Controller and need only the loader you can add this line in the MY_Controller
PHP Code:
/**
* @property CI_Loader $load Loads framework components.
**/ 
https://phpdoc.org/docs/latest/reference...perty.html
Reply


Messages In This Thread
RE: is loading through static class is bad idea? - by Paradinight - 06-13-2017, 09:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB