├── .gitignore ├── .htaccess ├── README.md ├── application ├── .htaccess ├── cache │ ├── .htaccess │ └── index.html ├── config │ ├── autoload.php │ ├── config.php │ ├── constants.php │ ├── database.php │ ├── doctypes.php │ ├── foreign_chars.php │ ├── hooks.php │ ├── index.html │ ├── migration.php │ ├── mimes.php │ ├── profiler.php │ ├── routes.php │ ├── smileys.php │ └── user_agents.php ├── controllers │ └── index.html ├── core │ ├── MY_Controller.php │ ├── MY_Loader.php │ ├── MY_Router.php │ └── index.html ├── errors │ ├── error_404.php │ ├── error_db.php │ ├── error_general.php │ ├── error_php.php │ └── index.html ├── helpers │ └── index.html ├── hooks │ └── index.html ├── index.html ├── language │ └── english │ │ └── index.html ├── libraries │ ├── index.html │ └── rb │ │ ├── drivers │ │ ├── BeanFormatter.php │ │ ├── Field.php │ │ ├── Model.php │ │ ├── ModelFormatter.php │ │ └── index.html │ │ ├── index.html │ │ └── rb.php ├── logs │ └── index.html ├── models │ └── index.html ├── modules │ ├── index.html │ ├── test │ │ └── controllers │ │ │ └── test.php │ └── welcome │ │ ├── controllers │ │ └── welcome.php │ │ └── views │ │ └── welcome_message.php ├── third_party │ ├── MX │ │ ├── Base.php │ │ ├── Ci.php │ │ ├── Config.php │ │ ├── Controller.php │ │ ├── Lang.php │ │ ├── Loader.php │ │ ├── Modules.php │ │ └── Router.php │ ├── RedBean │ │ ├── license.txt │ │ └── rb.php │ └── index.html └── views │ └── index.html ├── index.php ├── license.txt ├── 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 └── user_guide ├── changelog.html ├── database ├── active_record.html ├── caching.html ├── call_function.html ├── configuration.html ├── connecting.html ├── examples.html ├── fields.html ├── forge.html ├── helpers.html ├── index.html ├── queries.html ├── results.html ├── table_data.html ├── transactions.html └── utilities.html ├── doc_style ├── index.html └── template.html ├── general ├── alternative_php.html ├── ancillary_classes.html ├── autoloader.html ├── caching.html ├── cli.html ├── common_functions.html ├── controllers.html ├── core_classes.html ├── creating_drivers.html ├── creating_libraries.html ├── credits.html ├── drivers.html ├── environments.html ├── errors.html ├── helpers.html ├── hooks.html ├── libraries.html ├── managing_apps.html ├── models.html ├── profiling.html ├── quick_reference.html ├── requirements.html ├── reserved_names.html ├── routing.html ├── security.html ├── styleguide.html ├── urls.html └── views.html ├── helpers ├── array_helper.html ├── captcha_helper.html ├── cookie_helper.html ├── date_helper.html ├── directory_helper.html ├── download_helper.html ├── email_helper.html ├── file_helper.html ├── form_helper.html ├── html_helper.html ├── inflector_helper.html ├── language_helper.html ├── number_helper.html ├── path_helper.html ├── security_helper.html ├── smiley_helper.html ├── string_helper.html ├── text_helper.html ├── typography_helper.html ├── url_helper.html └── xml_helper.html ├── images ├── appflowchart.gif ├── arrow.gif ├── ci_logo.jpg ├── ci_logo_flame.jpg ├── ci_quick_ref.png ├── codeigniter_1.7.1_helper_reference.pdf ├── codeigniter_1.7.1_helper_reference.png ├── codeigniter_1.7.1_library_reference.pdf ├── codeigniter_1.7.1_library_reference.png ├── file.gif ├── folder.gif ├── nav_bg_darker.jpg ├── nav_separator_darker.jpg ├── nav_toggle_darker.jpg ├── reactor-bullet.png ├── smile.gif └── transparent.gif ├── index.html ├── installation ├── downloads.html ├── index.html ├── troubleshooting.html ├── upgrade_120.html ├── upgrade_130.html ├── upgrade_131.html ├── upgrade_132.html ├── upgrade_133.html ├── upgrade_140.html ├── upgrade_141.html ├── upgrade_150.html ├── upgrade_152.html ├── upgrade_153.html ├── upgrade_154.html ├── upgrade_160.html ├── upgrade_161.html ├── upgrade_162.html ├── upgrade_163.html ├── upgrade_170.html ├── upgrade_171.html ├── upgrade_172.html ├── upgrade_200.html ├── upgrade_201.html ├── upgrade_202.html ├── upgrade_203.html ├── upgrade_210.html ├── upgrade_211.html ├── upgrade_212.html ├── upgrade_213.html ├── upgrade_b11.html └── upgrading.html ├── libraries ├── benchmark.html ├── caching.html ├── calendar.html ├── cart.html ├── config.html ├── email.html ├── encryption.html ├── file_uploading.html ├── form_validation.html ├── ftp.html ├── image_lib.html ├── input.html ├── javascript.html ├── language.html ├── loader.html ├── migration.html ├── output.html ├── pagination.html ├── parser.html ├── security.html ├── sessions.html ├── table.html ├── trackback.html ├── typography.html ├── unit_testing.html ├── uri.html ├── user_agent.html ├── xmlrpc.html └── zip.html ├── license.html ├── nav ├── hacks.txt ├── moo.fx.js ├── nav.js ├── prototype.lite.js └── user_guide_menu.js ├── overview ├── appflow.html ├── at_a_glance.html ├── cheatsheets.html ├── features.html ├── getting_started.html ├── goals.html ├── index.html └── mvc.html ├── toc.html ├── tutorial ├── conclusion.html ├── create_news_items.html ├── hard_coded_pages.html ├── index.html ├── news_section.html └── static_pages.html └── userguide.css /.gitignore: -------------------------------------------------------------------------------- 1 | application/cache 2 | application/logs 3 | logs 4 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | AddDefaultCharset UTF-8 2 | 3 | RewriteEngine on 4 | 5 | RewriteBase / 6 | 7 | RewriteCond $1 !^(index\.php) 8 | RewriteCond %{REQUEST_FILENAME} !-f 9 | RewriteCond %{REQUEST_FILENAME} !-d 10 | RewriteRule ^(.*)$ /index.php/$1 [L,QSA] -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CodeIgniter 2.1 + HMVC + RedBean 3 2 | 3 | Setup ready to use CodeIgniter framework with: 4 | 5 | - [CodeIgniter 2.1.3](http://codeigniter.com) 6 | - [Modular Extensions - HMVC](http://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/overview) 7 | - [RedBean 3.3.7](http//redbeanphp.com) 8 | 9 | ## How to use? 10 | 11 | ### Configuration 12 | 13 | Set up *application/config/config.php* and *application/config/database.php* for your needs. 14 | 15 | Load RedBean library adding it on autoload.php, example: 16 | 17 | $autoload['libraries'] = array('rb'); 18 | 19 | Or load RedBean library in any controller, example: 20 | 21 | $this->load->library('rb'); 22 | 23 | ### Using RedBean 24 | 25 | You can use RedBean API in your controller: 26 | 27 | R::debug(TRUE); 28 | 29 | 30 | Examples: 31 | 32 | // New bean 33 | $post = R::dispense('post'); 34 | 35 | // Load bean by id 36 | $post = R::load('post', 1); 37 | 38 | // Find all beans 39 | $posts = R::find('post'); 40 | 41 | // Find beans 42 | $posts = R::find('post', 'published = 1'); 43 | 44 | // Save bean 45 | R::store($post); 46 | 47 | ### Using HMVC 48 | 49 | With HMVC you can build your application modulair. 50 | 51 | You can find the standard welcome page in: 52 | 53 | /application/modules/welcome/controllers/welcome.php 54 | 55 | ## More information 56 | 57 | - [CodeIgniter user guide](http://codeigniter.com/user_guide) 58 | - [HMVC detail page](https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/overview) 59 | - [RedBean manual](http://www.redbeanphp.com/) 60 | - [RedBean forum](http://groups.google.com/group/redbeanorm) 61 | -------------------------------------------------------------------------------- /application/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /application/cache/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/autoload.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', 28 | '/ĥ|ħ/' => 'h', 29 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I', 30 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i', 31 | '/Ĵ/' => 'J', 32 | '/ĵ/' => 'j', 33 | '/Ķ/' => 'K', 34 | '/ķ/' => 'k', 35 | '/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L', 36 | '/ĺ|ļ|ľ|ŀ|ł/' => 'l', 37 | '/Ñ|Ń|Ņ|Ň/' => 'N', 38 | '/ñ|ń|ņ|ň|ʼn/' => 'n', 39 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O', 40 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o', 41 | '/Ŕ|Ŗ|Ř/' => 'R', 42 | '/ŕ|ŗ|ř/' => 'r', 43 | '/Ś|Ŝ|Ş|Š/' => 'S', 44 | '/ś|ŝ|ş|š|ſ/' => 's', 45 | '/Ţ|Ť|Ŧ/' => 'T', 46 | '/ţ|ť|ŧ/' => 't', 47 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U', 48 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u', 49 | '/Ý|Ÿ|Ŷ/' => 'Y', 50 | '/ý|ÿ|ŷ/' => 'y', 51 | '/Ŵ/' => 'W', 52 | '/ŵ/' => 'w', 53 | '/Ź|Ż|Ž/' => 'Z', 54 | '/ź|ż|ž/' => 'z', 55 | '/Æ|Ǽ/' => 'AE', 56 | '/ß/'=> 'ss', 57 | '/IJ/' => 'IJ', 58 | '/ij/' => 'ij', 59 | '/Œ/' => 'OE', 60 | '/ƒ/' => 'f' 61 | ); 62 | 63 | /* End of file foreign_chars.php */ 64 | /* Location: ./application/config/foreign_chars.php */ -------------------------------------------------------------------------------- /application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/migration.php: -------------------------------------------------------------------------------- 1 | migration->latest() this is the version that schema will 21 | | be upgraded / downgraded to. 22 | | 23 | */ 24 | $config['migration_version'] = 0; 25 | 26 | 27 | /* 28 | |-------------------------------------------------------------------------- 29 | | Migrations Path 30 | |-------------------------------------------------------------------------- 31 | | 32 | | Path to your migrations folder. 33 | | Typically, it will be within your application path. 34 | | Also, writing permission is required within the migrations path. 35 | | 36 | */ 37 | $config['migration_path'] = APPPATH . 'migrations/'; 38 | 39 | 40 | /* End of file migration.php */ 41 | /* Location: ./application/config/migration.php */ -------------------------------------------------------------------------------- /application/config/profiler.php: -------------------------------------------------------------------------------- 1 | array('grin.gif', '19', '19', 'grin'), 20 | ':lol:' => array('lol.gif', '19', '19', 'LOL'), 21 | ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), 22 | ':)' => array('smile.gif', '19', '19', 'smile'), 23 | ';-)' => array('wink.gif', '19', '19', 'wink'), 24 | ';)' => array('wink.gif', '19', '19', 'wink'), 25 | ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), 26 | ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), 27 | ':-S' => array('confused.gif', '19', '19', 'confused'), 28 | ':wow:' => array('surprise.gif', '19', '19', 'surprised'), 29 | ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), 30 | ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), 31 | '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), 32 | ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), 33 | ':P' => array('raspberry.gif', '19', '19', 'raspberry'), 34 | ':blank:' => array('blank.gif', '19', '19', 'blank stare'), 35 | ':long:' => array('longface.gif', '19', '19', 'long face'), 36 | ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), 37 | ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), 38 | ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), 39 | '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), 40 | ':down:' => array('downer.gif', '19', '19', 'downer'), 41 | ':red:' => array('embarrassed.gif', '19', '19', 'red face'), 42 | ':sick:' => array('sick.gif', '19', '19', 'sick'), 43 | ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), 44 | ':-/' => array('hmm.gif', '19', '19', 'hmmm'), 45 | '>:(' => array('mad.gif', '19', '19', 'mad'), 46 | ':mad:' => array('mad.gif', '19', '19', 'mad'), 47 | '>:-(' => array('angry.gif', '19', '19', 'angry'), 48 | ':angry:' => array('angry.gif', '19', '19', 'angry'), 49 | ':zip:' => array('zip.gif', '19', '19', 'zipper'), 50 | ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), 51 | ':ahhh:' => array('shock.gif', '19', '19', 'shock'), 52 | ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), 53 | ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), 54 | ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), 55 | ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), 56 | ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), 57 | ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), 58 | ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), 59 | ':snake:' => array('snake.gif', '19', '19', 'snake'), 60 | ':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'), 61 | ':question:' => array('question.gif', '19', '19', 'question') // no comma after last item 62 | 63 | ); 64 | 65 | /* End of file smileys.php */ 66 | /* Location: ./application/config/smileys.php */ -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/core/MY_Controller.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/errors/error_404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 404 Page Not Found 5 | 55 | 56 | 57 |
58 |

59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /application/errors/error_db.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Database Error 5 | 55 | 56 | 57 |
58 |

59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /application/errors/error_general.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 55 | 56 | 57 |
58 |

59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /application/errors/error_php.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |

A PHP Error was encountered

4 | 5 |

Severity:

6 |

Message:

7 |

Filename:

8 |

Line Number:

9 | 10 |
-------------------------------------------------------------------------------- /application/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/rb/drivers/BeanFormatter.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | class RB_BeanFormatter extends RedBean_DefaultBeanFormatter { 10 | 11 | private $prefix; 12 | 13 | public function __construct($prefix = NULL) 14 | { 15 | $this->prefix = $prefix; 16 | } 17 | 18 | public function formatBeanTable($type) 19 | { 20 | $ci =& get_instance(); 21 | 22 | return $ci->rb->table($type); 23 | } 24 | 25 | public function formatBeanID($type) 26 | { 27 | return 'id'; 28 | } 29 | 30 | } 31 | 32 | /* End of file BeanFormatter.php */ 33 | /* Location: ./application/libraries/RB/drivers/BeanFormatter.php */ -------------------------------------------------------------------------------- /application/libraries/rb/drivers/Field.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | class RB_Field { 10 | 11 | public $name; 12 | public $type; 13 | public $length; 14 | public $unique; 15 | public $nullable; 16 | public $default; 17 | public $values; 18 | public $validation; 19 | public $link; 20 | 21 | public function __construct($name, $type = 'string', $config = array()) 22 | { 23 | $default = array( 24 | 'base' => array( 25 | 'length' => NULL, 26 | 'unique' => FALSE, 27 | 'nullable' => TRUE, 28 | 'default' => NULL, 29 | 'values' => NULL, 30 | 'validation' => NULL, 31 | 'model' => NULL, 32 | 'link' => NULL 33 | ), 34 | 'string' => array( 35 | 'length' => 255 36 | ), 37 | 'integer' => array( 38 | 'length' => 4, 39 | 'validation' => array('integer') 40 | ), 41 | 'boolean' => array(), 42 | 'enum' => array(), 43 | 'date' => array( 44 | 'length' => 11 45 | ), 46 | 'link' => array() 47 | ); 48 | 49 | if (is_string($config)) 50 | $config = array('validation' => $config); 51 | 52 | elseif (is_integer($config)) 53 | $config = array('length' => $config); 54 | 55 | $config = array_merge($default['base'], $default[$type], $config); 56 | 57 | $this->name = $name; 58 | $this->type = $type; 59 | $this->length = $config['length']; 60 | $this->unique = $config['unique']; 61 | $this->nullable = $config['nullable']; 62 | $this->default = $config['default']; 63 | $this->values = $config['values']; 64 | $this->validation = $config['validation']; 65 | $this->link = $config['link']; 66 | } 67 | 68 | } 69 | 70 | /* End of file Field.htm */ 71 | /* Location: ./application/libraries/RB/drivers/Field.htm */ -------------------------------------------------------------------------------- /application/libraries/rb/drivers/Model.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | class RB_Model extends RedBean_SimpleModel { 10 | 11 | public function __construct() {} 12 | 13 | public function table() 14 | { 15 | $ci =& get_instance(); 16 | 17 | return $ci->rb->table($this->bean->getMeta('type')); 18 | } 19 | 20 | public function setup() 21 | { 22 | $ci =& get_instance(); 23 | 24 | $ci->load->database(); 25 | 26 | $fields = array(); 27 | foreach ($ci->db->field_data($this->table()) as $field) 28 | $fields[$field->name] = $this->field($field); 29 | 30 | if (isset($fields['created']) AND isset($fields['updated'])) 31 | $this->timestampable(TRUE); 32 | 33 | $this->fields($fields); 34 | } 35 | 36 | public function fields($fields = NULL) 37 | { 38 | if (! empty($fields)) 39 | $this->bean->setMeta('fields', $fields); 40 | 41 | return $this->bean->getMeta('fields'); 42 | } 43 | 44 | public function field($name, $type = 'string', $config = array()) 45 | { 46 | $fields = $this->fields(); 47 | 48 | if (! isset($fields[$name])) { 49 | $fields[$name] = new RB_Field($name, $type, $config); 50 | 51 | $this->fields($fields); 52 | } 53 | 54 | return $fields[$name]; 55 | } 56 | 57 | public function timestampable($value = NULL) 58 | { 59 | if (! empty($value)) { 60 | $this->bean->setMeta('timestampable', $value); 61 | 62 | if ($value) { 63 | $fields = $this->fields(); 64 | 65 | $fields['created'] = $this->field('created', 'integer'); 66 | $fields['updated'] = $this->field('updated', 'integer'); 67 | 68 | $this->fields($fields); 69 | } 70 | } 71 | 72 | $timestampable = $this->bean->getMeta('timestampable'); 73 | 74 | if (empty($timestampable)) 75 | return isset($this->bean->created) AND isset($this->bean->updated); 76 | 77 | return $timestampable; 78 | } 79 | 80 | public function password($value = NULL) 81 | { 82 | if (! empty($value)) { 83 | $this->bean->setMeta('password', $value); 84 | 85 | if ($value) { 86 | $fields = $this->fields(); 87 | 88 | $fields['hash'] = $this->field('hash'); 89 | $fields['key'] = $this->field('key'); 90 | 91 | $this->fields($fields); 92 | } 93 | } 94 | 95 | $password = $this->bean->getMeta('password'); 96 | 97 | if (empty($password)) 98 | return isset($this->bean->hash) AND isset($this->bean->key); 99 | 100 | return $password; 101 | } 102 | 103 | public function link($model, $field = NULL) 104 | { 105 | if (empty($field)) 106 | $field = $model.'_id'; 107 | 108 | $fields = $this->fields(); 109 | 110 | $fields[$field] = $this->field($field, 'link', array('link' => $model)); 111 | 112 | $this->fields($fields); 113 | } 114 | 115 | public function title() 116 | { 117 | $fields = $this->bean->export(); 118 | 119 | return next($fields); 120 | } 121 | 122 | public function save() 123 | { 124 | if ($this->timestampable()) { 125 | $time = time(); 126 | 127 | if (empty($this->bean->created)) 128 | $this->created = $time; 129 | 130 | $this->bean->updated = $time; 131 | } 132 | 133 | R::store($this->bean); 134 | } 135 | 136 | public function hash($password) 137 | { 138 | $ci =& get_instance(); 139 | 140 | $ci->load->library('password'); 141 | 142 | $this->bean->hash = $ci->password->hash($password); 143 | $this->bean->key = $ci->password->key(); 144 | } 145 | 146 | } 147 | 148 | /* End of file RB_Model.php */ 149 | /* Location: ./application/libraries/RB/RB_Model.php */ -------------------------------------------------------------------------------- /application/libraries/rb/drivers/ModelFormatter.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | class RB_ModelFormatter implements RedBean_IModelFormatter { 10 | 11 | public function formatModel($model) 12 | { 13 | return $model; 14 | } 15 | 16 | } 17 | 18 | /* End of file ModelFormatter.php */ 19 | /* Location: ./application/libraries/RB/drivers/ModelFormatter.php */ -------------------------------------------------------------------------------- /application/libraries/rb/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/rb/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/rb/rb.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/modules/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/modules/test/controllers/test.php: -------------------------------------------------------------------------------- 1 | load->library('rb/rb'); 8 | R::debug(true); 9 | 10 | $post = R::dispense('post'); 11 | 12 | $post->title = 'Lorem ipsum dolor sit amet'; 13 | $post->content = 'Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'; 14 | 15 | R::store($post); 16 | } 17 | } 18 | 19 | /* End of file test.php */ 20 | /* Location: ./application/controllers/test.php */ -------------------------------------------------------------------------------- /application/modules/welcome/controllers/welcome.php: -------------------------------------------------------------------------------- 1 | 18 | * @see http://codeigniter.com/user_guide/general/urls.html 19 | */ 20 | public function index() 21 | { 22 | $this->load->view('welcome_message'); 23 | } 24 | } 25 | 26 | /* End of file welcome.php */ 27 | /* Location: ./application/controllers/welcome.php */ -------------------------------------------------------------------------------- /application/modules/welcome/views/welcome_message.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Welcome to CodeIgniter 6 | 7 | 66 | 67 | 68 | 69 |
70 |

