CodeIgniter Forums
Things to Configure Before Coding? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: Things to Configure Before Coding? (/showthread.php?tid=62533)

Pages: 1 2


Things to Configure Before Coding? - solidcodes - 07-25-2015

Hi guys,

Here are the steps I configure before start coding CodeIgniter.

0. Configure HMVC
1. Remove index.php
2. configure .htaccess
3. Set database connection
4. autload libraries; database, session, email
5. autload helpers; url, form, cookie

Can somebody contribute advice/steps and make these steps better/complete.

Thanks in advance.


RE: Things to Configure Before Coding? - ivantcholakov - 07-25-2015

4. autoload libraries; database, session, email

I have an objection about loading the email library from the configuration file. Load it manually within code where it is really needed.

The same is with the helpers (5.): In the configuration file load only those that you are sure that you would need very often.


RE: Things to Configure Before Coding? - Wouter60 - 07-25-2015

Step 1 (remove index.php): if you do that, your CodeIgniter site won't work at all.
You probably mean to say that you want to use URL's without index.php in it. That's what you do in step 2 (.htaccess).

Step 6: Put your assets (images, stylesheets, javascripts) in the right place where CodeIgniter can find them.
Step 7: Configure the session driver you want to use (files or database)


RE: Things to Configure Before Coding? - solidcodes - 07-25-2015

thanks for the input, anything else?


RE: Things to Configure Before Coding? - solidcodes - 07-25-2015

Okay here is the updated version.

1. Configure HMVC
2. Remove index.php (.htaccess)
3. Set database connection
4. autload libraries; database, session (load email etc... in specific controller method)
5. autload helpers; url, form, cookie
6. Create assets folder
7. Configure the session driver (file or database)
8. Integrate H5BP


RE: Things to Configure Before Coding? - ignitedcms - 07-26-2015

What is H5BP? And where do you get HMVC from?


RE: Things to Configure Before Coding? - ivantcholakov - 07-26-2015

http://avenir.ro/codeigniter-tutorials/ - Check there the ToC for more steps. Environment, Composer, writable folders, timezone, default language...


RE: Things to Configure Before Coding? - solidcodes - 07-26-2015

@iamthwee

You get HMVC from here,
https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc

You get H5BP here,
https://html5boilerplate.com/

@ivantcholakov
Thanks for that input, will review yours.


RE: Things to Configure Before Coding? - ivantcholakov - 07-26-2015

However, for setting an encryption key for the Encryption library use the official guide http://www.codeigniter.com/user_guide/libraries/encryption.html#setting-your-encryption-key


RE: Things to Configure Before Coding? - John_Betong - 07-26-2015

I prefer setting the logged error_pages to be in the APPPATH rather than system