├── .gitignore ├── README.textile ├── README.txt ├── application ├── .htaccess ├── cache │ ├── .htaccess │ └── index.html ├── config │ ├── autoload.php │ ├── constants.php │ ├── development │ │ ├── config.php │ │ └── database.php │ ├── doctypes.php │ ├── foreign_chars.php │ ├── hooks.php │ ├── index.html │ ├── migration.php │ ├── mimes.php │ ├── production │ │ ├── config.php │ │ └── database.php │ ├── profiler.php │ ├── routes.php │ ├── smileys.php │ └── user_agents.php ├── controllers │ ├── index.html │ ├── index.php │ ├── migrate.php │ ├── questions.php │ └── users.php ├── core │ ├── MY_Controller.php │ ├── MY_Loader.php │ ├── MY_Model.php │ ├── MY_Router.php │ └── index.html ├── errors │ ├── error_404.php │ ├── error_db.php │ ├── error_general.php │ ├── error_php.php │ └── index.html ├── helpers │ ├── general_helper.php │ └── index.html ├── hooks │ └── index.html ├── index.html ├── language │ └── english │ │ └── index.html ├── libraries │ ├── MY_Form_validation.php │ ├── MY_Session.php │ ├── Zend.php │ ├── Zend │ │ ├── Cache.php │ │ ├── Cache │ │ │ ├── Backend.php │ │ │ ├── Backend │ │ │ │ ├── Apc.php │ │ │ │ ├── BlackHole.php │ │ │ │ ├── ExtendedInterface.php │ │ │ │ ├── File.php │ │ │ │ ├── Interface.php │ │ │ │ ├── Libmemcached.php │ │ │ │ ├── Memcached.php │ │ │ │ ├── Sqlite.php │ │ │ │ ├── Static.php │ │ │ │ ├── Test.php │ │ │ │ ├── TwoLevels.php │ │ │ │ ├── WinCache.php │ │ │ │ ├── Xcache.php │ │ │ │ ├── ZendPlatform.php │ │ │ │ ├── ZendServer.php │ │ │ │ └── ZendServer │ │ │ │ │ ├── Disk.php │ │ │ │ │ └── ShMem.php │ │ │ ├── Core.php │ │ │ ├── Exception.php │ │ │ ├── Frontend │ │ │ │ ├── Capture.php │ │ │ │ ├── Class.php │ │ │ │ ├── File.php │ │ │ │ ├── Function.php │ │ │ │ ├── Output.php │ │ │ │ └── Page.php │ │ │ └── Manager.php │ │ └── Exception.php │ ├── Zf_cache.php │ └── index.html ├── logs │ ├── index.html │ └── log-2013-02-27.php ├── migrations │ └── 001_create_blog.php ├── models │ ├── answer_model.php │ ├── index.html │ ├── question_model.php │ └── user_model.php ├── modules │ └── blog │ │ ├── controllers │ │ └── blog.php │ │ ├── models │ │ └── blog_m.php │ │ └── views │ │ └── listing.php ├── third_party │ ├── MX │ │ ├── Base.php │ │ ├── Ci.php │ │ ├── Config.php │ │ ├── Controller.php │ │ ├── Lang.php │ │ ├── Loader.php │ │ ├── Modules.php │ │ └── Router.php │ └── index.html └── views │ ├── homepage.php │ ├── index.html │ ├── layouts │ └── layout.php │ ├── questions │ ├── detail.php │ └── listing.php │ └── users │ └── login.php ├── composer.json ├── composer.lock ├── database └── bestpractises_2014-06-02.sql ├── public_html ├── .htaccess ├── index.php ├── license.txt └── style.css ├── sparks └── ion_auth │ └── 2.3.2 │ ├── README.md │ ├── config │ ├── autoload.php │ └── ion_auth.php │ ├── controllers │ └── auth.php │ ├── language │ ├── arabic │ │ └── ion_auth_lang.php │ ├── catalan │ │ └── ion_auth_lang.php │ ├── croatian │ │ └── ion_auth_lang.php │ ├── czech │ │ └── ion_auth_lang.php │ ├── danish │ │ └── ion_auth_lang.php │ ├── dutch │ │ └── ion_auth_lang.php │ ├── english │ │ └── ion_auth_lang.php │ ├── estonian │ │ └── ion_auth_lang.php │ ├── finnish │ │ └── ion_auth_lang.php │ ├── french │ │ └── ion_auth_lang.php │ ├── german │ │ └── ion_auth_lang.php │ ├── greek │ │ └── ion_auth_lang.php │ ├── indonesian │ │ └── ion_auth_lang.php │ ├── italian │ │ └── ion_auth_lang.php │ ├── japanese │ │ └── ion_auth_lang.php │ ├── lithuanian │ │ └── ion_auth_lang.php │ ├── norwegian │ │ └── ion_auth_lang.php │ ├── pirate │ │ └── ion_auth_lang.php │ ├── polish │ │ └── ion_auth_lang.php │ ├── portuguese │ │ └── ion_auth_lang.php │ ├── russian │ │ └── ion_auth_lang.php │ ├── slovak │ │ └── ion_auth_lang.php │ ├── spanish │ │ └── ion_auth_lang.php │ ├── swedish │ │ └── ion_auth_lang.php │ ├── turkish │ │ └── ion_auth_lang.php │ ├── ukrainian │ │ └── ion_auth_lang.php │ ├── zh_cn │ │ └── ion_auth_lang.php │ └── zh_tw │ │ └── ion_auth_lang.php │ ├── libraries │ ├── Bcrypt.php │ └── Ion_auth.php │ ├── models │ ├── ion_auth_model.php │ └── ion_auth_mongodb_model.php │ ├── spark.info │ ├── sql │ ├── ion_auth.mssql.sql │ ├── ion_auth.postgre.sql │ ├── ion_auth.sql │ └── mongo │ │ ├── groups.bson │ │ ├── system.indexes.bson │ │ └── users.bson │ ├── userguide │ └── index.html │ └── views │ └── auth │ ├── change_password.php │ ├── create_user.php │ ├── deactivate_user.php │ ├── edit_user.php │ ├── email │ ├── activate.tpl.php │ ├── forgot_password.tpl.php │ └── new_password.tpl.php │ ├── forgot_password.php │ ├── index.php │ ├── login.php │ └── reset_password.php ├── system ├── .htaccess ├── core │ ├── Benchmark.php │ ├── CodeIgniter.php │ ├── Common.php │ ├── Config.php │ ├── Controller.php │ ├── Exceptions.php │ ├── Hooks.php │ ├── Input.php │ ├── Lang.php │ ├── Loader.php │ ├── Model.php │ ├── Output.php │ ├── Router.php │ ├── Security.php │ ├── URI.php │ ├── Utf8.php │ └── index.html ├── database │ ├── DB.php │ ├── DB_active_rec.php │ ├── DB_cache.php │ ├── DB_driver.php │ ├── DB_forge.php │ ├── DB_result.php │ ├── DB_utility.php │ ├── drivers │ │ ├── cubrid │ │ │ ├── cubrid_driver.php │ │ │ ├── cubrid_forge.php │ │ │ ├── cubrid_result.php │ │ │ ├── cubrid_utility.php │ │ │ └── index.html │ │ ├── index.html │ │ ├── mssql │ │ │ ├── index.html │ │ │ ├── mssql_driver.php │ │ │ ├── mssql_forge.php │ │ │ ├── mssql_result.php │ │ │ └── mssql_utility.php │ │ ├── mysql │ │ │ ├── index.html │ │ │ ├── mysql_driver.php │ │ │ ├── mysql_forge.php │ │ │ ├── mysql_result.php │ │ │ └── mysql_utility.php │ │ ├── mysqli │ │ │ ├── index.html │ │ │ ├── mysqli_driver.php │ │ │ ├── mysqli_forge.php │ │ │ ├── mysqli_result.php │ │ │ └── mysqli_utility.php │ │ ├── oci8 │ │ │ ├── index.html │ │ │ ├── oci8_driver.php │ │ │ ├── oci8_forge.php │ │ │ ├── oci8_result.php │ │ │ └── oci8_utility.php │ │ ├── odbc │ │ │ ├── index.html │ │ │ ├── odbc_driver.php │ │ │ ├── odbc_forge.php │ │ │ ├── odbc_result.php │ │ │ └── odbc_utility.php │ │ ├── pdo │ │ │ ├── index.html │ │ │ ├── pdo_driver.php │ │ │ ├── pdo_forge.php │ │ │ ├── pdo_result.php │ │ │ └── pdo_utility.php │ │ ├── postgre │ │ │ ├── index.html │ │ │ ├── postgre_driver.php │ │ │ ├── postgre_forge.php │ │ │ ├── postgre_result.php │ │ │ └── postgre_utility.php │ │ ├── sqlite │ │ │ ├── index.html │ │ │ ├── sqlite_driver.php │ │ │ ├── sqlite_forge.php │ │ │ ├── sqlite_result.php │ │ │ └── sqlite_utility.php │ │ └── sqlsrv │ │ │ ├── index.html │ │ │ ├── sqlsrv_driver.php │ │ │ ├── sqlsrv_forge.php │ │ │ ├── sqlsrv_result.php │ │ │ └── sqlsrv_utility.php │ └── index.html ├── fonts │ ├── index.html │ └── texb.ttf ├── helpers │ ├── array_helper.php │ ├── captcha_helper.php │ ├── cookie_helper.php │ ├── date_helper.php │ ├── directory_helper.php │ ├── download_helper.php │ ├── email_helper.php │ ├── file_helper.php │ ├── form_helper.php │ ├── html_helper.php │ ├── index.html │ ├── inflector_helper.php │ ├── language_helper.php │ ├── number_helper.php │ ├── path_helper.php │ ├── security_helper.php │ ├── smiley_helper.php │ ├── string_helper.php │ ├── text_helper.php │ ├── typography_helper.php │ ├── url_helper.php │ └── xml_helper.php ├── index.html ├── language │ ├── english │ │ ├── calendar_lang.php │ │ ├── date_lang.php │ │ ├── db_lang.php │ │ ├── email_lang.php │ │ ├── form_validation_lang.php │ │ ├── ftp_lang.php │ │ ├── imglib_lang.php │ │ ├── index.html │ │ ├── migration_lang.php │ │ ├── number_lang.php │ │ ├── profiler_lang.php │ │ ├── unit_test_lang.php │ │ └── upload_lang.php │ └── index.html └── libraries │ ├── Cache │ ├── Cache.php │ └── drivers │ │ ├── Cache_apc.php │ │ ├── Cache_dummy.php │ │ ├── Cache_file.php │ │ └── Cache_memcached.php │ ├── Calendar.php │ ├── Cart.php │ ├── Driver.php │ ├── Email.php │ ├── Encrypt.php │ ├── Form_validation.php │ ├── Ftp.php │ ├── Image_lib.php │ ├── Javascript.php │ ├── Log.php │ ├── Migration.php │ ├── Pagination.php │ ├── Parser.php │ ├── Profiler.php │ ├── Session.php │ ├── Sha1.php │ ├── Table.php │ ├── Trackback.php │ ├── Typography.php │ ├── Unit_test.php │ ├── Upload.php │ ├── User_agent.php │ ├── Xmlrpc.php │ ├── Xmlrpcs.php │ ├── Zip.php │ ├── index.html │ └── javascript │ └── Jquery.php ├── tools ├── README.md ├── lib │ └── spark │ │ ├── sources │ │ ├── spark_cli.php │ │ ├── spark_exception.php │ │ ├── spark_source.php │ │ ├── spark_type.php │ │ ├── spark_types │ │ ├── git_spark.php │ │ ├── hg_spark.php │ │ └── zip_spark.php │ │ └── spark_utils.php ├── spark └── test │ ├── install_test.php │ ├── lib │ ├── bootstrap.php │ └── test-sparks │ │ └── .gitkeep │ ├── phpunit.xml │ ├── remove_test.php │ ├── search_test.php │ └── version_test.php └── vendor ├── autoload.php └── composer ├── ClassLoader.php ├── autoload_classmap.php ├── autoload_namespaces.php ├── autoload_real.php └── installed.json /.gitignore: -------------------------------------------------------------------------------- 1 | application/cache/* 2 | application/logs/* 3 | vendor -------------------------------------------------------------------------------- /README.textile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostvanveen/codeigniter-best-practises/0b6df9d5eac87c60709f31da516a1b63011123bf/README.textile -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | ASK AWAY 2 | 3 | USER STORIES 4 | View a list of questions 5 | View a single question 6 | Answer a question 7 | Ask a question when logged in 8 | login 9 | register 10 | 11 | CONTROLLERS/ACTIONS 12 | questions/add 13 | questions/detail 14 | questions/listing 15 | 16 | users/register 17 | users/login -------------------------------------------------------------------------------- /application/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /application/cache/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/constants.php: -------------------------------------------------------------------------------- 1 | '', 5 | 'xhtml1-strict' => '', 6 | 'xhtml1-trans' => '', 7 | 'xhtml1-frame' => '', 8 | 'html5' => '', 9 | 'html4-strict' => '', 10 | 'html4-trans' => '', 11 | 'html4-frame' => '' 12 | ); 13 | 14 | /* End of file doctypes.php */ 15 | /* Location: ./application/config/doctypes.php */ -------------------------------------------------------------------------------- /application/config/foreign_chars.php: -------------------------------------------------------------------------------- 1 | 'ae', 12 | '/ö|œ/' => 'oe', 13 | '/ü/' => 'ue', 14 | '/Ä/' => 'Ae', 15 | '/Ü/' => 'Ue', 16 | '/Ö/' => 'Oe', 17 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A', 18 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a', 19 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', 20 | '/ç|ć|ĉ|ċ|č/' => 'c', 21 | '/Ð|Ď|Đ/' => 'D', 22 | '/ð|ď|đ/' => 'd', 23 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E', 24 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e', 25 | '/Ĝ|Ğ|Ġ|Ģ/' => 'G', 26 | '/ĝ|ğ|ġ|ģ/' => 'g', 27 | '/Ĥ|Ħ/' => 'H',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 | /* Location: ./application/config/foreign_chars.php */ -------------------------------------------------------------------------------- /application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 |