Welcome to CodeIgniter!

71 | 72 |
73 |

The page you are looking at is being generated dynamically by CodeIgniter.

74 | 75 |

If you would like to edit this page you'll find it located at:

76 | application/views/welcome_message.php 77 | 78 |

The corresponding controller for this page is found at:

79 | application/controllers/welcome.php 80 | 81 |

If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide.

82 |
83 | 84 | 85 |
86 | 87 | 88 | -------------------------------------------------------------------------------- /application/third_party/MX/Base.php: -------------------------------------------------------------------------------- 1 | load = new MX_Loader; 56 | 57 | /* autoload module items */ 58 | self::$APP->load->_autoloader(array()); 59 | } 60 | } 61 | 62 | /* create the application object */ 63 | new CI; -------------------------------------------------------------------------------- /application/third_party/MX/Config.php: -------------------------------------------------------------------------------- 1 | is_loaded, TRUE)) return $this->item($file); 41 | 42 | $_module OR $_module = CI::$APP->router->fetch_module(); 43 | list($path, $file) = Modules::find($file, $_module, 'config/'); 44 | 45 | if ($path === FALSE) { 46 | parent::load($file, $use_sections, $fail_gracefully); 47 | return $this->item($file); 48 | } 49 | 50 | if ($config = Modules::load_file($file, $path, 'config')) { 51 | 52 | /* reference to the config array */ 53 | $current_config =& $this->config; 54 | 55 | if ($use_sections === TRUE) { 56 | 57 | if (isset($current_config[$file])) { 58 | $current_config[$file] = array_merge($current_config[$file], $config); 59 | } else { 60 | $current_config[$file] = $config; 61 | } 62 | 63 | } else { 64 | $current_config = array_merge($current_config, $config); 65 | } 66 | $this->is_loaded[] = $file; 67 | unset($config); 68 | return $this->item($file); 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /application/third_party/MX/Controller.php: -------------------------------------------------------------------------------- 1 | config->item('controller_suffix'), '', get_class($this)); 46 | log_message('debug', $class." MX_Controller Initialized"); 47 | Modules::$registry[strtolower($class)] = $this; 48 | 49 | /* copy a loader instance and initialize */ 50 | $this->load = clone load_class('Loader'); 51 | $this->load->_init($this); 52 | 53 | /* autoload module items */ 54 | $this->load->_autoloader($this->autoload); 55 | } 56 | 57 | public function __get($class) { 58 | return CI::$APP->$class; 59 | } 60 | } -------------------------------------------------------------------------------- /application/third_party/MX/Lang.php: -------------------------------------------------------------------------------- 1 | load($_lang); 42 | return $this->language; 43 | } 44 | 45 | $deft_lang = CI::$APP->config->item('language'); 46 | $idiom = ($lang == '') ? $deft_lang : $lang; 47 | 48 | if (in_array($langfile.'_lang'.EXT, $this->is_loaded, TRUE)) 49 | return $this->language; 50 | 51 | $_module OR $_module = CI::$APP->router->fetch_module(); 52 | list($path, $_langfile) = Modules::find($langfile.'_lang', $_module, 'language/'.$idiom.'/'); 53 | 54 | if ($path === FALSE) { 55 | 56 | if ($lang = parent::load($langfile, $lang, $return, $add_suffix, $alt_path)) return $lang; 57 | 58 | } else { 59 | 60 | if($lang = Modules::load_file($_langfile, $path, 'lang')) { 61 | if ($return) return $lang; 62 | $this->language = array_merge($this->language, $lang); 63 | $this->is_loaded[] = $langfile.'_lang'.EXT; 64 | unset($lang); 65 | } 66 | } 67 | 68 | return $this->language; 69 | } 70 | } -------------------------------------------------------------------------------- /application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008 - 2011, EllisLab, Inc. 2 | All rights reserved. 3 | 4 | This license is a legal agreement between you and EllisLab Inc. for the use 5 | of CodeIgniter Software (the "Software"). By obtaining the Software you 6 | agree to comply with the terms and conditions of this license. 7 | 8 | PERMITTED USE 9 | You are permitted to use, copy, modify, and distribute the Software and its 10 | documentation, with or without modification, for any purpose, provided that 11 | the following conditions are met: 12 | 13 | 1. A copy of this license agreement must be included with the distribution. 14 | 15 | 2. Redistributions of source code must retain the above copyright notice in 16 | all source code files. 17 | 18 | 3. Redistributions in binary form must reproduce the above copyright notice 19 | in the documentation and/or other materials provided with the distribution. 20 | 21 | 4. Any files that have been modified must carry notices stating the nature 22 | of the change and the names of those who changed them. 23 | 24 | 5. Products derived from the Software must include an acknowledgment that 25 | they are derived from CodeIgniter in their documentation and/or other 26 | materials provided with the distribution. 27 | 28 | 6. Products derived from the Software may not be called "CodeIgniter", 29 | nor may "CodeIgniter" appear in their name, without prior written 30 | permission from EllisLab, Inc. 31 | 32 | INDEMNITY 33 | You agree to indemnify and hold harmless the authors of the Software and 34 | any contributors for any direct, indirect, incidental, or consequential 35 | third-party claims, actions or suits, as well as any related expenses, 36 | liabilities, damages, settlements or fees arising from your use or misuse 37 | of the Software, or a violation of any terms of this license. 38 | 39 | DISCLAIMER OF WARRANTY 40 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR 41 | IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF QUALITY, PERFORMANCE, 42 | NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. 43 | 44 | LIMITATIONS OF LIABILITY 45 | YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. 46 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE 47 | FOR CLAIMS, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION 48 | WITH THE SOFTWARE. LICENSE HOLDERS ARE SOLELY RESPONSIBLE FOR DETERMINING THE 49 | APPROPRIATENESS OF USE AND ASSUME ALL RISKS ASSOCIATED WITH ITS USE, INCLUDING 50 | BUT NOT LIMITED TO THE RISKS OF PROGRAM ERRORS, DAMAGE TO EQUIPMENT, LOSS OF 51 | DATA OR SOFTWARE PROGRAMS, OR UNAVAILABILITY OR INTERRUPTION OF OPERATIONS. 52 | -------------------------------------------------------------------------------- /system/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /system/core/Benchmark.php: -------------------------------------------------------------------------------- 1 | marker[$name] = microtime(); 54 | } 55 | 56 | // -------------------------------------------------------------------- 57 | 58 | /** 59 | * Calculates the time difference between two marked points. 60 | * 61 | * If the first parameter is empty this function instead returns the 62 | * {elapsed_time} pseudo-variable. This permits the full system 63 | * execution time to be shown in a template. The output class will 64 | * swap the real value for this variable. 65 | * 66 | * @access public 67 | * @param string a particular marked point 68 | * @param string a particular marked point 69 | * @param integer the number of decimal places 70 | * @return mixed 71 | */ 72 | function elapsed_time($point1 = '', $point2 = '', $decimals = 4) 73 | { 74 | if ($point1 == '') 75 | { 76 | return '{elapsed_time}'; 77 | } 78 | 79 | if ( ! isset($this->marker[$point1])) 80 | { 81 | return ''; 82 | } 83 | 84 | if ( ! isset($this->marker[$point2])) 85 | { 86 | $this->marker[$point2] = microtime(); 87 | } 88 | 89 | list($sm, $ss) = explode(' ', $this->marker[$point1]); 90 | list($em, $es) = explode(' ', $this->marker[$point2]); 91 | 92 | return number_format(($em + $es) - ($sm + $ss), $decimals); 93 | } 94 | 95 | // -------------------------------------------------------------------- 96 | 97 | /** 98 | * Memory Usage 99 | * 100 | * This function returns the {memory_usage} pseudo-variable. 101 | * This permits it to be put it anywhere in a template 102 | * without the memory being calculated until the end. 103 | * The output class will swap the real value for this variable. 104 | * 105 | * @access public 106 | * @return string 107 | */ 108 | function memory_usage() 109 | { 110 | return '{memory_usage}'; 111 | } 112 | 113 | } 114 | 115 | // END CI_Benchmark class 116 | 117 | /* End of file Benchmark.php */ 118 | /* Location: ./system/core/Benchmark.php */ -------------------------------------------------------------------------------- /system/core/Controller.php: -------------------------------------------------------------------------------- 1 | $class) 45 | { 46 | $this->$var =& load_class($class); 47 | } 48 | 49 | $this->load =& load_class('Loader', 'core'); 50 | 51 | $this->load->initialize(); 52 | 53 | log_message('debug', "Controller Class Initialized"); 54 | } 55 | 56 | public static function &get_instance() 57 | { 58 | return self::$instance; 59 | } 60 | } 61 | // END Controller class 62 | 63 | /* End of file Controller.php */ 64 | /* Location: ./system/core/Controller.php */ -------------------------------------------------------------------------------- /system/core/Model.php: -------------------------------------------------------------------------------- 1 | $key; 52 | } 53 | } 54 | // END Model Class 55 | 56 | /* End of file Model.php */ 57 | /* Location: ./system/core/Model.php */ -------------------------------------------------------------------------------- /system/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/cubrid/cubrid_utility.php: -------------------------------------------------------------------------------- 1 | conn_id) 41 | { 42 | return "SELECT '" . $this->database . "'"; 43 | } 44 | else 45 | { 46 | return FALSE; 47 | } 48 | } 49 | 50 | // -------------------------------------------------------------------- 51 | 52 | /** 53 | * Optimize table query 54 | * 55 | * Generates a platform-specific query so that a table can be optimized 56 | * 57 | * @access private 58 | * @param string the table name 59 | * @return object 60 | * @link http://www.cubrid.org/manual/840/en/Optimize%20Database 61 | */ 62 | function _optimize_table($table) 63 | { 64 | // No SQL based support in CUBRID as of version 8.4.0. Database or 65 | // table optimization can be performed using CUBRID Manager 66 | // database administration tool. See the link above for more info. 67 | return FALSE; 68 | } 69 | 70 | // -------------------------------------------------------------------- 71 | 72 | /** 73 | * Repair table query 74 | * 75 | * Generates a platform-specific query so that a table can be repaired 76 | * 77 | * @access private 78 | * @param string the table name 79 | * @return object 80 | * @link http://www.cubrid.org/manual/840/en/Checking%20Database%20Consistency 81 | */ 82 | function _repair_table($table) 83 | { 84 | // Not supported in CUBRID as of version 8.4.0. Database or 85 | // table consistency can be checked using CUBRID Manager 86 | // database administration tool. See the link above for more info. 87 | return FALSE; 88 | } 89 | 90 | // -------------------------------------------------------------------- 91 | /** 92 | * CUBRID Export 93 | * 94 | * @access private 95 | * @param array Preferences 96 | * @return mixed 97 | */ 98 | function _backup($params = array()) 99 | { 100 | // No SQL based support in CUBRID as of version 8.4.0. Database or 101 | // table backup can be performed using CUBRID Manager 102 | // database administration tool. 103 | return $this->db->display_error('db_unsuported_feature'); 104 | } 105 | } 106 | 107 | /* End of file cubrid_utility.php */ 108 | /* Location: ./system/database/drivers/cubrid/cubrid_utility.php */ -------------------------------------------------------------------------------- /system/database/drivers/cubrid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/mssql_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | 85 | } 86 | 87 | /* End of file mssql_utility.php */ 88 | /* Location: ./system/database/drivers/mssql/mssql_utility.php */ -------------------------------------------------------------------------------- /system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysqli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysqli/mysqli_utility.php: -------------------------------------------------------------------------------- 1 | db->_escape_identifiers($table); 52 | } 53 | 54 | // -------------------------------------------------------------------- 55 | 56 | /** 57 | * Repair table query 58 | * 59 | * Generates a platform-specific query so that a table can be repaired 60 | * 61 | * @access private 62 | * @param string the table name 63 | * @return object 64 | */ 65 | function _repair_table($table) 66 | { 67 | return "REPAIR TABLE ".$this->db->_escape_identifiers($table); 68 | } 69 | 70 | // -------------------------------------------------------------------- 71 | 72 | /** 73 | * MySQLi Export 74 | * 75 | * @access private 76 | * @param array Preferences 77 | * @return mixed 78 | */ 79 | function _backup($params = array()) 80 | { 81 | // Currently unsupported 82 | return $this->db->display_error('db_unsuported_feature'); 83 | } 84 | } 85 | 86 | /* End of file mysqli_utility.php */ 87 | /* Location: ./system/database/drivers/mysqli/mysqli_utility.php */ -------------------------------------------------------------------------------- /system/database/drivers/oci8/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/oci8/oci8_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | } 85 | 86 | /* End of file oci8_utility.php */ 87 | /* Location: ./system/database/drivers/oci8/oci8_utility.php */ -------------------------------------------------------------------------------- /system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/odbc_utility.php: -------------------------------------------------------------------------------- 1 | db->db_debug) 37 | { 38 | return $this->db->display_error('db_unsuported_feature'); 39 | } 40 | return FALSE; 41 | } 42 | 43 | // -------------------------------------------------------------------- 44 | 45 | /** 46 | * Optimize table query 47 | * 48 | * Generates a platform-specific query so that a table can be optimized 49 | * 50 | * @access private 51 | * @param string the table name 52 | * @return object 53 | */ 54 | function _optimize_table($table) 55 | { 56 | // Not a supported ODBC feature 57 | if ($this->db->db_debug) 58 | { 59 | return $this->db->display_error('db_unsuported_feature'); 60 | } 61 | return FALSE; 62 | } 63 | 64 | // -------------------------------------------------------------------- 65 | 66 | /** 67 | * Repair table query 68 | * 69 | * Generates a platform-specific query so that a table can be repaired 70 | * 71 | * @access private 72 | * @param string the table name 73 | * @return object 74 | */ 75 | function _repair_table($table) 76 | { 77 | // Not a supported ODBC feature 78 | if ($this->db->db_debug) 79 | { 80 | return $this->db->display_error('db_unsuported_feature'); 81 | } 82 | return FALSE; 83 | } 84 | 85 | // -------------------------------------------------------------------- 86 | 87 | /** 88 | * ODBC Export 89 | * 90 | * @access private 91 | * @param array Preferences 92 | * @return mixed 93 | */ 94 | function _backup($params = array()) 95 | { 96 | // Currently unsupported 97 | return $this->db->display_error('db_unsuported_feature'); 98 | } 99 | 100 | } 101 | 102 | /* End of file odbc_utility.php */ 103 | /* Location: ./system/database/drivers/odbc/odbc_utility.php */ -------------------------------------------------------------------------------- /system/database/drivers/pdo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/pdo_utility.php: -------------------------------------------------------------------------------- 1 | db->db_debug) 37 | { 38 | return $this->db->display_error('db_unsuported_feature'); 39 | } 40 | return FALSE; 41 | } 42 | 43 | // -------------------------------------------------------------------- 44 | 45 | /** 46 | * Optimize table query 47 | * 48 | * Generates a platform-specific query so that a table can be optimized 49 | * 50 | * @access private 51 | * @param string the table name 52 | * @return object 53 | */ 54 | function _optimize_table($table) 55 | { 56 | // Not a supported PDO feature 57 | if ($this->db->db_debug) 58 | { 59 | return $this->db->display_error('db_unsuported_feature'); 60 | } 61 | return FALSE; 62 | } 63 | 64 | // -------------------------------------------------------------------- 65 | 66 | /** 67 | * Repair table query 68 | * 69 | * Generates a platform-specific query so that a table can be repaired 70 | * 71 | * @access private 72 | * @param string the table name 73 | * @return object 74 | */ 75 | function _repair_table($table) 76 | { 77 | // Not a supported PDO feature 78 | if ($this->db->db_debug) 79 | { 80 | return $this->db->display_error('db_unsuported_feature'); 81 | } 82 | return FALSE; 83 | } 84 | 85 | // -------------------------------------------------------------------- 86 | 87 | /** 88 | * PDO Export 89 | * 90 | * @access private 91 | * @param array Preferences 92 | * @return mixed 93 | */ 94 | function _backup($params = array()) 95 | { 96 | // Currently unsupported 97 | return $this->db->display_error('db_unsuported_feature'); 98 | } 99 | 100 | } 101 | 102 | /* End of file pdo_utility.php */ 103 | /* Location: ./system/database/drivers/pdo/pdo_utility.php */ -------------------------------------------------------------------------------- /system/database/drivers/postgre/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/postgre/postgre_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | } 85 | 86 | 87 | /* End of file postgre_utility.php */ 88 | /* Location: ./system/database/drivers/postgre/postgre_utility.php */ -------------------------------------------------------------------------------- /system/database/drivers/sqlite/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/sqlite_utility.php: -------------------------------------------------------------------------------- 1 | db_debug) 41 | { 42 | return $this->db->display_error('db_unsuported_feature'); 43 | } 44 | return array(); 45 | } 46 | 47 | // -------------------------------------------------------------------- 48 | 49 | /** 50 | * Optimize table query 51 | * 52 | * Is optimization even supported in SQLite? 53 | * 54 | * @access private 55 | * @param string the table name 56 | * @return object 57 | */ 58 | function _optimize_table($table) 59 | { 60 | return FALSE; 61 | } 62 | 63 | // -------------------------------------------------------------------- 64 | 65 | /** 66 | * Repair table query 67 | * 68 | * Are table repairs even supported in SQLite? 69 | * 70 | * @access private 71 | * @param string the table name 72 | * @return object 73 | */ 74 | function _repair_table($table) 75 | { 76 | return FALSE; 77 | } 78 | 79 | // -------------------------------------------------------------------- 80 | 81 | /** 82 | * SQLite Export 83 | * 84 | * @access private 85 | * @param array Preferences 86 | * @return mixed 87 | */ 88 | function _backup($params = array()) 89 | { 90 | // Currently unsupported 91 | return $this->db->display_error('db_unsuported_feature'); 92 | } 93 | } 94 | 95 | /* End of file sqlite_utility.php */ 96 | /* Location: ./system/database/drivers/sqlite/sqlite_utility.php */ -------------------------------------------------------------------------------- /system/database/drivers/sqlsrv/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/sqlsrv/sqlsrv_utility.php: -------------------------------------------------------------------------------- 1 | db->display_error('db_unsuported_feature'); 83 | } 84 | 85 | } 86 | 87 | /* End of file mssql_utility.php */ 88 | /* Location: ./system/database/drivers/mssql/mssql_utility.php */ -------------------------------------------------------------------------------- /system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/fonts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/fonts/texb.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/system/fonts/texb.ttf -------------------------------------------------------------------------------- /system/helpers/array_helper.php: -------------------------------------------------------------------------------- 1 | input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure); 52 | } 53 | } 54 | 55 | // -------------------------------------------------------------------- 56 | 57 | /** 58 | * Fetch an item from the COOKIE array 59 | * 60 | * @access public 61 | * @param string 62 | * @param bool 63 | * @return mixed 64 | */ 65 | if ( ! function_exists('get_cookie')) 66 | { 67 | function get_cookie($index = '', $xss_clean = FALSE) 68 | { 69 | $CI =& get_instance(); 70 | 71 | $prefix = ''; 72 | 73 | if ( ! isset($_COOKIE[$index]) && config_item('cookie_prefix') != '') 74 | { 75 | $prefix = config_item('cookie_prefix'); 76 | } 77 | 78 | return $CI->input->cookie($prefix.$index, $xss_clean); 79 | } 80 | } 81 | 82 | // -------------------------------------------------------------------- 83 | 84 | /** 85 | * Delete a COOKIE 86 | * 87 | * @param mixed 88 | * @param string the cookie domain. Usually: .yourdomain.com 89 | * @param string the cookie path 90 | * @param string the cookie prefix 91 | * @return void 92 | */ 93 | if ( ! function_exists('delete_cookie')) 94 | { 95 | function delete_cookie($name = '', $domain = '', $path = '/', $prefix = '') 96 | { 97 | set_cookie($name, '', '', $domain, $path, $prefix); 98 | } 99 | } 100 | 101 | 102 | /* End of file cookie_helper.php */ 103 | /* Location: ./system/helpers/cookie_helper.php */ -------------------------------------------------------------------------------- /system/helpers/directory_helper.php: -------------------------------------------------------------------------------- 1 | 0) && @is_dir($source_dir.$file)) 61 | { 62 | $filedata[$file] = directory_map($source_dir.$file.DIRECTORY_SEPARATOR, $new_depth, $hidden); 63 | } 64 | else 65 | { 66 | $filedata[] = $file; 67 | } 68 | } 69 | 70 | closedir($fp); 71 | return $filedata; 72 | } 73 | 74 | return FALSE; 75 | } 76 | } 77 | 78 | 79 | /* End of file directory_helper.php */ 80 | /* Location: ./system/helpers/directory_helper.php */ -------------------------------------------------------------------------------- /system/helpers/download_helper.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/helpers/language_helper.php: -------------------------------------------------------------------------------- 1 | lang->line($line); 46 | 47 | if ($id != '') 48 | { 49 | $line = '"; 50 | } 51 | 52 | return $line; 53 | } 54 | } 55 | 56 | // ------------------------------------------------------------------------ 57 | /* End of file language_helper.php */ 58 | /* Location: ./system/helpers/language_helper.php */ -------------------------------------------------------------------------------- /system/helpers/number_helper.php: -------------------------------------------------------------------------------- 1 | lang->load('number'); 43 | 44 | if ($num >= 1000000000000) 45 | { 46 | $num = round($num / 1099511627776, $precision); 47 | $unit = $CI->lang->line('terabyte_abbr'); 48 | } 49 | elseif ($num >= 1000000000) 50 | { 51 | $num = round($num / 1073741824, $precision); 52 | $unit = $CI->lang->line('gigabyte_abbr'); 53 | } 54 | elseif ($num >= 1000000) 55 | { 56 | $num = round($num / 1048576, $precision); 57 | $unit = $CI->lang->line('megabyte_abbr'); 58 | } 59 | elseif ($num >= 1000) 60 | { 61 | $num = round($num / 1024, $precision); 62 | $unit = $CI->lang->line('kilobyte_abbr'); 63 | } 64 | else 65 | { 66 | $unit = $CI->lang->line('bytes'); 67 | return number_format($num).' '.$unit; 68 | } 69 | 70 | return number_format($num, $precision).' '.$unit; 71 | } 72 | } 73 | 74 | 75 | /* End of file number_helper.php */ 76 | /* Location: ./system/helpers/number_helper.php */ -------------------------------------------------------------------------------- /system/helpers/path_helper.php: -------------------------------------------------------------------------------- 1 | security->xss_clean($str, $is_image); 44 | } 45 | } 46 | 47 | // ------------------------------------------------------------------------ 48 | 49 | /** 50 | * Sanitize Filename 51 | * 52 | * @access public 53 | * @param string 54 | * @return string 55 | */ 56 | if ( ! function_exists('sanitize_filename')) 57 | { 58 | function sanitize_filename($filename) 59 | { 60 | $CI =& get_instance(); 61 | return $CI->security->sanitize_filename($filename); 62 | } 63 | } 64 | 65 | // -------------------------------------------------------------------- 66 | 67 | /** 68 | * Hash encode a string 69 | * 70 | * @access public 71 | * @param string 72 | * @return string 73 | */ 74 | if ( ! function_exists('do_hash')) 75 | { 76 | function do_hash($str, $type = 'sha1') 77 | { 78 | if ($type == 'sha1') 79 | { 80 | return sha1($str); 81 | } 82 | else 83 | { 84 | return md5($str); 85 | } 86 | } 87 | } 88 | 89 | // ------------------------------------------------------------------------ 90 | 91 | /** 92 | * Strip Image Tags 93 | * 94 | * @access public 95 | * @param string 96 | * @return string 97 | */ 98 | if ( ! function_exists('strip_image_tags')) 99 | { 100 | function strip_image_tags($str) 101 | { 102 | $str = preg_replace("##", "\\1", $str); 103 | $str = preg_replace("##", "\\1", $str); 104 | 105 | return $str; 106 | } 107 | } 108 | 109 | // ------------------------------------------------------------------------ 110 | 111 | /** 112 | * Convert PHP tags to entities 113 | * 114 | * @access public 115 | * @param string 116 | * @return string 117 | */ 118 | if ( ! function_exists('encode_php_tags')) 119 | { 120 | function encode_php_tags($str) 121 | { 122 | return str_replace(array(''), array('<?php', '<?PHP', '<?', '?>'), $str); 123 | } 124 | } 125 | 126 | 127 | /* End of file security_helper.php */ 128 | /* Location: ./system/helpers/security_helper.php */ -------------------------------------------------------------------------------- /system/helpers/typography_helper.php: -------------------------------------------------------------------------------- 1 | load->library('typography'); 44 | 45 | return $CI->typography->nl2br_except_pre($str); 46 | } 47 | } 48 | 49 | // ------------------------------------------------------------------------ 50 | 51 | /** 52 | * Auto Typography Wrapper Function 53 | * 54 | * 55 | * @access public 56 | * @param string 57 | * @param bool whether to allow javascript event handlers 58 | * @param bool whether to reduce multiple instances of double newlines to two 59 | * @return string 60 | */ 61 | if ( ! function_exists('auto_typography')) 62 | { 63 | function auto_typography($str, $strip_js_event_handlers = TRUE, $reduce_linebreaks = FALSE) 64 | { 65 | $CI =& get_instance(); 66 | $CI->load->library('typography'); 67 | return $CI->typography->auto_typography($str, $strip_js_event_handlers, $reduce_linebreaks); 68 | } 69 | } 70 | 71 | 72 | // -------------------------------------------------------------------- 73 | 74 | /** 75 | * HTML Entities Decode 76 | * 77 | * This function is a replacement for html_entity_decode() 78 | * 79 | * @access public 80 | * @param string 81 | * @return string 82 | */ 83 | if ( ! function_exists('entity_decode')) 84 | { 85 | function entity_decode($str, $charset='UTF-8') 86 | { 87 | global $SEC; 88 | return $SEC->entity_decode($str, $charset); 89 | } 90 | } 91 | 92 | /* End of file typography_helper.php */ 93 | /* Location: ./system/helpers/typography_helper.php */ -------------------------------------------------------------------------------- /system/helpers/xml_helper.php: -------------------------------------------------------------------------------- 1 | ","\"", "'", "-"), 53 | array("&", "<", ">", """, "'", "-"), 54 | $str); 55 | 56 | // Decode the temp markers back to entities 57 | $str = preg_replace("/$temp(\d+);/","&#\\1;",$str); 58 | 59 | if ($protect_all === TRUE) 60 | { 61 | $str = preg_replace("/$temp(\w+);/","&\\1;", $str); 62 | } 63 | 64 | return $str; 65 | } 66 | } 67 | 68 | // ------------------------------------------------------------------------ 69 | 70 | /* End of file xml_helper.php */ 71 | /* Location: ./system/helpers/xml_helper.php */ -------------------------------------------------------------------------------- /system/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/english/calendar_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/english/migration_lang.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/libraries/Cache/drivers/Cache_apc.php: -------------------------------------------------------------------------------- 1 | $time + $ttl, 121 | 'mtime' => $time, 122 | 'data' => $data 123 | ); 124 | } 125 | 126 | // ------------------------------------------------------------------------ 127 | 128 | /** 129 | * is_supported() 130 | * 131 | * Check to see if APC is available on this system, bail if it isn't. 132 | */ 133 | public function is_supported() 134 | { 135 | if ( ! extension_loaded('apc') OR ini_get('apc.enabled') != "1") 136 | { 137 | log_message('error', 'The APC PHP extension must be loaded to use APC Cache.'); 138 | return FALSE; 139 | } 140 | 141 | return TRUE; 142 | } 143 | 144 | // ------------------------------------------------------------------------ 145 | 146 | 147 | } 148 | // End Class 149 | 150 | /* End of file Cache_apc.php */ 151 | /* Location: ./system/libraries/Cache/drivers/Cache_apc.php */ 152 | -------------------------------------------------------------------------------- /system/libraries/Cache/drivers/Cache_dummy.php: -------------------------------------------------------------------------------- 1 | '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4'); 34 | 35 | /** 36 | * Constructor 37 | */ 38 | public function __construct() 39 | { 40 | $config =& get_config(); 41 | 42 | $this->_log_path = ($config['log_path'] != '') ? $config['log_path'] : APPPATH.'logs/'; 43 | 44 | if ( ! is_dir($this->_log_path) OR ! is_really_writable($this->_log_path)) 45 | { 46 | $this->_enabled = FALSE; 47 | } 48 | 49 | if (is_numeric($config['log_threshold'])) 50 | { 51 | $this->_threshold = $config['log_threshold']; 52 | } 53 | 54 | if ($config['log_date_format'] != '') 55 | { 56 | $this->_date_fmt = $config['log_date_format']; 57 | } 58 | } 59 | 60 | // -------------------------------------------------------------------- 61 | 62 | /** 63 | * Write Log File 64 | * 65 | * Generally this function will be called using the global log_message() function 66 | * 67 | * @param string the error level 68 | * @param string the error message 69 | * @param bool whether the error is a native PHP error 70 | * @return bool 71 | */ 72 | public function write_log($level = 'error', $msg, $php_error = FALSE) 73 | { 74 | if ($this->_enabled === FALSE) 75 | { 76 | return FALSE; 77 | } 78 | 79 | $level = strtoupper($level); 80 | 81 | if ( ! isset($this->_levels[$level]) OR ($this->_levels[$level] > $this->_threshold)) 82 | { 83 | return FALSE; 84 | } 85 | 86 | $filepath = $this->_log_path.'log-'.date('Y-m-d').'.php'; 87 | $message = ''; 88 | 89 | if ( ! file_exists($filepath)) 90 | { 91 | $message .= "<"."?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?".">\n\n"; 92 | } 93 | 94 | if ( ! $fp = @fopen($filepath, FOPEN_WRITE_CREATE)) 95 | { 96 | return FALSE; 97 | } 98 | 99 | $message .= $level.' '.(($level == 'INFO') ? ' -' : '-').' '.date($this->_date_fmt). ' --> '.$msg."\n"; 100 | 101 | flock($fp, LOCK_EX); 102 | fwrite($fp, $message); 103 | flock($fp, LOCK_UN); 104 | fclose($fp); 105 | 106 | @chmod($filepath, FILE_WRITE_MODE); 107 | return TRUE; 108 | } 109 | 110 | } 111 | // END Log Class 112 | 113 | /* End of file Log.php */ 114 | /* Location: ./system/libraries/Log.php */ -------------------------------------------------------------------------------- /system/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /user_guide/doc_style/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Writing Documentation : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Writing Documentation

