├── user_guide_src
├── cilexer
│ ├── cilexer
│ │ ├── __init__.py
│ │ └── cilexer.py
│ ├── setup.py
│ └── README
└── source
│ ├── images
│ ├── arrow.gif
│ ├── file.gif
│ ├── smile.gif
│ ├── ci-icon.ico
│ ├── ci_logo.jpg
│ ├── folder.gif
│ ├── appflowchart.gif
│ └── ci_logo_flame.jpg
│ ├── helpers
│ ├── index.rst
│ ├── language_helper.rst
│ ├── xml_helper.rst
│ ├── number_helper.rst
│ ├── path_helper.rst
│ ├── download_helper.rst
│ ├── email_helper.rst
│ ├── typography_helper.rst
│ ├── directory_helper.rst
│ └── inflector_helper.rst
│ ├── libraries
│ └── index.rst
│ ├── documentation
│ └── ELDocs.tmbundle.zip
│ ├── _themes
│ └── sphinx_rtd_theme
│ │ ├── static
│ │ ├── fonts
│ │ │ ├── FontAwesome.otf
│ │ │ ├── fontawesome-webfont.eot
│ │ │ ├── fontawesome-webfont.ttf
│ │ │ └── fontawesome-webfont.woff
│ │ ├── css
│ │ │ └── citheme.css
│ │ └── js
│ │ │ └── oldtheme.js
│ │ ├── theme.conf
│ │ ├── searchbox.html
│ │ ├── __init__.py
│ │ ├── breadcrumbs.html
│ │ ├── LICENSE
│ │ ├── versions.html
│ │ ├── footer.html
│ │ └── search.html
│ ├── overview
│ ├── index.rst
│ ├── appflow.rst
│ ├── getting_started.rst
│ ├── mvc.rst
│ ├── goals.rst
│ └── features.rst
│ ├── installation
│ ├── upgrade_214.rst
│ ├── upgrade_221.rst
│ ├── upgrade_222.rst
│ ├── upgrade_223.rst
│ ├── upgrade_302.rst
│ ├── upgrade_310.rst
│ ├── upgrade_120.rst
│ ├── upgrade_212.rst
│ ├── upgrade_213.rst
│ ├── upgrade_301.rst
│ ├── troubleshooting.rst
│ ├── upgrade_161.rst
│ ├── upgrade_163.rst
│ ├── upgrade_171.rst
│ ├── upgrade_210.rst
│ ├── upgrade_220.rst
│ ├── upgrade_153.rst
│ ├── upgrade_132.rst
│ ├── upgrade_131.rst
│ ├── upgrade_211.rst
│ ├── upgrade_202.rst
│ ├── upgrade_162.rst
│ ├── upgrade_152.rst
│ ├── upgrade_172.rst
│ ├── upgrade_133.rst
│ ├── upgrade_201.rst
│ ├── upgrade_154.rst
│ ├── downloads.rst
│ ├── upgrading.rst
│ ├── upgrade_170.rst
│ ├── upgrade_160.rst
│ ├── upgrade_203.rst
│ ├── index.rst
│ ├── upgrade_140.rst
│ ├── upgrade_141.rst
│ └── upgrade_b11.rst
│ ├── general
│ ├── index.rst
│ ├── creating_drivers.rst
│ ├── requirements.rst
│ ├── credits.rst
│ ├── libraries.rst
│ ├── autoloader.rst
│ ├── welcome.rst
│ ├── drivers.rst
│ ├── reserved_names.rst
│ ├── environments.rst
│ ├── ancillary_classes.rst
│ ├── managing_apps.rst
│ ├── cli.rst
│ └── alternative_php.rst
│ ├── database
│ ├── index.rst
│ └── call_function.rst
│ ├── tutorial
│ ├── conclusion.rst
│ └── index.rst
│ ├── license.rst
│ ├── DCO.rst
│ └── index.rst
├── system
├── fonts
│ ├── texb.ttf
│ └── index.html
├── .htaccess
├── index.html
├── core
│ ├── index.html
│ └── compat
│ │ └── index.html
├── database
│ ├── index.html
│ └── drivers
│ │ ├── index.html
│ │ ├── cubrid
│ │ └── index.html
│ │ ├── ibase
│ │ ├── index.html
│ │ └── ibase_utility.php
│ │ ├── mssql
│ │ └── index.html
│ │ ├── mysql
│ │ └── index.html
│ │ ├── mysqli
│ │ └── index.html
│ │ ├── oci8
│ │ ├── index.html
│ │ └── oci8_utility.php
│ │ ├── odbc
│ │ ├── index.html
│ │ └── odbc_utility.php
│ │ ├── pdo
│ │ ├── index.html
│ │ ├── subdrivers
│ │ │ ├── index.html
│ │ │ └── pdo_odbc_forge.php
│ │ ├── pdo_forge.php
│ │ └── pdo_utility.php
│ │ ├── sqlite
│ │ ├── index.html
│ │ └── sqlite_utility.php
│ │ ├── sqlsrv
│ │ └── index.html
│ │ ├── postgre
│ │ └── index.html
│ │ └── sqlite3
│ │ ├── index.html
│ │ └── sqlite3_utility.php
├── helpers
│ └── index.html
├── language
│ ├── index.html
│ └── english
│ │ ├── index.html
│ │ ├── number_lang.php
│ │ ├── pagination_lang.php
│ │ └── migration_lang.php
└── libraries
│ ├── index.html
│ ├── Cache
│ ├── index.html
│ └── drivers
│ │ └── index.html
│ ├── Session
│ ├── index.html
│ ├── drivers
│ │ └── index.html
│ └── SessionHandlerInterface.php
│ └── Javascript
│ └── index.html
├── tests
├── mocks
│ ├── uploads
│ │ └── ci_logo.gif
│ ├── database
│ │ ├── ci_test.sqlite
│ │ ├── drivers
│ │ │ ├── pdo.php
│ │ │ ├── mysql.php
│ │ │ ├── mysqli.php
│ │ │ ├── postgre.php
│ │ │ └── sqlite.php
│ │ ├── config
│ │ │ ├── mysql.php
│ │ │ ├── mysqli.php
│ │ │ ├── pgsql.php
│ │ │ ├── sqlite.php
│ │ │ └── pdo
│ │ │ │ ├── mysql.php
│ │ │ │ ├── pgsql.php
│ │ │ │ └── sqlite.php
│ │ └── db
│ │ │ └── driver.php
│ ├── core
│ │ ├── utf8.php
│ │ ├── uri.php
│ │ ├── security.php
│ │ └── input.php
│ ├── libraries
│ │ ├── table.php
│ │ ├── encrypt.php
│ │ ├── driver.php
│ │ ├── encryption.php
│ │ └── session.php
│ └── ci_testconfig.php
└── phpunit.xml
├── application
├── .htaccess
├── cache
│ ├── .htaccess
│ └── index.html
├── views
│ ├── errors
│ │ ├── cli
│ │ │ ├── error_404.php
│ │ │ ├── error_general.php
│ │ │ ├── error_db.php
│ │ │ ├── index.html
│ │ │ ├── error_php.php
│ │ │ └── error_exception.php
│ │ ├── index.html
│ │ └── html
│ │ │ ├── index.html
│ │ │ ├── error_php.php
│ │ │ ├── error_exception.php
│ │ │ ├── error_general.php
│ │ │ ├── error_db.php
│ │ │ └── error_404.php
│ ├── index.html
│ └── welcome_message.php
├── index.html
├── config
│ ├── index.html
│ ├── hooks.php
│ ├── profiler.php
│ ├── memcached.php
│ ├── routes.php
│ └── doctypes.php
├── core
│ └── index.html
├── helpers
│ └── index.html
├── hooks
│ └── index.html
├── language
│ ├── index.html
│ └── english
│ │ └── index.html
├── logs
│ └── index.html
├── models
│ └── index.html
├── controllers
│ ├── index.html
│ └── Welcome.php
├── libraries
│ └── index.html
└── third_party
│ └── index.html
├── composer.json
├── .gitignore
├── DCO.txt
├── license.txt
└── readme.rst
/user_guide_src/cilexer/cilexer/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/system/fonts/texb.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/system/fonts/texb.ttf
--------------------------------------------------------------------------------
/tests/mocks/uploads/ci_logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/tests/mocks/uploads/ci_logo.gif
--------------------------------------------------------------------------------
/tests/mocks/database/ci_test.sqlite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/tests/mocks/database/ci_test.sqlite
--------------------------------------------------------------------------------
/user_guide_src/source/images/arrow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/images/arrow.gif
--------------------------------------------------------------------------------
/user_guide_src/source/images/file.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/images/file.gif
--------------------------------------------------------------------------------
/user_guide_src/source/images/smile.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/images/smile.gif
--------------------------------------------------------------------------------
/user_guide_src/source/helpers/index.rst:
--------------------------------------------------------------------------------
1 | #######
2 | Helpers
3 | #######
4 |
5 | .. toctree::
6 | :glob:
7 | :titlesonly:
8 |
9 | *
--------------------------------------------------------------------------------
/user_guide_src/source/images/ci-icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/images/ci-icon.ico
--------------------------------------------------------------------------------
/user_guide_src/source/images/ci_logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/images/ci_logo.jpg
--------------------------------------------------------------------------------
/user_guide_src/source/images/folder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/images/folder.gif
--------------------------------------------------------------------------------
/user_guide_src/source/libraries/index.rst:
--------------------------------------------------------------------------------
1 | #########
2 | Libraries
3 | #########
4 |
5 | .. toctree::
6 | :glob:
7 | :titlesonly:
8 |
9 | *
--------------------------------------------------------------------------------
/user_guide_src/source/images/appflowchart.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/images/appflowchart.gif
--------------------------------------------------------------------------------
/system/.htaccess:
--------------------------------------------------------------------------------
1 |
Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /user_guide_src/source/_themes/sphinx_rtd_theme/static/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/_themes/sphinx_rtd_theme/static/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/fonts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/core/compat/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /user_guide_src/source/_themes/sphinx_rtd_theme/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | stylesheet = css/citheme.css 4 | 5 | [options] 6 | typekit_id = hiw1hhg 7 | analytics_id = 8 | sticky_navigation = False 9 | -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Session/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /user_guide_src/source/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /user_guide_src/source/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/errors/cli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/errors/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/cubrid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/ibase/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/mysqli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/oci8/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/sqlsrv/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Cache/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Javascript/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /user_guide_src/source/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/faruqi/CodeIgniter/develop/user_guide_src/source/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /system/database/drivers/postgre/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /system/libraries/Session/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /user_guide_src/source/_themes/sphinx_rtd_theme/static/css/citheme.css: -------------------------------------------------------------------------------- 1 | @import 'theme.css'; 2 | 3 | .highlighted { 4 | padding: 0px !important; 5 | font-weight: inherit !important; 6 | background-color: #f1d40f !important; 7 | } -------------------------------------------------------------------------------- /system/database/drivers/pdo/subdrivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/mocks/core/utf8.php: -------------------------------------------------------------------------------- 1 | config[$key]) ? $this->config[$key] : FALSE; 12 | } 13 | 14 | public function load($file, $arg2 = FALSE, $arg3 = FALSE) 15 | { 16 | $this->loaded[] = $file; 17 | return TRUE; 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /tests/mocks/libraries/encrypt.php: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | {%- endif %} 10 | -------------------------------------------------------------------------------- /user_guide_src/source/overview/index.rst: -------------------------------------------------------------------------------- 1 | #################### 2 | CodeIgniter Overview 3 | #################### 4 | 5 | The following pages describe the broad concepts behind CodeIgniter: 6 | 7 | .. toctree:: 8 | :titlesonly: 9 | 10 | Getting StartedSeverity:
10 |Message:
11 |Filename:
12 |Line Number:
13 | 14 | 15 | 16 |Backtrace:
17 | 18 | 19 | 20 | 21 |
22 | File:
23 | Line:
24 | Function:
25 |
Type:
10 |Message:
11 |Filename: getFile(); ?>
12 |Line Number: getLine(); ?>
13 | 14 | 15 | 16 |Backtrace:
17 | getTrace() as $error): ?> 18 | 19 | 20 | 21 |
22 | File:
23 | Line:
24 | Function:
25 |
Here is a paragraph & an entity ({).
'; 48 | $string = xml_convert($string); 49 | echo $string; 50 | 51 | outputs: 52 | 53 | .. code-block:: html 54 | 55 | <p>Here is a paragraph & an entity ({).</p> -------------------------------------------------------------------------------- /user_guide_src/source/database/call_function.rst: -------------------------------------------------------------------------------- 1 | ##################### 2 | Custom Function Calls 3 | ##################### 4 | 5 | $this->db->call_function(); 6 | ============================ 7 | 8 | This function enables you to call PHP database functions that are not 9 | natively included in CodeIgniter, in a platform independent manner. For 10 | example, let's say you want to call the mysql_get_client_info() 11 | function, which is **not** natively supported by CodeIgniter. You could 12 | do so like this:: 13 | 14 | $this->db->call_function('get_client_info'); 15 | 16 | You must supply the name of the function, **without** the mysql\_ 17 | prefix, in the first parameter. The prefix is added automatically based 18 | on which database driver is currently being used. This permits you to 19 | run the same function on different database platforms. Obviously not all 20 | function calls are identical between platforms, so there are limits to 21 | how useful this function can be in terms of portability. 22 | 23 | Any parameters needed by the function you are calling will be added to 24 | the second parameter. 25 | 26 | :: 27 | 28 | $this->db->call_function('some_function', $param1, $param2, etc..); 29 | 30 | Often, you will either need to supply a database connection ID or a 31 | database result ID. The connection ID can be accessed using:: 32 | 33 | $this->db->conn_id; 34 | 35 | The result ID can be accessed from within your result object, like this:: 36 | 37 | $query = $this->db->query("SOME QUERY"); 38 | 39 | $query->result_id; -------------------------------------------------------------------------------- /user_guide_src/source/overview/mvc.rst: -------------------------------------------------------------------------------- 1 | ##################### 2 | Model-View-Controller 3 | ##################### 4 | 5 | CodeIgniter is based on the Model-View-Controller development pattern. 6 | MVC is a software approach that separates application logic from 7 | presentation. In practice, it permits your web pages to contain minimal 8 | scripting since the presentation is separate from the PHP scripting. 9 | 10 | - The **Model** represents your data structures. Typically your model 11 | classes will contain functions that help you retrieve, insert, and 12 | update information in your database. 13 | - The **View** is the information that is being presented to a user. A 14 | View will normally be a web page, but in CodeIgniter, a view can also 15 | be a page fragment like a header or footer. It can also be an RSS 16 | page, or any other type of "page". 17 | - The **Controller** serves as an *intermediary* between the Model, the 18 | View, and any other resources needed to process the HTTP request and 19 | generate a web page. 20 | 21 | CodeIgniter has a fairly loose approach to MVC since Models are not 22 | required. If you don't need the added separation, or find that 23 | maintaining models requires more complexity than you want, you can 24 | ignore them and build your application minimally using Controllers and 25 | Views. CodeIgniter also enables you to incorporate your own existing 26 | scripts, or even develop core libraries for the system, enabling you to 27 | work in a way that makes the most sense to you. 28 | -------------------------------------------------------------------------------- /user_guide_src/source/installation/upgrade_172.rst: -------------------------------------------------------------------------------- 1 | ############################# 2 | Upgrading from 1.7.1 to 1.7.2 3 | ############################# 4 | 5 | Before performing an update you should take your site offline by 6 | replacing the index.php file with a static one. 7 | 8 | Step 1: Update your CodeIgniter files 9 | ===================================== 10 | 11 | Replace these files and directories in your "system" folder with the new 12 | versions: 13 | 14 | - system/codeigniter 15 | - system/database 16 | - system/helpers 17 | - system/language 18 | - system/libraries 19 | - index.php 20 | 21 | .. note:: If you have any custom developed files in these folders please 22 | make copies of them first. 23 | 24 | Step 2: Remove header() from 404 error template 25 | =============================================== 26 | 27 | If you are using header() in your 404 error template, such as the case 28 | with the default error_404.php template shown below, remove that line 29 | of code. 30 | 31 | :: 32 | 33 | 34 | 35 | 404 status headers are now properly handled in the show_404() method 36 | itself. 37 | 38 | Step 3: Confirm your system_path 39 | ================================= 40 | 41 | In your updated index.php file, confirm that the $system_path variable 42 | is set to your application's system folder. 43 | 44 | Step 4: Update your user guide 45 | ============================== 46 | 47 | Please replace your local copy of the user guide with the new version, 48 | including the image files. 49 | -------------------------------------------------------------------------------- /user_guide_src/source/general/welcome.rst: -------------------------------------------------------------------------------- 1 | ###################### 2 | Welcome to CodeIgniter 3 | ###################### 4 | 5 | CodeIgniter is an Application Development Framework - a toolkit - for 6 | people who build web sites using PHP. Its goal is to enable you to 7 | develop projects much faster than you could if you were writing code 8 | from scratch, by providing a rich set of libraries for commonly needed 9 | tasks, as well as a simple interface and logical structure to access 10 | these libraries. CodeIgniter lets you creatively focus on your project 11 | by minimizing the amount of code needed for a given task. 12 | 13 | *********************** 14 | Who is CodeIgniter For? 15 | *********************** 16 | 17 | CodeIgniter is right for you if: 18 | 19 | - You want a framework with a small footprint. 20 | - You need exceptional performance. 21 | - You need broad compatibility with standard hosting accounts that run 22 | a variety of PHP versions and configurations. 23 | - You want a framework that requires nearly zero configuration. 24 | - You want a framework that does not require you to use the command 25 | line. 26 | - You want a framework that does not require you to adhere to 27 | restrictive coding rules. 28 | - You are not interested in large-scale monolithic libraries like PEAR. 29 | - You do not want to be forced to learn a templating language (although 30 | a template parser is optionally available if you desire one). 31 | - You eschew complexity, favoring simple solutions. 32 | - You need clear, thorough documentation. -------------------------------------------------------------------------------- /user_guide_src/source/helpers/number_helper.rst: -------------------------------------------------------------------------------- 1 | ############# 2 | Number Helper 3 | ############# 4 | 5 | The Number Helper file contains functions that help you work with 6 | numeric data. 7 | 8 | .. contents:: 9 | :local: 10 | 11 | .. raw:: html 12 | 13 | 14 | 15 | Loading this Helper 16 | =================== 17 | 18 | This helper is loaded using the following code:: 19 | 20 | $this->load->helper('number'); 21 | 22 | Available Functions 23 | =================== 24 | 25 | The following functions are available: 26 | 27 | 28 | .. php:function:: byte_format($num[, $precision = 1]) 29 | 30 | :param mixed $num: Number of bytes 31 | :param int $precision: Floating point precision 32 | :returns: Formatted data size string 33 | :rtype: string 34 | 35 | Formats numbers as bytes, based on size, and adds the appropriate 36 | suffix. Examples:: 37 | 38 | echo byte_format(456); // Returns 456 Bytes 39 | echo byte_format(4567); // Returns 4.5 KB 40 | echo byte_format(45678); // Returns 44.6 KB 41 | echo byte_format(456789); // Returns 447.8 KB 42 | echo byte_format(3456789); // Returns 3.3 MB 43 | echo byte_format(12345678912345); // Returns 1.8 GB 44 | echo byte_format(123456789123456789); // Returns 11,228.3 TB 45 | 46 | An optional second parameter allows you to set the precision of the 47 | result:: 48 | 49 | echo byte_format(45678, 2); // Returns 44.61 KB 50 | 51 | .. note:: The text generated by this function is found in the following 52 | language file: *language/