where do you put your path definitions - define or an array? |
[eluser]n0xie[/eluser]
Hence my question ![]() Like you said so yourself, classes are usually 'converted' to CI libraries, and functions are usually 'converted' to helpers (procedural) or libraries (classes). The views are already defined for you, and since menu's are just a specific type of view they don't need to be specified. Errors are also already defined for you. Basically the only 2 paths you should be using are the webserver root and the APPATH, and CI already defines them for you. This is part of the automagic that makes CI a great framework to work with, using convention over configuration. You will notice that after you worked on a few projects with CI, that you always 'know' where certain files are since every CI install is exactly the same, which saves you a lot of time when debugging. |
Messages In This Thread |
where do you put your path definitions - define or an array? - by El Forum - 06-24-2010, 02:14 AM
where do you put your path definitions - define or an array? - by El Forum - 06-24-2010, 02:21 AM
where do you put your path definitions - define or an array? - by El Forum - 06-24-2010, 02:39 AM
where do you put your path definitions - define or an array? - by El Forum - 06-24-2010, 03:16 AM
|