59 | 60 |

To help facilitate a consistent, easy-to-read documentation style for CodeIgniter projects, EllisLab is making the markup and CSS from the CodeIgniter user guide freely available to the community for their use. For your convenience, a template file has been created that includes the primary blocks of markup used with brief samples.

61 | 62 |

Files

63 | 64 | 68 | 69 | 70 |
71 | 72 | 73 | 74 | 75 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /user_guide/general/creating_drivers.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Creating Drivers : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Creating Drivers

59 | 60 |

Driver Directory and File Structure

61 | 62 |

Sample driver directory and file structure layout:

63 | 64 |
    65 |
  • /application/libraries/Driver_name 66 |
      67 |
    • Driver_name.php
    • 68 |
    • drivers 69 |
        70 |
      • Driver_name_subclass_1.php
      • 71 |
      • Driver_name_subclass_2.php
      • 72 |
      • Driver_name_subclass_3.php
      • 73 |
      74 |
    • 75 |
    76 |
  • 77 |
78 | 79 |

NOTE: In order to maintain compatibility on case-sensitive file systems, the Driver_name directory must be ucfirst()

80 | 81 | 82 | 83 | 84 |
85 | 86 | 87 | 88 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /user_guide/general/credits.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Credits : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Credits

59 | 60 |

CodeIgniter was originally developed by Rick Ellis (CEO of 61 | EllisLab, Inc.). The framework was written for performance in the real 62 | world, with many of the class libraries, helpers, and sub-systems borrowed from the code-base of 63 | ExpressionEngine.

