Welcome Guest, Not a member yet? Register   Sign In
Things to Configure Before Coding?
#1

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.
No SEO spam
Reply
#2

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.
Reply
#3

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)
Reply
#4

thanks for the input, anything else?
No SEO spam
Reply
#5

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
No SEO spam
Reply
#6

What is H5BP? And where do you get HMVC from?
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
Reply
#7

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

@iamthwee

You get HMVC from here,
https://bitbucket.org/wiredesignz/codeig...sions-hmvc

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

@ivantcholakov
Thanks for that input, will review yours.
No SEO spam
Reply
#9

However, for setting an encryption key for the Encryption library use the official guide http://www.codeigniter.com/user_guide/li...yption-key
Reply
#10

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




Theme © iAndrew 2016 - Forum software by © MyBB