64 | 65 |

It is currently developed and maintained by the ExpressionEngine Development Team.
66 | Bleeding edge development is spearheaded by the handpicked contributors of the Reactor Team.

67 | 68 |

A hat tip goes to Ruby on Rails for inspiring us to create a PHP framework, and for 69 | bringing frameworks into the general consciousness of the web community.

70 | 71 |
72 | 73 | 74 | 75 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /user_guide/general/quick_reference.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Quick Reference Chart : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Quick Reference Chart

59 | 60 |

For a PDF version of this chart, click here.

61 | 62 |

63 | 64 |
65 | 66 | 67 | 68 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /user_guide/general/requirements.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Server Requirements : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Server Requirements

59 | 60 |
    61 |
  • PHP version 5.1.6 or newer.
  • 62 |
  • A Database is required for most web application programming. Current supported databases are MySQL (4.1+), MySQLi, MS SQL, Postgres, Oracle, SQLite, and ODBC.
  • 63 |
64 | 65 | 66 | 67 |
68 | 69 | 70 | 71 | 72 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /user_guide/helpers/language_helper.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Language Helper : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 48 | 49 | 50 |
51 | 52 | 53 |
54 | 55 | 56 | 57 |
58 | 59 | 60 |

Language Helper

61 | 62 |

The Language Helper file contains functions that assist in working with language files.

63 | 64 | 65 |

Loading this Helper

66 | 67 |

This helper is loaded using the following code:

68 | $this->load->helper('language'); 69 | 70 |

The following functions are available:

71 | 72 |

lang('language line', 'element id')

73 | 74 |

This function returns a line of text from a loaded language file with simplified syntax 75 | that may be more desirable for view files than calling $this->lang->line(). 76 | The optional second parameter will also output a form label for you. Example:

77 | 78 | echo lang('language_key', 'form_item_id');
79 | // becomes <label for="form_item_id">language_key</label>
80 | 81 | 82 |
83 | 84 | 85 | 86 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /user_guide/helpers/xml_helper.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | XML Helper : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 | 59 |

XML Helper

60 | 61 |

The XML Helper file contains functions that assist in working with XML data.

62 | 63 | 64 |

Loading this Helper

65 | 66 |

This helper is loaded using the following code:

67 | $this->load->helper('xml'); 68 | 69 |

The following functions are available:

70 | 71 |

xml_convert('string')

72 | 73 |

Takes a string as input and converts the following reserved XML characters to entities:

74 | 75 |

76 | Ampersands: &
77 | Less then and greater than characters: < >
78 | Single and double quotes: '  "
79 | Dashes: -

80 | 81 |

This function ignores ampersands if they are part of existing character entities. Example:

82 | 83 | $string = xml_convert($string); 84 | 85 | 86 | 87 | 88 | 89 | 90 |
91 | 92 | 93 | 94 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /user_guide/images/appflowchart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/appflowchart.gif -------------------------------------------------------------------------------- /user_guide/images/arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/arrow.gif -------------------------------------------------------------------------------- /user_guide/images/ci_logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/ci_logo.jpg -------------------------------------------------------------------------------- /user_guide/images/ci_logo_flame.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/ci_logo_flame.jpg -------------------------------------------------------------------------------- /user_guide/images/ci_quick_ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/ci_quick_ref.png -------------------------------------------------------------------------------- /user_guide/images/codeigniter_1.7.1_helper_reference.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/codeigniter_1.7.1_helper_reference.pdf -------------------------------------------------------------------------------- /user_guide/images/codeigniter_1.7.1_helper_reference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/codeigniter_1.7.1_helper_reference.png -------------------------------------------------------------------------------- /user_guide/images/codeigniter_1.7.1_library_reference.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/codeigniter_1.7.1_library_reference.pdf -------------------------------------------------------------------------------- /user_guide/images/codeigniter_1.7.1_library_reference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/codeigniter_1.7.1_library_reference.png -------------------------------------------------------------------------------- /user_guide/images/file.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/file.gif -------------------------------------------------------------------------------- /user_guide/images/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/folder.gif -------------------------------------------------------------------------------- /user_guide/images/nav_bg_darker.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/nav_bg_darker.jpg -------------------------------------------------------------------------------- /user_guide/images/nav_separator_darker.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/nav_separator_darker.jpg -------------------------------------------------------------------------------- /user_guide/images/nav_toggle_darker.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/nav_toggle_darker.jpg -------------------------------------------------------------------------------- /user_guide/images/reactor-bullet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/reactor-bullet.png -------------------------------------------------------------------------------- /user_guide/images/smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/smile.gif -------------------------------------------------------------------------------- /user_guide/images/transparent.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubensarrio/codeigniter-hmvc-redbean/d5f942dd9ff1c63b9dcab161f0125b7c040dd20d/user_guide/images/transparent.gif -------------------------------------------------------------------------------- /user_guide/installation/troubleshooting.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Troubleshooting : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Troubleshooting

59 | 60 |

If you find that no matter what you put in your URL only your default page is loading, it might be that your server 61 | does not support the PATH_INFO variable needed to serve search-engine friendly URLs. 62 | 63 | As a first step, open your application/config/config.php file and look for the URI Protocol 64 | information. It will recommend that you try a couple alternate settings. If it still doesn't work after you've tried this you'll need 65 | to force CodeIgniter to add a question mark to your URLs. To do this open your application/config/config.php file and change this:

66 | 67 | $config['index_page'] = "index.php"; 68 | 69 |

To this:

70 | 71 | $config['index_page'] = "index.php?"; 72 | 73 | 74 |
75 | 76 | 77 | 78 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /user_guide/installation/upgrade_120.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Upgrading From Beta 1.0 to Final 1.2

59 | 60 |

To upgrade to Version 1.2 please replace the following directories with the new versions:

61 | 62 |

Note: If you have any custom developed files in these folders please make copies of them first.

63 | 64 |
    65 |
  • drivers
  • 66 |
  • helpers
  • 67 |
  • init
  • 68 |
  • language
  • 69 |
  • libraries
  • 70 |
  • plugins
  • 71 |
  • scaffolding
  • 72 |
73 | 74 |

Please also replace your local copy of the user guide with the new version.

75 | 76 |
77 | 78 | 79 | 80 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /user_guide/installation/upgrade_210.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Upgrading from 2.0.3 to 2.1.0 : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Upgrading from 2.0.3 to 2.1.0

59 | 60 |

Before performing an update you should take your site offline by replacing the index.php file with a static one.

61 | 62 |

Step 1: Update your CodeIgniter files

63 | 64 |

Replace all files and directories in your "system" folder and replace your index.php file. If any modifications were made to your index.php they will need to be made fresh in this new one.

65 | 66 |

Note: If you have any custom developed files in these folders please make copies of them first.

67 | 68 |

Step 2: Replace config/user_agents.php

69 | 70 |

This config file has been updated to contain more user agent types, please copy it to application/config/user_agents.php.

71 | 72 | 73 |
74 | 75 | 76 | 77 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /user_guide/installation/upgrade_212.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Upgrading from 2.1.1 to 2.1.2 : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Upgrading from 2.1.1 to 2.1.2

59 | 60 |

Before performing an update you should take your site offline by replacing the index.php file with a static one.

61 | 62 |

Step 1: Update your CodeIgniter files

63 | 64 |

Replace all files and directories in your "system" folder and replace your index.php file. If any modifications were made to your index.php they will need to be made fresh in this new one.

65 | 66 |

Note: If you have any custom developed files in these folders please make copies of them first.

67 | 68 |
69 | 70 | 71 | 72 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /user_guide/installation/upgrade_213.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Upgrading from 2.1.2 to 2.1.3 : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

Upgrading from 2.1.2 to 2.1.3

59 | 60 |

Before performing an update you should take your site offline by replacing the index.php file with a static one.

61 | 62 |

Step 1: Update your CodeIgniter files

63 | 64 |

Replace all files and directories in your "system" folder and replace your index.php file. If any modifications were made to your index.php they will need to be made fresh in this new one.

65 | 66 |

Note: If you have any custom developed files in these folders please make copies of them first.

67 | 68 |
69 | 70 | 71 | 72 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /user_guide/nav/hacks.txt: -------------------------------------------------------------------------------- 1 | I did the following hack in moo.fx.js: 2 | 3 | At line 79 in the toggle: function() function, I added: 4 | 5 | document.getElementById('nav').style.display = 'block'; 6 | 7 | -- Rick Ellis 8 | 9 | 10 | Also removed fx.Opacity and fx.Height from moo.fx.js -- Pascal -------------------------------------------------------------------------------- /user_guide/nav/moo.fx.js: -------------------------------------------------------------------------------- 1 | /* 2 | moo.fx, simple effects library built with prototype.js (http://prototype.conio.net). 3 | by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE. 4 | for more info (http://moofx.mad4milk.net). 5 | 10/24/2005 6 | v(1.0.2) 7 | */ 8 | 9 | //base 10 | var fx = new Object(); 11 | fx.Base = function(){}; 12 | fx.Base.prototype = { 13 | setOptions: function(options) { 14 | this.options = { 15 | duration: 500, 16 | onComplete: '' 17 | } 18 | Object.extend(this.options, options || {}); 19 | }, 20 | 21 | go: function() { 22 | this.duration = this.options.duration; 23 | this.startTime = (new Date).getTime(); 24 | this.timer = setInterval (this.step.bind(this), 13); 25 | }, 26 | 27 | step: function() { 28 | var time = (new Date).getTime(); 29 | var Tpos = (time - this.startTime) / (this.duration); 30 | if (time >= this.duration+this.startTime) { 31 | this.now = this.to; 32 | clearInterval (this.timer); 33 | this.timer = null; 34 | if (this.options.onComplete) setTimeout(this.options.onComplete.bind(this), 10); 35 | } 36 | else { 37 | this.now = ((-Math.cos(Tpos*Math.PI)/2) + 0.5) * (this.to-this.from) + this.from; 38 | //this time-position, sinoidal transition thing is from script.aculo.us 39 | } 40 | this.increase(); 41 | }, 42 | 43 | custom: function(from, to) { 44 | if (this.timer != null) return; 45 | this.from = from; 46 | this.to = to; 47 | this.go(); 48 | }, 49 | 50 | hide: function() { 51 | this.now = 0; 52 | this.increase(); 53 | }, 54 | 55 | clearTimer: function() { 56 | clearInterval(this.timer); 57 | this.timer = null; 58 | } 59 | } 60 | 61 | //stretchers 62 | fx.Layout = Class.create(); 63 | fx.Layout.prototype = Object.extend(new fx.Base(), { 64 | initialize: function(el, options) { 65 | this.el = $(el); 66 | this.el.style.overflow = "hidden"; 67 | this.el.iniWidth = this.el.offsetWidth; 68 | this.el.iniHeight = this.el.offsetHeight; 69 | this.setOptions(options); 70 | } 71 | }); 72 | 73 | fx.Height = Class.create(); 74 | Object.extend(Object.extend(fx.Height.prototype, fx.Layout.prototype), { 75 | increase: function() { 76 | this.el.style.height = this.now + "px"; 77 | }, 78 | 79 | toggle: function() { 80 | if (this.el.offsetHeight > 0) this.custom(this.el.offsetHeight, 0); 81 | else this.custom(0, this.el.scrollHeight); 82 | } 83 | }); 84 | -------------------------------------------------------------------------------- /user_guide/nav/prototype.lite.js: -------------------------------------------------------------------------------- 1 | /* Prototype JavaScript framework 2 | * (c) 2005 Sam Stephenson 3 | * 4 | * Prototype is freely distributable under the terms of an MIT-style license. 5 | * 6 | * For details, see the Prototype web site: http://prototype.conio.net/ 7 | * 8 | /*--------------------------------------------------------------------------*/ 9 | 10 | 11 | //note: this is a stripped down version of prototype, to be used with moo.fx by mad4milk (http://moofx.mad4milk.net). 12 | 13 | var Class = { 14 | create: function() { 15 | return function() { 16 | this.initialize.apply(this, arguments); 17 | } 18 | } 19 | } 20 | 21 | Object.extend = function(destination, source) { 22 | for (property in source) { 23 | destination[property] = source[property]; 24 | } 25 | return destination; 26 | } 27 | 28 | Function.prototype.bind = function(object) { 29 | var __method = this; 30 | return function() { 31 | return __method.apply(object, arguments); 32 | } 33 | } 34 | 35 | function $() { 36 | var elements = new Array(); 37 | 38 | for (var i = 0; i < arguments.length; i++) { 39 | var element = arguments[i]; 40 | if (typeof element == 'string') 41 | element = document.getElementById(element); 42 | 43 | if (arguments.length == 1) 44 | return element; 45 | 46 | elements.push(element); 47 | } 48 | 49 | return elements; 50 | } 51 | 52 | //------------------------- 53 | 54 | document.getElementsByClassName = function(className) { 55 | var children = document.getElementsByTagName('*') || document.all; 56 | var elements = new Array(); 57 | 58 | for (var i = 0; i < children.length; i++) { 59 | var child = children[i]; 60 | var classNames = child.className.split(' '); 61 | for (var j = 0; j < classNames.length; j++) { 62 | if (classNames[j] == className) { 63 | elements.push(child); 64 | break; 65 | } 66 | } 67 | } 68 | 69 | return elements; 70 | } 71 | 72 | //------------------------- 73 | 74 | if (!window.Element) { 75 | var Element = new Object(); 76 | } 77 | 78 | Object.extend(Element, { 79 | remove: function(element) { 80 | element = $(element); 81 | element.parentNode.removeChild(element); 82 | }, 83 | 84 | hasClassName: function(element, className) { 85 | element = $(element); 86 | if (!element) 87 | return; 88 | var a = element.className.split(' '); 89 | for (var i = 0; i < a.length; i++) { 90 | if (a[i] == className) 91 | return true; 92 | } 93 | return false; 94 | }, 95 | 96 | addClassName: function(element, className) { 97 | element = $(element); 98 | Element.removeClassName(element, className); 99 | element.className += ' ' + className; 100 | }, 101 | 102 | removeClassName: function(element, className) { 103 | element = $(element); 104 | if (!element) 105 | return; 106 | var newClassName = ''; 107 | var a = element.className.split(' '); 108 | for (var i = 0; i < a.length; i++) { 109 | if (a[i] != className) { 110 | if (i > 0) 111 | newClassName += ' '; 112 | newClassName += a[i]; 113 | } 114 | } 115 | element.className = newClassName; 116 | }, 117 | 118 | // removes whitespace-only text node children 119 | cleanWhitespace: function(element) { 120 | element = $(element); 121 | for (var i = 0; i < element.childNodes.length; i++) { 122 | var node = element.childNodes[i]; 123 | if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) 124 | Element.remove(node); 125 | } 126 | } 127 | }); -------------------------------------------------------------------------------- /user_guide/nav/user_guide_menu.js: -------------------------------------------------------------------------------- 1 | window.onload = function() { 2 | myHeight = new fx.Height('nav', {duration: 400}); 3 | myHeight.hide(); 4 | } -------------------------------------------------------------------------------- /user_guide/overview/cheatsheets.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CodeIgniter Cheatsheets : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

CodeIgniter Cheatsheets

59 | 60 |

Library Reference

61 | 62 |
CodeIgniter Library Reference
63 | 64 |

Helpers Reference

65 |
CodeIgniter Library Reference
66 | 67 |
68 | 69 | 70 | 71 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /user_guide/overview/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CodeIgniter Overview : CodeIgniter User Guide 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 |

CodeIgniter User Guide Version 2.1.3

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 47 | 48 | 49 |
50 | 51 | 52 |
53 | 54 | 55 | 56 |
57 | 58 |

CodeIgniter Overview

59 | 60 |

The following pages describe the broad concepts behind CodeIgniter:

61 | 62 | 70 | 71 | 72 | 73 | 74 |
75 | 76 | 77 | 78 | 82 | 83 | 84 | --------------------------------------------------------------------------------