Changeset 3

Show
Ignore:
Timestamp:
2011年01月29日 15時50分50秒 (less than one hour ago)
Author:
kenji
Message:

Load user_guide into user_guide.

Files:
2 added
7 removed
148 modified

Legend:

Unmodified
Added
Removed
  • TabularUnified changelog.html

    • Property svn:executable set to *
    r2 r3  
    5858<h1>Change Log</h1> 
    5959 
     60<p>The <img src="images/reactor-bullet.png" width="16" height="16" alt="Reactor Marker" /> indicates items that were contributed to CodeIgniter via CodeIgniter Reactor.</p> 
     61 
    6062<h2>Version 2.0.0</h2> 
    61 <p>Release Date: not yet released<br /> 
    62 Hg Tag: </p> 
     63<p>Release Date: January 28, 2011<br /> 
     64Hg Tag: v2.0.0</p> 
    6365 
    6466<ul> 
    6567        <li>General changes 
    6668                <ul> 
    67                         <li>PHP 4 support is deprecated.  Features new to 2.0.0 may not support PHP 4, and all legacy features will no longer support PHP 4 as of 2.1.0.</li> 
     69                        <li>PHP 4 support is removed. CodeIgniter now requires PHP 5.1.6.</li> 
    6870                        <li>Scaffolding, having been deprecated for a number of versions, has been removed.</li> 
    6971                        <li>Plugins have been removed, in favor of Helpers.  The CAPTCHA plugin has been converted to a Helper and <a href="./helpers/captcha_helper.html">documented</a>.  The JavaScript calendar plugin was removed due to the ready availability of great JavaScript calendars, particularly with jQuery.</li> 
    7072                        <li>Added new special Library type: <a href="./general/drivers.html">Drivers</a>.</li> 
     73                        <li class="reactor">Added full query-string support.  See the config file for details.</li> 
     74                        <li>Moved the application folder outside of the system folder.</li> 
     75                        <li>Moved system/cache and system/logs directories to the application directory.</li> 
    7176                        <li>Added routing overrides to the main index.php file, enabling the normal routing to be overridden on a per "index" file basis.</li> 
    7277                        <li>Added the ability to set config values (or override config values) directly from data set in the main index.php file.  This allows a single application to be used with multiple front controllers, each having its own config values.</li> 
    7378                        <li>Added <kbd>$config['directory_trigger']</kbd> to the config file so that a controller sub-directory can be specified when running _GET strings instead of URI segments.</li> 
    7479                        <li>Added ability to set "Package" paths - specific paths where the Loader and Config classes should try to look first for a requested file.  This allows distribution of sub-applications with their own libraries, models, config files, etc. in a single "package" directory.  See the <a href="libraries/loader.html">Loader class</a> documentation for more details.</li> 
    75                         <li>In-development code is now hosted at <a href="http://bitbucket.org/ellislab/codeigniter/">BitBucket</a>.</li> 
     80                        <li>In-development code is now hosted at <a href="http://bitbucket.org/ellislab/codeigniter-reactor/">BitBucket</a>.</li> 
     81                        <li>Removed the deprecated Validation Class.</li> 
     82                        <li>Added CI_ Prefix to all core classes.</li> 
     83                        <li class="reactor">Package paths can now be set in application/config/autoload.php.</li> 
     84                        <li class="reactor"><a href="libraries/file_uploading.html">Upload library</a> file_name can now be set without an extension, the extension will be taken from the uploaded file instead of the given name.</li> 
     85                        <li class="reactor">In <a href="database/forge.html">Database Forge</a> the name can be omitted from $this->dbforge->modify_column()'s 2nd param if you aren't changing the name.</li> 
     86                        <li class="reactor"><kbd>$config['base_url']</kbd> is now empty by default and will guess what it should be.</li> 
     87                        <li class="reactor">Enabled full Command Line Interface compatibility with <kbd>config['uri_protocol'] = 'CLI';</kbd>.</li> 
    7688                </ul> 
    7789        <li>Libraries 
    7890                <ul> 
     91                        <li class="reactor">Added a <a href="libraries/caching.html">Cache driver</a> with APC, memcached, and file-based support.</li> 
     92                        <li>Added <var>$prefix</var>, <var>$suffix</var> and <var>$first_url</var> properties to <a href="./libraries/pagination.html">Pagination library</a>.</li> 
     93                        <li>Added the ability to suppress first, previous, next, last, and page links by setting their values to FALSE in the <a href="./libraries/pagination.html">Pagination library</a>.</li> 
    7994                        <li>Added <a href="./libraries/security.html">Security library</a>, which now contains the <dfn>xss_clean</dfn> function, <dfn>filename_security</dfn> function and other security related functions.</li> 
    8095                        <li>Added CSRF (Cross-site Reference Forgery) protection to the <a href="./libraries/security.html">Security library</a>.</li> 
     
    90105                        <li>Added Chrome and Flock to the list of detectable browsers by <kbd>browser()</kbd> in the <a href="libraries/user_agent.html">User Agent Class</a>.</li> 
    91106                        <li>The <a href="libraries/unit_testing.html">Unit Test Class</a> now has an optional "notes" field available to it, and allows for discrete display of test result items using <kbd>$this->unit->set_test_items()</kbd>.</li> 
    92                         <li>Added a <kbd>$xss_clean</kbd> class variable to the XMLRPC library, enabling control over the use of the Security library's <kbd>xss_clean()</kbd> method.</li>                      
     107                        <li>Added a <kbd>$xss_clean</kbd> class variable to the XMLRPC library, enabling control over the use of the Security library's <kbd>xss_clean()</kbd> method.</li> 
     108                        <li>Added a <kbd>download()</kbd> method to the <a href="libraries/ftp.html">FTP library</a></li> 
     109                        <li>Changed <kbd>do_xss_clean()</kbd> to return FALSE if the uploaded file fails XSS checks.</li> 
     110                        <li>Added stripslashes() and trim()ing of double quotes from $_FILES type value to standardize input in Upload library.</li> 
     111                        <li>Added a second parameter (boolean) to <kbd>$this->zip->read_dir('/path/to/directory', FALSE)</kbd> to remove the preceding trail of empty folders when creating a Zip archive. This example would contain a zip with "directory" and all of its contents.</li> 
     112                        <li>Added ability in the Image Library to handle PNG transparency for resize operations when using the GD lib.</li> 
     113                        <li>Modified the Session class to prevent use if no encryption key is set in the config file.</li> 
     114                        <li>Added a new config item to the Session class <kbd>sess_expire_on_close</kbd> to allow sessions to auto-expire when the browser window is closed.</li> 
     115                        <li>Improved performance of the Encryption library on servers where Mcrypt is available.</li> 
     116                        <li>Changed the default encryption mode in the Encryption library to CBC.</li> 
     117                        <li>Added an <kbd>encode_from_legacy()</kbd> method to provide a way to transition encrypted data from CodeIgniter 1.x to CodeIgniter 2.x. 
     118                                Please see the <a href="./installation/upgrade_200.html">upgrade instructions</a> for details.</li> 
     119                        <li>Altered Form_Validation library to allow for method chaining on <kbd>set_rules()</kbd>, <kbd>set_message()</kbd> and <kbd>set_error_delimiters()</kbd> functions.</li> 
     120                        <li>Altered Email Library to allow for method chaining.</li> 
     121                        <li>Added <kbd>request_headers()</kbd>, <kbd>get_request_header()</kbd> and <kbd>is_ajax_request()</kbd> to the input class.</li> 
     122                        <li class="reactor">Altered <a href="libraries/user_agent.html">User agent library</a> so that <kbd>is_browser()</kbd>, <kbd>is_mobile()</kbd> and <kbd>is_robot()</kbd> can optionally check for a specific browser or mobile device.</li> 
    93123                </ul> 
    94124        </li> 
    95125        <li>Database 
    96126                <ul> 
    97                         <li>Added <kbd>swap_pre</kbd> value to <a href="./database/configuration.html">database configuration</a>.</li> 
     127                        <li><a href="./database/configuration.html">database configuration</a>.</li> 
    98128                        <li>Added <kbd>autoinit</kbd> value to <a href="./database/configuration.html">database configuration</a>.</li> 
    99129                        <li>Added <kbd>stricton</kbd> value to <a href="./database/configuration.html">database configuration</a>.</li> 
     
    102132                        <li>Fixed a bug where driver specific table identifier protection could lead to malformed queries in the <kbd>field_data()</kbd> functions.</li> 
    103133                        <li>Fixed a bug where an undefined class variable was referenced in database drivers.</li> 
     134                        <li>Modified the database errors to show the filename and line number of the problematic query.</li> 
     135                        <li>Removed the following deprecated functions: orwhere, orlike, groupby, orhaving, orderby, getwhere.</li> 
     136                        <li>Removed deprecated _drop_database() and _create_database() functions from the db utility drivers.</li> 
     137                        <li>Improved dbforge create_table() function for the Postgres driver.</li> 
    104138                </ul> 
    105139        </li> 
    106140        <li>Helpers 
    107141                <ul> 
    108                         <li>Added <kbd>convert_accented_characters()</kbd> function to  <a href="./helpers/text_helper.html">text helper</a>.</li> 
     142                        <li>Added <kbd>convert_accented_characters()</kbd> function to <a href="./helpers/text_helper.html">text helper</a>.</li> 
    109143                        <li>Added accept-charset to the list of inserted attributes of <kbd>form_open()</kbd> in the <a href="helpers/form_helper.html">Form Helper</a>.</li> 
    110144                        <li>Deprecated the <kbd>dohash()</kbd> function in favour of <kbd>do_hash()</kbd> for naming consistency.</li> 
     
    112146                                by default so as to encourage responsible use (this function can cause server performance issues when used without caution).</li> 
    113147                        <li>Modified the second parameter of <kbd>directory_map()</kbd> in the <a href="helpers/directory_helper.html">Directory Helper</a> to accept an integer to specify recursion depth.</li> 
    114                         <li>Modified <kbd>delete_files()</kbd> in the <a href="helpers/file_helper.html">File Helper</a> to return FALSE on failure.</li>  
     148                        <li>Modified <kbd>delete_files()</kbd> in the <a href="helpers/file_helper.html">File Helper</a> to return FALSE on failure.</li> 
    115149                        <li>Added an optional second parameter to <kbd>byte_format()</kbd> in the <a href="helpers/number_helper.html">Number Helper</a> to allow for decimal precision.</li> 
    116150                        <li>Added alpha, and sha1 string types to <kbd>random_string()</kbd> in the <a href="helpers/string_helper.html">String Helper</a>.</li> 
     151                        <li>Modified <kbd>prep_url()</kbd> so as to not prepend http:// if the supplied string already has a scheme.</li> 
     152                        <li>Modified <kbd>get_file_info</kbd> in the file helper, changing filectime() to filemtime() for dates.</li> 
     153                        <li>Modified <kbd>smiley_js()</kbd> to add optional third parameter to return only the javascript with no script tags.</li> 
     154                        <li>The <kbd>img()</kbd> function of the <a href="./helpers/html_helper.html">HTML helper</a> will now generate an empty string as an alt attribute if one is not provided.</li> 
     155                        <li>If CSRF is enabled in the application config file, <kbd>form_open()</kbd> will automatically insert it as a hidden field.</li> 
     156                        <li>Added <kbd>sanitize_filename()</kbd> into the <a href="./helpers/security_helper.html">Security helper</a>.</li> 
     157                        <li>Added <kbd>ellipsize()</kbd> to the <a href="./helpers/text_helper.html">Text Helper</a></li> 
     158                        <li>Added <kbd>elements()</kbd> to the <a href="./helpers/array_helper.html">Array Helper</a></li> 
    117159                </ul> 
    118160        </li> 
    119161        <li>Other Changes 
    120162                <ul> 
     163                        <li>Added an optional second parameter to <kbd>show_404()</kbd> to disable logging.</li> 
    121164                        <li>Updated loader to automatically apply the sub-class prefix as an option when loading classes.  Class names can be prefixed with the standard "CI_" or the same prefix as the subclass prefix, or no prefix at all.</li> 
    122165                        <li>Increased randomness with <kbd>is_really_writable()</kbd> to avoid file collisions when hundreds or thousands of requests occur at once.</li> 
     
    125168                        <li>Added "default" to the list <a href="general/reserved_names.html">Reserved Names</a>.</li> 
    126169                        <li>Added 'application/x-msdownload' for .exe files and ''application/x-gzip-compressed' for .tgz files to config/mimes.php.</li> 
     170                        <li>Updated the output library to no longer compress output or send content-length headers if the server runs with zlib.output_compression enabled.</li> 
     171                        <li>Eliminated a call to is_really_writable() on each request unless it is really needed (Output caching)</li> 
    127172                        <li>Documented <kbd>append_output()</kbd> in the <a href="libraries/output.html">Output Class</a>.</li> 
    128173                        <li>Documented a second argument in the <kbd>decode()</kbd> function for the <a href="libraries/encryption.html">Encryption Class</a>.</li> 
    129                         <li>Documentd db->close().</li> 
     174                        <li>Documented db->close().</li> 
     175                        <li>Updated the router to support a default route with any number of segments.</li> 
     176                        <li>Moved _remove_invisible_characters() function from the <a href="libraries/security.html">Security Library</a> to <a href="general/common_functions.html">common functions.</a></li> 
     177                        <li>Added audio/mpeg3 as a valid mime type for MP3.</li> 
    130178                </ul> 
    131179        </li> 
     
    134182<h3>Bug fixes for 2.0.0</h3> 
    135183<ul> 
     184        <li class="reactor">Fixed a bug where you could not change the User-Agent when sending email.</li> 
     185        <li>Fixed a bug where the Output class would send incorrect cached output for controllers implementing their own <dfn>_output()</dfn> method.</li> 
    136186        <li>Fixed a bug where a failed query would not have a saved query execution time causing errors in the Profiler</li> 
    137187        <li>Fixed a bug that was writing log entries when multiple identical helpers and plugins were loaded.</li> 
     
    149199        <li>Fixed a bug (#10470) where <kdb>get_mime_by_extension()</kbd> was case sensitive.</li> 
    150200        <li>Fixed a bug where some error messages for the SQLite and Oracle drivers would not display.</li> 
     201        <li>Fixed a bug where files created with the Zip Library would result in file creation dates of 1980.</li> 
     202        <li>Fixed a bug in the Session library that would result in PHP error when attempting to store values with objects.</li> 
     203        <li>Fixed a bug where extending the Controller class would result in a fatal PHP error.</li> 
     204        <li>Fixed a PHP Strict Standards Error in the index.php file.</li> 
     205        <li>Fixed a bug where getimagesize() was being needlessly checked on non-image files in is_allowed_type().</li> 
     206        <li>Fixed a bug in the Encryption library where an empty key was not triggering an error.</li> 
     207        <li>Fixed a bug in the Email library where CC and BCC recipients were not reset when using the clear() method (#109).</li> 
     208        <li>Fixed a bug in the URL Helper where prep_url() could cause a PHP error on PHP versions &lt; 5.1.2.</li> 
     209        <li>Added a log message in core/output if the cache directory config value was not found.</li> 
     210        <li>Fixed a bug where multiple libraries could not be loaded by passing an array to load-&gt;library()</li> 
     211        <li>Fixed a bug in the html helper where too much white space was rendered between the src and alt tags in the img() function.</li> 
     212        <li>Fixed a bug in the profilers _compile_queries() function.</li> 
     213        <li>Fixed a bug in the date helper where the DATE_ISO8601 variable was returning an incorrectly formatted date string.</li> 
    151214</ul> 
    152215 
     
    189252                        <li>Modified <a href="general/errors.html">show_404()</a> to send 404 status code, removing non-CGI compatible header() statement from error_404.php template.</li> 
    190253                        <li>Added set_status_header() to the <a href="general/common_functions.html">Common functions<a> to allow use when the Output class is unavailable.</li> 
    191                         <li>Added is_php() to <a href="general/common_functions.html">Common functions</a> to facilitate PHP version comparisons.</p>  
     254                        <li>Added is_php() to <a href="general/common_functions.html">Common functions</a> to facilitate PHP version comparisons.</p> 
    192255                        <li>Added 2 CodeIgniter "cheatsheets" (thanks to DesignFellow.com for this contribution).</li> 
    193256                </ul> 
     
    214277        <li>Fixed a bug in form_prep() causing it to not preserve entities in the user's original input when called back into a form element</li> 
    215278        <li>Fixed a bug in _protect_identifiers() where the swap prefix ($swap_pre) was not being observed.</li> 
    216         <li>Fixed a bug where the 400 status header sent with the 'disallowed URI characters' was not compatible with CGI environments.</li>  
     279        <li>Fixed a bug where the 400 status header sent with the 'disallowed URI characters' was not compatible with CGI environments.</li> 
    217280        <li>Fixed a bug in the typography class where heading tags could have paragraph tags inserted when using auto_typography().</li> 
    218281</ul> 
     
    325388        <li>Database 
    326389                <ul> 
    327                         <li>Improved Active Record class to allow full path column and table names:  hostname.database.table.column.  Also improved the alias handling.</li>                     
     390                        <li>Improved Active Record class to allow full path column and table names:  hostname.database.table.column.  Also improved the alias handling.</li> 
    328391                        <li>Improved how table and column names are escaped and prefixed.  It now honors full path names when adding prefixes and escaping.</li> 
    329392                        <li>Added Active Record caching feature to "update" and "delete" functions.</li> 
     
    487550                        <li>Added the ability to set CRLF settings via config in the <a href="libraries/email.html">Email</a> class.</li> 
    488551                        <li><a href="libraries/unit_testing.html">Unit Testing</a> results are now colour coded, and a change was made to the default template of results.</li> 
    489                         <li>Added a valid_emails rule to the <a href="libraries/validation.html">Validation</a> class.</li> 
     552                        <li>Added a valid_emails rule to the Validation class.</li> 
    490553                        <li>The <a href="libraries/zip.html">Zip class</a> now exits within <kbd>download()</kbd>.</li> 
    491554                        <li>The <a href="libraries/zip.html">Zip class</a> has undergone a substantial re-write for speed and clarity (thanks stanleyxu for the hard work and code contribution in bug report #3425!)</li> 
     
    515578                        <li>Added ability for <a href="libraries/input.html">xss_clean()</a> to accept arrays.</li> 
    516579                        <li>Removed closing PHP tags from all PHP files to avoid accidental output and potential 'cannot modify headers' errors.</li> 
    517                         <li>Removed &quot;scripts&quot; from the auto-load search path. Scripts were deprecated  
     580                        <li>Removed &quot;scripts&quot; from the auto-load search path. Scripts were deprecated 
    518581                                in Version 1.4.1 (September 21, 2006). If you still need to use them for legacy reasons, they must now be manually loaded in each Controller.</li> 
    519582                        <li>Added a <a href="general/reserved_names.html">Reserved Names</a> page to the userguide, and migrated reserved controller names into it.</li> 
     
    561624Hg Tag: 1.6.1</p> 
    562625<ul> 
    563         <li>Active Record  
     626        <li>Active Record 
    564627                <ul> 
    565628                        <li>Added <a href="./database/active_record.html#caching">Active Record Caching</a>.</li> 
     
    636699                </ul> 
    637700        </li> 
    638          
     701 
    639702        <li>Other Database Related 
    640703                <ul> 
     
    652715                </ul> 
    653716        </li> 
    654          
     717 
    655718        <li>Core changes 
    656719                <ul> 
     
    658721                        <li>Added the ability to <a href="./general/autoloader.html">auto-load</a> <a href="./general/models.html">Models</a>.</li> 
    659722                        <li>Reorganized the URI and Routes classes for better clarity.</li> 
    660                         <li>Added Compat.php to allow function overrides for older versions of PHP or PHP environments missing certain extensions / libraries</li>    
     723                        <li>Added Compat.php to allow function overrides for older versions of PHP or PHP environments missing certain extensions / libraries</li> 
    661724                        <li>Added memory usage, GET, URI string data, and individual query execution time to Profiler output.</li> 
    662725                        <li>Deprecated Scaffolding.</li> 
     
    664727                </ul> 
    665728        </li> 
    666          
     729 
    667730        <li>Libraries 
    668731                <ul> 
     
    673736                        <li>Added a language entry for valid_ip validation error.</li> 
    674737                        <li>Modified prep_for_form() in the Validation class to accept arrays, adding support for POST array validation (via callbacks only)</li> 
    675                         <li>Added an &quot;integer&quot; rule into the <a href="./libraries/validation.html">Validation</a> library.</li> 
    676                         <li>Added valid_base64() to the <a href="./libraries/validation.html">Validation</a> library.</li> 
     738                        <li>Added an &quot;integer&quot; rule into the Validation library.</li> 
     739                        <li>Added valid_base64() to the Validation library.</li> 
    677740                        <li>Documented clear() in the <a href="../libraries/image_lib.html">Image Processing</a> library.</li> 
    678741                        <li>Changed the behaviour of custom callbacks so that they no longer trigger the &quot;required&quot; rule. </li> 
     
    684747                </ul> 
    685748        </li> 
    686          
     749 
    687750        <li>Helpers &amp; Plugins 
    688751                <ul> 
     
    700763                </ul> 
    701764        </li> 
    702          
    703            
     765 
     766 
    704767        <li>Documentation Changes 
    705768                <ul> 
     
    718781 
    719782<h3>Bug fixes for Version 1.6.0</h3> 
    720          
     783 
    721784<ul> 
    722785        <li>Fixed a bug (#1813) preventing using $CI->db in the same application with returned database objects.</li> 
     
    760823        <li>Fixed a bug in the <a href="./libraries/file_uploading.html">upload library</a> when allowed_files wasn't defined.</li> 
    761824        <li>Fixed a bug in <kbd>word_wrap()</kbd> of the Text Helper that incorrectly referenced an object. </li> 
    762         <li>Fixed a bug in <a href="./libraries/validation.html">Validation</a> where <kbd>valid_ip()</kbd> wasn't called properly.</li> 
    763         <li>Fixed a bug in <a href="./libraries/validation.html">Validation</a> where individual error messages for checkboxes wasn't supported.</li> 
     825        <li>Fixed a bug in Validation where <kbd>valid_ip()</kbd> wasn't called properly.</li> 
     826        <li>Fixed a bug in Validation where individual error messages for checkboxes wasn't supported.</li> 
    764827        <li>Fixed a bug in captcha calling an invalid PHP function.</li> 
    765828        <li>Fixed a bug in the cookie helper "set_cookie" function.  It was not honoring the config settings.</li> 
     
    11641227Next Topic:&nbsp;&nbsp;<a href="./general/credits.html">Credits</a> 
    11651228</p> 
    1166 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     1229<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    11671230</div> 
    11681231 
    
          
  • TabularUnified database/active_record.html

    • Property svn:executable set to *
    r2 r3  
    117117 
    118118<p>Please read the about the where function below for more information.</p> 
    119 <p class="important">Note: get_where() was formerly known as getwhere(), which has been deprecated</p> 
     119<p class="important">Note: get_where() was formerly known as getwhere(), which has been removed</p> 
    120120 
    121121<h2>$this->db->select();</h2> 
     
    221221        <code>$this->db->where('name', $name); 
    222222        <br /><br />// Produces: WHERE name = 'Joe'     </code> 
    223          
     223 
    224224        <p>Notice that the equal sign is added for you.</p> 
    225          
     225 
    226226        <p>If you use multiple function calls they will be chained together with <var>AND</var> between them:</p> 
    227          
     227 
    228228        <code>$this->db->where('name', $name);<br /> 
    229229        $this->db->where('title', $title);<br /> 
    230230        $this->db->where('status', $status); 
    231         <br /><br />// WHERE name 'Joe' AND title = 'boss' AND status = 'active'        </code> </li> 
    232          
     231        <br /><br />// WHERE name = 'Joe' AND title = 'boss' AND status = 'active'      </code> </li> 
     232 
    233233        <li><strong>Custom key/value method:</strong> 
    234          
     234 
    235235        <p>You can include an operator in the first parameter in order to control the comparison:</p> 
    236          
     236 
    237237        <code>$this->db->where('name !=', $name);<br /> 
    238238        $this->db->where('id <', $id); 
     
    243243        <code> 
    244244        $array = array('name' => $name, 'title' => $title, 'status' => $status);<br /><br /> 
    245          
     245 
    246246        $this->db->where($array); 
    247247        <br /><br />// Produces: WHERE name = 'Joe' AND title = 'boss' AND status = 'active'    </code> 
     
    251251        <code> 
    252252        $array = array('name !=' => $name, 'id <' => $id, 'date >' => $date);<br /><br /> 
    253          
     253 
    254254        $this->db->where($array);</code>        </li> 
    255255                <li><strong>Custom string:</strong> 
    256                  
     256 
    257257                <p>You can write your own clauses manually:</p> 
    258258 
     
    264264 
    265265<p>$this-&gt;db-&gt;where() accepts an optional third parameter. If you set it to FALSE, CodeIgniter will not try to protect your field or table names with backticks.</p> 
    266 <p><code>               $this-&gt;db-&gt;where('MATCH (field) AGAINST (&quot;value&quot;)', NULL, FALSE);<br /> 
     266<p><code>               $this-&gt;db-&gt;where('MATCH (field) AGAINST (&quot;value&quot;)', NULL, FALSE);<br /> 
    267267</code></p> 
    268268<h2>$this->db->or_where();</h2> 
     
    275275<br />// Produces: WHERE name != 'Joe' OR id > 50</code> 
    276276 
    277 <p class="important">Note: or_where() was formerly known as orwhere(), which has been deprecated.</p> 
     277<p class="important">Note: or_where() was formerly known as orwhere(), which has been removed.</p> 
    278278 
    279279 
     
    291291        $this->db->or_where_in('username', $names);<br /> 
    292292        // Produces: OR username IN ('Frank', 'Todd', 'James')</code></p> 
    293          
     293 
    294294<h2>$this->db->where_not_in();</h2> 
    295295<p>Generates a WHERE field NOT IN ('item', 'item') SQL query joined with AND if appropriate</p> 
     
    317317        <code>$this->db->like('title', 'match'); 
    318318        <br /><br />// Produces: WHERE title LIKE '%match%'     </code> 
    319                  
     319 
    320320        <p>If you use multiple function calls they will be chained together with <var>AND</var> between them:</p> 
    321          
     321 
    322322        <code>$this->db->like('title', 'match');<br /> 
    323323        $this->db->like('body', 'match'); 
    324324        <br /><br /> 
    325325        // WHERE title LIKE '%match%' AND  body LIKE '%match%</code> 
    326         If you want to control where the wildcard (%) is placed, you can use an optional third argument. Your options are 'before', 'after' and 'both' (which is the default).  
     326        If you want to control where the wildcard (%) is placed, you can use an optional third argument. Your options are 'before', 'after' and 'both' (which is the default). 
    327327        <code>$this->db->like('title', 'match', 'before'); 
    328328        <br /> 
     
    334334        $this-&gt;db-&gt;like('title', 'match', 'both'); <br /> 
    335335// Produces: WHERE title LIKE '%match%' </code> </li> 
    336          
     336 
    337337        <li><strong>Associative array method:</strong> 
    338338 
    339339        <code> 
    340340        $array = array('title' => $match, 'page1' => $match, 'page2' => $match);<br /><br /> 
    341          
     341 
    342342        $this->db->like($array); 
    343343        <br /><br />// WHERE title LIKE '%match%' AND  page1 LIKE '%match%' AND  page2 LIKE '%match%'</code></li> 
    344344        </ol> 
    345          
    346          
     345 
     346 
    347347<h2>$this->db->or_like();</h2> 
    348348<p>This function is identical to the one above, except that multiple instances are joined by OR:</p> 
     
    356356 
    357357 
    358          
    359 <p class="important">Note: or_like() was formerly known as orlike(), which has been deprecated.</p> 
     358 
     359<p class="important">Note: or_like() was formerly known as orlike(), which has been removed.</p> 
    360360<h2>$this-&gt;db-&gt;not_like();</h2> 
    361361<p>This function is identical to <strong>like()</strong>, except that it generates NOT LIKE statements:</p> 
     
    371371<h2>$this->db->group_by();</h2> 
    372372<p>Permits you to write the GROUP BY portion of your query:</p> 
    373          
     373 
    374374<code>$this->db->group_by("title"); 
    375375<br /><br />// Produces: GROUP BY title 
     
    377377 
    378378<p>You can also pass an array of multiple values as well:</p> 
    379          
     379 
    380380<code>$this->db->group_by(array("title", "date")); 
    381381<br /> 
    382382<br />// Produces: GROUP BY title, date</code> 
    383          
    384 <p class="important">Note: group_by() was formerly known as groupby(), which has been deprecated. </p> 
     383 
     384<p class="important">Note: group_by() was formerly known as groupby(), which has been removed. </p> 
    385385 
    386386<h2> $this-&gt;db-&gt;distinct();<br /> 
     
    392392        // Produces: SELECT DISTINCT * FROM table</code></p> 
    393393<h2>$this->db->having();</h2> 
    394 <p>Permits you to write the HAVING portion of your query. There are 2 possible syntaxe, 1 argument or 2:</p> 
    395          
     394<p>Permits you to write the HAVING portion of your query. There are 2 possible syntaxes, 1 argument or 2:</p> 
     395 
    396396<code>$this->db->having('user_id = 45'); 
    397397<br /> 
     
    402402<br /> 
    403403</code> 
    404          
     404 
    405405<p>You can also pass an array of multiple values as well:</p> 
    406406 
     
    420420<p>Lets you set an ORDER BY clause. The first parameter contains the name of the column you would like to order by. 
    421421The second parameter lets you set the direction of the result.  Options are <kbd>asc</kbd> or <kbd>desc</kbd>, or <kbd>random</kbd>. </p> 
    422          
     422 
    423423<code>$this->db->order_by("title", "desc"); 
    424424<br /> 
     
    427427 
    428428<p>You can also pass your own string in the first parameter:</p> 
    429          
     429 
    430430<code>$this->db->order_by('title desc, name asc'); 
    431431<br /> 
     
    440440        // Produces: ORDER BY title DESC, name ASC 
    441441        </code></p> 
    442 <p class="important">Note: order_by() was formerly known as orderby(), which has been deprecated.</p> 
     442<p class="important">Note: order_by() was formerly known as orderby(), which has been removed.</p> 
    443443<p class="important">Note: random ordering is not currently supported in Oracle or MSSQL drivers. These will default to 'ASC'.</p> 
    444444<h2>$this->db->limit();</h2> 
     
    480480 
    481481 
    482          
     482 
    483483<a name="insert">&nbsp;</a> 
    484484<h1>Inserting Data</h1> 
    485          
     485 
    486486<h2>$this->db->insert();</h2> 
    487487<p>Generates an insert string based on the data you supply, and runs the query. You can either pass an 
     
    521521 
    522522<p class="important"><strong>Note:</strong> All values are escaped automatically producing safer queries.</p> 
    523          
    524          
    525          
     523 
     524 
     525 
    526526 
    527527<h2>$this->db->set();</h2> 
     
    577577 
    578578 
    579          
     579 
    580580<a name="update">&nbsp;</a> 
    581581<h1>Updating Data</h1> 
    582          
     582 
    583583<h2>$this->db->update();</h2> 
    584584<p>Generates an update string and runs the query based on the data you supply.  You can pass an 
     
    626626 
    627627<p class="important"><strong>Note:</strong> All values are escaped automatically producing safer queries.</p> 
    628          
     628 
    629629<p>You'll notice the use of the <dfn>$this->db->where()</dfn> function, enabling you to set the WHERE clause. 
    630630You can optionally pass this information directly into the update function as a string:</p> 
     
    635635 
    636636<code>$this->db->update('mytable', $data, array('id' => $id));</code> 
    637          
     637 
    638638<p>You may also use the <dfn>$this->db->set()</dfn> function described above when performing updates.</p> 
    639639 
    640          
     640 
    641641<a name="delete">&nbsp;</a> 
    642642<h1>Deleting Data</h1> 
    643643 
    644644 
    645          
     645 
    646646<h2>$this->db->delete();</h2> 
    647647<p>Generates a delete SQL string and runs the query.</p> 
     
    737737//Generates:  SELECT `field2` FROM (`tablename`)</code></p> 
    738738 
    739 <p class="important"> <strong>Note:</strong> The following statements can be cached: select, from, join, where, like, groupby, having, orderby, set</p> 
     739<p class="important"> <strong>Note:</strong> The following statements can be cached: select, from, join, where, like, group_by, having, order_by, set</p> 
    740740<p>&nbsp;</p> 
    741741</div> 
     
    751751Next Topic:&nbsp;&nbsp;<a href="transactions.html">Transactions</a> 
    752752</p> 
    753 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     753<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    754754</div> 
    755755 
    
          
  • TabularUnified database/caching.html

    • Property svn:executable set to *
    r2 r3  
    214214Next Topic:&nbsp;&nbsp;<a href="forge.html">Database manipulation with Database Forge</a> 
    215215</p> 
    216 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     216<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    217217</div> 
    218218 
    
          
  • TabularUnified database/call_function.html

    • Property svn:executable set to *
    r2 r3  
    9898 
    9999 
    100          
     100 
    101101 
    102102</div> 
     
    112112Next Topic:&nbsp;&nbsp;<a href="caching.html">Query Caching</a> 
    113113</p> 
    114 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     114<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    115115</div> 
    116116 
    
          
  • TabularUnified database/configuration.html

    • Property svn:executable set to *
    r2 r3  
    139139<li><strong>autoinit</strong> - Whether or not to automatically initialize the database.</li> 
    140140<li><strong>stricton</strong> - TRUE/FALSE (boolean) - Whether to force "Strict Mode" connections, good for ensuring strict SQL while developing an application.</li> 
    141 <li><strong>port</strong> - The database port number.  Currently only used with the Postgres driver. To use this value you have to add a line to the database config array.<code>$db['default']['port'] =  5432;</code> 
     141<li><strong>port</strong> - The database port number.  To use this value you have to add a line to the database config array.<code>$db['default']['port'] =  5432;</code> 
    142142</ul> 
    143143 
     
    160160Next Topic:&nbsp;&nbsp;<a href="connecting.html">Connecting to your Database</a> 
    161161</p> 
    162 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     162<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    163163</div> 
    164164 
    
          
  • TabularUnified database/connecting.html

    • Property svn:executable set to *
    r2 r3  
    182182Next Topic:&nbsp;&nbsp;<a href="queries.html">Queries</a> 
    183183</p> 
    184 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     184<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    185185</div> 
    186186 
    
          
  • TabularUnified database/examples.html

    • Property svn:executable set to *
    r2 r3  
    211211Next Topic:&nbsp;&nbsp;<a href="configuration.html">Database Configuration</a> 
    212212</p> 
    213 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     213<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    214214</div> 
    215215 
    
          
  • TabularUnified database/fields.html

    • Property svn:executable set to *
    r2 r3  
    143143<li>type - the type of the column</li> 
    144144</ul> 
    145          
     145 
    146146 
    147147</div> 
     
    157157Next Topic:&nbsp;&nbsp;<a href="call_function.html">Custom Function Calls</a> 
    158158</p> 
    159 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     159<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    160160</div> 
    161161 
    
          
  • TabularUnified database/forge.html

    • Property svn:executable set to *
    r2 r3  
    206206<p><code>$this-&gt;dbforge-&gt;drop_column('table_name', 'column_to_drop');</code></p> 
    207207<h2>$this-&gt;dbforge-&gt;modify_column()</h2> 
    208 <p>The usage of this function is identical to add_column(), except it alters an existing column rather than adding a new one. In order to use it you must add a &quot;name&quot; key into the field defining array.</p> 
     208<p>The usage of this function is identical to add_column(), except it alters an existing column rather than adding a new one. In order to change the name you can add a &quot;name&quot; key into the field defining array.</p> 
    209209<p><code>$fields = array(<br /> 
    210210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'old_name' =&gt; array(<br /> 
     
    228228<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    229229Next Topic:&nbsp;&nbsp;<a href="utilities.html">Database Utilities Class</a><a href="../libraries/email.html"></a></p> 
    230 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     230<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    231231</div> 
    232232 
    
          
  • TabularUnified database/helpers.html

    • Property svn:executable set to *
    r2 r3  
    145145Next Topic:&nbsp;&nbsp;<a href="active_record.html">Active Record Pattern</a> 
    146146</p> 
    147 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     147<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    148148</div> 
    149149 
    
          
  • TabularUnified database/index.html

    • Property svn:executable set to *
    r2 r3  
    7979                <li><a href="utilities.html">Database Utilities Class</a></li> 
    8080        </ul> 
    81          
     81 
    8282 
    8383</div> 
     
    9393Next Topic:&nbsp;&nbsp;<a href="examples.html">Quick Start: Usage Examples</a> 
    9494</p> 
    95 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     95<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9696</div> 
    9797 
    
          
  • TabularUnified database/queries.html

    • Property svn:executable set to *
    r2 r3  
    114114 
    115115<code>$search = '20% raise';<br /> 
    116 $sql = "SELECT id FROM table WHERE column LIKE '%".$this->db->escape_like_str($search)."%'";</code> 
     116$sql = "SELECT id FROM table WHERE column LIKE '%".$this->db->escape_like_str($search)."%'";</code></li> 
    117117 
    118118</ol> 
     
    133133<p class="important">The secondary benefit of using binds is that the values are automatically escaped, producing safer queries.  You don't have to remember to manually escape data; the engine does it automatically for you.</p> 
    134134 
    135          
     135 
    136136 
    137137</div> 
     
    147147Next Topic:&nbsp;&nbsp;<a href="results.html">Query Results</a> 
    148148</p> 
    149 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     149<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    150150</div> 
    151151 
    
          
  • TabularUnified database/results.html

    • Property svn:executable set to *
    r2 r3  
    6666 
    6767        <h2>result()</h2> 
    68          
     68 
    6969        <p>This function returns the query result as an array of <strong>objects</strong>, or <strong>an empty array</strong> on failure. 
    70          
     70 
    7171        Typically you'll use this in a foreach loop, like this:</p> 
    72          
     72 
    7373        <code> 
    7474        $query = $this->db->query("YOUR QUERY");<br /> 
     
    8080        &nbsp;&nbsp;&nbsp;echo $row->body;<br /> 
    8181        }</code> 
    82          
     82 
    8383        <p>The above <dfn>function</dfn> is an alias of <dfn>result_object()</dfn>.</p> 
    8484 
    8585        <p>If you run queries that might <strong>not</strong> produce a result, you are encouraged to test the result first:</p> 
    86          
     86 
    8787        <code> 
    8888        $query = $this->db->query("YOUR QUERY");<br /> 
     
    9898        } 
    9999        </code> 
    100          
     100 
    101101        <h2>result_array()</h2> 
    102          
     102 
    103103        <p>This function returns the query result as a pure array, or an empty array when no result is produced.  Typically you'll use this in a foreach loop, like this:</p> 
    104104        <code> 
     
    114114 
    115115        <h2>row()</h2> 
    116          
     116 
    117117        <p>This function returns a single result row.  If your query has more than one row, it returns only the first row. 
    118118        The result is returned as an <strong>object</strong>.  Here's a usage example:</p> 
     
    129129        } 
    130130        </code> 
    131          
     131 
    132132        <p>If you want a specific row returned you can submit the row number as a digit in the first parameter:</p> 
    133          
     133 
    134134        <code>$row = $query->row(<dfn>5</dfn>);</code> 
    135135 
     
    152152        </code> 
    153153 
    154          
     154 
    155155        <p>If you want a specific row returned you can submit the row number as a digit in the first parameter:</p> 
    156          
     156 
    157157        <code>$row = $query->row_array(<dfn>5</dfn>);</code> 
    158          
    159  
    160         <p>In addition, you can walk forward/backwards/first/last through your results using these variations:</p> 
     158 
     159 
     160        <p>In addition, you can walk forward/backwards/first/last through your results using these variations:</p> 
    161161 
    162162<p> 
     
    218218 
    219219 
    220          
     220 
    221221 
    222222</div> 
     
    232232Next Topic:&nbsp;&nbsp;<a href="helpers.html">Query Helper Functions</a> 
    233233</p> 
    234 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     234<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    235235</div> 
    236236 
    
          
  • TabularUnified database/table_data.html

    • Property svn:executable set to *
    r2 r3  
    9393 
    9494 
    95          
     95 
    9696 
    9797</div> 
     
    107107Next Topic:&nbsp;&nbsp;<a href="fields.html"> Field Metadata</a> 
    108108</p> 
    109 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     109<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    110110</div> 
    111111 
    
          
  • TabularUnified database/transactions.html

    • Property svn:executable set to *
    r2 r3  
    194194Next Topic:&nbsp;&nbsp;<a href="table_data.html">Table Metadata</a> 
    195195</p> 
    196 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     196<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    197197</div> 
    198198 
    
          
  • TabularUnified database/utilities.html

    • Property svn:executable set to *
    r2 r3  
    308308<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    309309Next Topic:&nbsp;&nbsp;<a href="../libraries/email.html"> Email Class</a></p> 
    310 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     310<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    311311</div> 
    312312 
    
          
  • TabularUnified doc_style/index.html

    • Property svn:executable set to *
    r2 r3  
    5858<h1>Writing Documentation</h1> 
    5959 
    60 <p>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.</p> 
     60<p>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.</p> 
    6161 
    6262<h2>Files</h2> 
     
    7979<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    8080<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
     81Next Topic:&nbsp;&nbsp;<a href="../libraries/benchmark.html">Benchmarking Class</a> 
    8182</p> 
    82 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     83<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    8384</div> 
    8485 
    
          
  • TabularUnified doc_style/template.html

    • Property svn:executable set to *
    r2 r3  
    5555 
    5656<p class="important"><strong>Important:</strong>&nbsp; This is an important note with <kbd>EMPHASIS</kbd>.</p> 
    57          
     57 
    5858<p>Features:</p> 
    5959 
     
    122122Next Topic:&nbsp;&nbsp;<a href="#">Next Class</a> 
    123123</p> 
    124 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     124<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    125125</div> 
    126126 
    
          
  • TabularUnified general/alternative_php.html

    • Property svn:executable set to *
    r2 r3  
    5959 
    6060<p>If you do not utilize CodeIgniter's <a href="../libraries/parser.html">template engine</a>, you'll be using pure PHP 
    61 in your View files.  To minimize the PHP code in these files, and to make it easier to identify the code blocks it is recommended that you use  
     61in your View files.  To minimize the PHP code in these files, and to make it easier to identify the code blocks it is recommended that you use 
    6262PHPs alternative syntax for control structures and short tag echo statements.  If you are not familiar with this syntax, it allows you to eliminate the braces from your code, 
    6363and eliminate "echo" statements.</p> 
     
    6666 
    6767<p><strong>Note:</strong> If you find that the syntax described in this page does not work on your server it might 
    68 be that "short tags" are disabled in your PHP ini file. CodeIgniter will optionally rewrite short tags on-the-fly,  
     68be that "short tags" are disabled in your PHP ini file. CodeIgniter will optionally rewrite short tags on-the-fly, 
    6969allowing you to use that syntax even if your server doesn't support it.  This feature can be enabled in your 
    7070<dfn>config/config.php</dfn> file.</p> 
     
    141141Next Topic:&nbsp;&nbsp;<a href="security.html">Security</a> 
    142142</p> 
    143 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     143<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    144144</div> 
    145145 
    
          
  • TabularUnified general/ancillary_classes.html

    • Property svn:executable set to *
    r2 r3  
    111111Next Topic:&nbsp;&nbsp;<a href="autoloader.html">Auto-loading Resources</a> 
    112112</p> 
    113 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     113<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    114114</div> 
    115115 
    
          
  • TabularUnified general/autoloader.html

    • Property svn:executable set to *
    r2 r3  
    9494<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    9595Next Topic:&nbsp;&nbsp;<a href="common_functions.html">Common Functions</a></p> 
    96 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     96<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9797</div> 
    9898 
    
          
  • TabularUnified general/caching.html

    • Property svn:executable set to *
    r2 r3  
    109109Next Topic:&nbsp;&nbsp;<a href="profiling.html">Profiling Your Application</a> 
    110110</p> 
    111 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     111<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    112112</div> 
    113113 
    
          
  • TabularUnified general/common_functions.html

    • Property svn:executable set to *
    r2 r3  
    100100<p><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">See here</a> for a full list of headers.</p> 
    101101 
     102 
     103<h2>remove_invisible_characters(<var>$str</var>)</h2> 
     104<p>This function prevents inserting null characters between ascii characters, like Java\0script.</p> 
     105 
     106 
     107 
    102108</div> 
    103109 
     
    113119<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    114120Next Topic:&nbsp;&nbsp;<a href="routing.html">URI Routing</a></p> 
    115 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     121<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    116122</div> 
    117123 
    
          
  • TabularUnified general/controllers.html

    • Property svn:executable set to *
    r2 r3  
    9797<textarea class="textarea" style="width:100%" cols="50" rows="10"> 
    9898&lt;?php 
    99 class Blog extends Controller { 
     99class Blog extends CI_Controller { 
    100100 
    101101        function index() 
     
    120120 
    121121<code>&lt;?php<br /> 
    122 class <var>Blog</var> extends Controller {<br /> 
     122class <var>Blog</var> extends CI_Controller {<br /> 
    123123<br /> 
    124124}<br /> 
     
    128128 
    129129<code>&lt;?php<br /> 
    130 class <var>blog</var> extends Controller {<br /> 
     130class <var>blog</var> extends CI_Controller {<br /> 
    131131<br /> 
    132132}<br /> 
     
    152152<textarea class="textarea" style="width:100%" cols="50" rows="15"> 
    153153&lt;?php 
    154 class Blog extends Controller { 
     154class Blog extends CI_Controller { 
    155155 
    156156        function index() 
     
    186186<code> 
    187187&lt;?php<br /> 
    188 class Products extends Controller {<br /> 
     188class Products extends CI_Controller {<br /> 
    189189<br /> 
    190190&nbsp;&nbsp;&nbsp;&nbsp;function shoes($sandals, $id)<br /> 
     
    230230allowing you to define your own function routing rules.</p> 
    231231 
    232 <p>The overridden function call (typically the second segment of the URI) will be passed as a parameter the <kbd>_remap()</kbd> function:</p> 
     232<p>The overridden function call (typically the second segment of the URI) will be passed as a parameter to the <kbd>_remap()</kbd> function:</p> 
    233233 
    234234<code>function _remap(<var>$method</var>)<br /> 
     
    244244}</code> 
    245245 
    246  
    247  
     246<p>Any extra segments after the method name are passed into <kbd>_remap()</kbd> as an optional second parameter. This array can be used in combination with PHP's <a href="http://php.net/call_user_func_array">call_user_func_array</a> to emulate CodeIgniter's default behavior.</p> 
     247 
     248<code>function _remap($method, $params = array())<br /> 
     249{<br /> 
     250&nbsp;&nbsp;&nbsp;&nbsp;$method = 'process_'.$method;<br /> 
     251&nbsp;&nbsp;&nbsp;&nbsp;if (method_exists($this, $method)<br /> 
     252&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
     253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return call_user_func_array(array($this, $method), $params);<br /> 
     254&nbsp;&nbsp;&nbsp;&nbsp;}<br /> 
     255&nbsp;&nbsp;&nbsp;&nbsp;show_404();<br /> 
     256}</code> 
    248257 
    249258 
     
    269278<p class="important">Please note that your <dfn>_output()</dfn> function will receive the data in its finalized state.  Benchmark and memory usage data will be rendered, 
    270279cache files written (if you have caching enabled), and headers will be sent (if you use that <a href="../libraries/output.html">feature</a>) 
    271 before it is handed off to the _output() function.  If you are using this feature the page execution timer and memory usage stats might not be perfectly accurate 
     280before it is handed off to the _output() function.<br /> 
     281<br /> 
     282To have your controller's output cached properly, its <dfn>_output()</dfn> method can use:<br /> 
     283 
     284<code>if ($this-&gt;output-&gt;cache_expiration &gt; 0)<br /> 
     285{<br /> 
     286&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;output-&gt;_write_cache($output);<br /> 
     287}</code> 
     288 
     289If you are using this feature the page execution timer and memory usage stats might not be perfectly accurate 
    272290since they will not take into acccount any further processing you do.  For an alternate way to control output <em>before</em> any of the final processing is done, please see 
    273291the available methods in the <a href="../libraries/output.html">Output Class</a>.</p> 
     
    321339<p>If you intend to use a constructor in any of your Controllers, you <strong>MUST</strong> place the following line of code in it:</p> 
    322340 
    323 <code>parent::Controller();</code> 
     341<code>parent::__construct();</code> 
    324342 
    325343<p>The reason this line is necessary is because your local constructor will be overriding the one in the parent controller class so we need to manually call it.</p> 
    326  
    327  
    328 <p>If you are not familiar with constructors, in PHP 4, a <em>constructor</em> is simply a function that has the exact same name as the class:</p> 
    329344 
    330345<code> 
    331346&lt;?php<br /> 
    332 class <kbd>Blog</kbd> extends Controller {<br /> 
    333 <br /> 
    334 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function <kbd>Blog()</kbd><br /> 
    335 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
    336 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<var>parent::Controller();</var><br /> 
    337 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /> 
    338 }<br /> 
    339 ?&gt;</code> 
    340  
    341 <p>In PHP 5, constructors use the following syntax:</p> 
    342  
    343 <code> 
    344 &lt;?php<br /> 
    345 class <kbd>Blog</kbd> extends Controller {<br /> 
     347class <kbd>Blog</kbd> extends CI_Controller {<br /> 
    346348<br /> 
    347349&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function <kbd>__construct()</kbd><br /> 
    348350&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
    349 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<var>parent::Controller();</var><br /> 
     351&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<var>parent::__construct();</var><br /> 
     352&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Your own constructor code<br /> 
    350353&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /> 
    351354}<br /> 
     
    379382<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    380383Next Topic:&nbsp;&nbsp;<a href="reserved_names.html">Reserved Names</a></p> 
    381 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     384<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    382385</div> 
    383386 
    
          
  • TabularUnified general/core_classes.html

    • Property svn:executable set to *
    r2 r3  
    8686<li>Router</li> 
    8787<li>URI</li> 
     88<li>Utf8</li> 
    8889</ul> 
    8990 
    9091<h2>Replacing Core Classes</h2> 
    9192 
    92 <p>To use one of your own system classes instead of a default one simply place your version inside your local <dfn>application/libraries</dfn> directory:</p> 
     93<p>To use one of your own system classes instead of a default one simply place your version inside your local <dfn>application/core</dfn> directory:</p> 
    9394 
    94 <code>application/libraries/<dfn>some-class.php</dfn></code> 
     95<code>application/core/<dfn>some-class.php</dfn></code> 
    9596 
    9697<p>If this directory does not exist you can create it.</p> 
     
    119120</ul> 
    120121 
    121 <p>For example, to extend the native <kbd>Input</kbd> class you'll create a file named <dfn>application/libraries/</dfn><kbd>MY_Input.php</kbd>, and declare your class with:</p> 
     122<p>For example, to extend the native <kbd>Input</kbd> class you'll create a file named <dfn>application/core/</dfn><kbd>MY_Input.php</kbd>, and declare your class with:</p> 
    122123 
    123124<code> 
     
    131132class MY_Input extends CI_Input {<br /> 
    132133<br /> 
    133 &nbsp;&nbsp;&nbsp;&nbsp;function MY_Input()<br /> 
     134&nbsp;&nbsp;&nbsp;&nbsp;function __construct()<br /> 
    134135&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
    135 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::CI_Input();<br /> 
     136&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct();<br /> 
    136137&nbsp;&nbsp;&nbsp;&nbsp;}<br /> 
    137138}</code> 
     
    145146<code>class Welcome extends MY_Controller {<br /> 
    146147<br /> 
    147 &nbsp;&nbsp;&nbsp;&nbsp;function Welcome()<br /> 
     148&nbsp;&nbsp;&nbsp;&nbsp;function __construct()<br /> 
    148149&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
    149 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::MY_Controller();<br /> 
     150&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct();<br /> 
    150151&nbsp;&nbsp;&nbsp;&nbsp;}<br /> 
    151152<br /> 
     
    179180Next Topic:&nbsp;&nbsp;<a href="hooks.html">Hooks - Extending the Core</a> 
    180181</p> 
    181 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     182<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    182183</div> 
    183184 
    
          
  • TabularUnified general/creating_drivers.html

    • Property svn:executable set to *
    r2 r3  
    5858<h1>Creating Drivers</h1> 
    5959 
     60<h2>Driver Directory and File Structure</h2> 
     61 
     62<p>Sample driver directory and file structure layout:</p> 
     63 
     64<ul> 
     65        <li>/application/libraries/Driver_name 
     66                <ul> 
     67                        <li>Driver_name.php</li> 
     68                        <li>drivers 
     69                                <ul> 
     70                                        <li>Driver_name_subclass_1.php</li> 
     71                                        <li>Driver_name_subclass_2.php</li> 
     72                                        <li>Driver_name_subclass_3.php</li> 
     73                                </ul> 
     74                        </li> 
     75                </ul> 
     76        </li> 
     77</ul> 
     78 
     79<p class="important"><strong>NOTE:</strong> In order to maintain compatibility on case-sensitive file systems, the <samp>Driver_name</samp> directory must be <var>ucfirst()</var></p> 
     80 
    6081<!-- @todo write this! --> 
    6182 
     
    7394Next Topic:&nbsp;&nbsp;<a href="core_classes.html">Creating Core System Classes</a> 
    7495</p> 
    75 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     96<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    7697</div> 
    7798 
    
          
  • TabularUnified general/creating_libraries.html

    • Property svn:executable set to *
    r2 r3  
    7676<p>The page below explains these three concepts in detail.</p> 
    7777 
    78 <p class="important"><strong>Note:</strong> The Database classes can not be extended or replaced with your own classes, 
    79 nor can the Loader class in PHP 4.  All other classes are able to be replaced/extended.</p> 
     78<p class="important"><strong>Note:</strong> The Database classes can not be extended or replaced with your own classes.  All other classes are able to be replaced/extended.</p> 
    8079 
    8180 
     
    142141class Someclass {<br /> 
    143142<br /> 
    144 &nbsp;&nbsp;&nbsp;&nbsp;function Someclass($params)<br /> 
     143&nbsp;&nbsp;&nbsp;&nbsp;function __construct($params)<br /> 
    145144&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
    146145&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Do something with $params<br /> 
     
    198197<br /> 
    199198<br /> 
    200 <kbd>This is very important.</kbd> Assigning by reference allows you to use the original CodeIgniter object rather than creating a copy of it. 
    201 <br /><br /> 
    202 <kbd>Also, please note:</kbd> If you are running PHP 4 it's usually best to avoid calling <dfn>get_instance()</dfn> 
    203 from within your class constructors.  PHP 4 has trouble referencing the CI super object within application constructors  
    204 since objects do not exist until the class is fully instantiated.</p> 
     199<kbd>This is very important.</kbd> Assigning by reference allows you to use the original CodeIgniter object rather than creating a copy of it.</p> 
    205200 
    206201 
     
    249244class MY_Email extends CI_Email {<br /> 
    250245<br /> 
    251 &nbsp;&nbsp;&nbsp;&nbsp;function My_Email()<br /> 
     246&nbsp;&nbsp;&nbsp;&nbsp;function __construct()<br /> 
    252247&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
    253 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::CI_Email();<br /> 
     248&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct();<br /> 
    254249&nbsp;&nbsp;&nbsp;&nbsp;}<br /> 
    255250}</code> 
     
    292287Next Topic:&nbsp;&nbsp;<a href="drivers.html">Using CodeIgniter Drivers</a> 
    293288</p> 
    294 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     289<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    295290</div> 
    296291 
    
          
  • TabularUnified general/credits.html

    • Property svn:executable set to *
    r2 r3  
    5959 
    6060<p>CodeIgniter was originally developed by <a href="http://www.ellislab.com/">Rick Ellis</a> (CEO of 
    61 <a href="http://ellislab.com/">Ellislab, Inc.</a>).  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  
     61<a href="http://ellislab.com/">EllisLab, Inc.</a>).  The framework was written for performance in the real 
     62world, with many of the class libraries, helpers, and sub-systems borrowed from the code-base of 
    6363<a href="http://www.expressionengine.com/">ExpressionEngine</a>.</p> 
    6464 
     
    8080Next Topic:&nbsp;&nbsp;<a href="../installation/downloads.html">Downloading CodeIgniter</a> 
    8181</p> 
    82 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     82<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    8383</div> 
    8484 
    
          
  • TabularUnified general/drivers.html

    • Property svn:executable set to *
    r2 r3  
    7676 
    7777<p>The child classes, the drivers themselves, can then be called directly through the parent class, without initializing them:</p> 
    78          
     78 
    7979<code>$this->some_parent->child_one->some_method();<br /> 
    8080$this->some_parent->child_two->another_method();</code> 
     
    9898Next Topic:&nbsp;&nbsp;<a href="creating_drivers.html">Creating Drivers</a> 
    9999</p> 
    100 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     100<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    101101</div> 
    102102 
    
          
  • TabularUnified general/errors.html

    • Property svn:executable set to *
    r2 r3  
    7777<p>The optional parameter $status_code determines what HTTP status code should be sent with the error.</p> 
    7878 
    79 <h2>show_404('<var>page</var>')</h2> 
     79<h2>show_404('<var>page</var>' [, '<var>log_error</var>'])</h2> 
    8080<p>This function will display the 404 error message supplied to it using the following error template:</p> 
    8181<p><dfn>application/errors/</dfn><kbd>error_404.php</kbd></p> 
     
    8383<p>The function expects the string passed to it to be the file path to the page that isn't found. 
    8484Note that CodeIgniter automatically shows 404 messages if controllers are not found.</p> 
     85 
     86<p>CodeIgniter automatically logs any show_404() calls. Setting the optional second parameter to FALSE will skip logging.</p> 
    8587 
    8688 
     
    132134Next Topic:&nbsp;&nbsp;<a href="caching.html">Page Caching</a> 
    133135</p> 
    134 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     136<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    135137</div> 
    136138 
    
          
  • TabularUnified general/helpers.html

    • Property svn:executable set to *
    r2 r3  
    7070a Helper is to load it.  Once loaded, it becomes globally available in your <a href="../general/controllers.html">controller</a> and <a href="../general/views.html">views</a>.</p> 
    7171 
    72 <p>Helpers are typically stored in your <dfn>system/helpers</dfn>, or <dfn>system/application/helpers </dfn>directory.  CodeIgniter will look first in your <dfn>system/application/helpers</dfn> 
     72<p>Helpers are typically stored in your <dfn>system/helpers</dfn>, or <dfn>application/helpers </dfn>directory. CodeIgniter will look first in your <dfn>application/helpers</dfn> 
    7373directory.  If the directory does not exist or the specified helper is not located there CI will instead look in your global 
    7474<dfn>system/helpers</dfn> folder.</p> 
     
    179179Next Topic:&nbsp;&nbsp;<a href="libraries.html">Using Libraries</a> 
    180180</p> 
    181 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     181<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    182182</div> 
    183183 
    
          
  • TabularUnified general/hooks.html

    • Property svn:executable set to *
    r2 r3  
    159159Next Topic:&nbsp;&nbsp;<a href="autoloader.html">Auto-loading Resources</a> 
    160160</p> 
    161 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     161<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    162162</div> 
    163163 
    
          
  • TabularUnified general/libraries.html

    • Property svn:executable set to *
    r2 r3  
    6464<code>$this->load->library('<var>class name</var>'); </code> 
    6565 
    66 <p>Where <var>class name</var> is the name of the class you want to invoke.  For example, to load the validation class you would do this:</p> 
     66<p>Where <var>class name</var> is the name of the class you want to invoke.  For example, to load the form validation class you would do this:</p> 
    6767 
    68 <code>$this->load->library('<var>validation</var>'); </code> 
     68<code>$this->load->library('<var>form_validation</var>'); </code> 
    6969 
    7070<p>Once initialized you can use it as indicated in the user guide page corresponding to that class.</p> 
     71 
     72<p>Additionally, multiple libraries can be loaded at the same time by passing an array of libraries to the load function.</p> 
     73 
     74<code>$this->load->library(array('<var>email</var>', '<var>table</var>'));</code> 
    7175 
    7276<h2>Creating Your Own Libraries</h2> 
     
    8892Next Topic:&nbsp;&nbsp;<a href="creating_libraries.html">Creating Libraries</a> 
    8993</p> 
    90 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     94<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9195</div> 
    9296 
    
          
  • TabularUnified general/managing_apps.html

    • Property svn:executable set to *
    r2 r3  
    5959 
    6060<p>By default it is assumed that you only intend to use CodeIgniter to manage one application, which you will build in your 
    61 <dfn>system/application/</dfn> directory.  It is possible, however, to have multiple sets of applications that share a single 
     61<dfn>application/</dfn> directory.  It is possible, however, to have multiple sets of applications that share a single 
    6262CodeIgniter installation, or even to rename or relocate your <dfn>application</dfn> folder.</p> 
    6363 
     
    7171<h2>Relocating your Application Folder</h2> 
    7272 
    73 <p>It is possible to move your <dfn>application</dfn> folder to a different location on your server than your <kbd>system</kbd> folder.  
     73<p>It is possible to move your <dfn>application</dfn> folder to a different location on your server than your <kbd>system</kbd> folder. 
    7474To do so open your main <kbd>index.php</kbd> and set a <em>full server path</em> in the <samp>$application_folder</samp> variable.</p> 
    7575 
     
    8080<h2>Running Multiple Applications with one CodeIgniter Installation</h2> 
    8181 
    82 <p>If you would like to share a common CodeIgniter installation to manage several different applications simply  
     82<p>If you would like to share a common CodeIgniter installation to manage several different applications simply 
    8383put all of the directories located inside your <kbd>application</kbd> folder into their 
    8484own sub-folder.</p> 
    8585 
    86 <p>For example, let's say you want to create two applications, "foo" and "bar".  You will structure your 
    87 application folder like this:</p> 
     86<p>For example, let's say you want to create two applications, "foo" and "bar".  You could structure your 
     87application folders like this:</p> 
    8888 
    89 <code>system/application/<var>foo</var>/<br /> 
    90 system/application/<var>foo</var>/config/<br /> 
    91 system/application/<var>foo</var>/controllers/<br /> 
    92 system/application/<var>foo</var>/errors/<br /> 
    93 system/application/<var>foo</var>/libraries/<br /> 
    94 system/application/<var>foo</var>/models/<br /> 
    95 system/application/<var>foo</var>/views/<br /> 
    96 system/application/<samp>bar</samp>/<br /> 
    97 system/application/<samp>bar</samp>/config/<br /> 
    98 system/application/<samp>bar</samp>/controllers/<br /> 
    99 system/application/<samp>bar</samp>/errors/<br /> 
    100 system/application/<samp>bar</samp>/libraries/<br /> 
    101 system/application/<samp>bar</samp>/models/<br /> 
    102 system/application/<samp>bar</samp>/views/</code> 
     89<code>applications/<var>foo</var>/<br /> 
     90applications/<var>foo</var>/config/<br /> 
     91applications/<var>foo</var>/controllers/<br /> 
     92applications/<var>foo</var>/errors/<br /> 
     93applications/<var>foo</var>/libraries/<br /> 
     94applications/<var>foo</var>/models/<br /> 
     95applications/<var>foo</var>/views/<br /> 
     96applications/<samp>bar</samp>/<br /> 
     97applications/<samp>bar</samp>/config/<br /> 
     98applications/<samp>bar</samp>/controllers/<br /> 
     99applications/<samp>bar</samp>/errors/<br /> 
     100applications/<samp>bar</samp>/libraries/<br /> 
     101applications/<samp>bar</samp>/models/<br /> 
     102applications/<samp>bar</samp>/views/</code> 
    103103 
    104104 
     
    106106variable.  For example, to select the "foo" application for use you would do this:</p> 
    107107 
    108 <code>$application_folder = "application/foo";</code> 
     108<code>$application_folder = "applications/foo";</code> 
    109109 
    110 <p class="important"><strong>Note:</strong>&nbsp; Each of your applications will need its own <dfn>index.php</dfn> file which  
     110<p class="important"><strong>Note:</strong>&nbsp; Each of your applications will need its own <dfn>index.php</dfn> file which 
    111111calls the desired application.  The index.php file can be named anything you want.</p> 
    112112 
     
    127127Next Topic:&nbsp;&nbsp;<a href="alternative_php.html">Alternative PHP Syntax</a> 
    128128</p> 
    129 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     129<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    130130</div> 
    131131 
    
          
  • TabularUnified general/models.html

    • Property svn:executable set to *
    r2 r3  
    7878 
    7979<code> 
    80 class&nbsp;Blogmodel&nbsp;extends&nbsp;Model&nbsp;{<br /> 
     80class&nbsp;Blogmodel&nbsp;extends&nbsp;CI_Model&nbsp;{<br /> 
    8181<br /> 
    8282&nbsp;&nbsp;&nbsp;&nbsp;var $title&nbsp;&nbsp; = '';<br /> 
     
    8484&nbsp;&nbsp;&nbsp;&nbsp;var $date&nbsp;&nbsp;&nbsp; = '';<br /> 
    8585<br /> 
    86 &nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;Blogmodel()<br /> 
     86&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;__construct()<br /> 
    8787&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
    8888&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Call the Model constructor<br /> 
    89 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::Model();<br /> 
     89&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct();<br /> 
    9090&nbsp;&nbsp;&nbsp;&nbsp;}<br /> 
    9191&nbsp;&nbsp;&nbsp;&nbsp;<br /> 
     
    127127 
    128128<code> 
    129 class&nbsp;<var>Model_name</var>&nbsp;extends&nbsp;Model&nbsp;{<br /> 
    130 <br /> 
    131 &nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;<var>Model_name</var>()<br /> 
    132 &nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
    133 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::Model();<br /> 
     129class&nbsp;<var>Model_name</var>&nbsp;extends&nbsp;CI_Model&nbsp;{<br /> 
     130<br /> 
     131&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;<var>__construct</var>()<br /> 
     132&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
     133&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct();<br /> 
    134134&nbsp;&nbsp;&nbsp;&nbsp;}<br /> 
    135135}</code> 
     
    141141 
    142142<code> 
    143 class&nbsp;<var>User_model</var>&nbsp;extends&nbsp;Model&nbsp;{<br /> 
    144 <br /> 
    145 &nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;<var>User_model</var>()<br /> 
    146 &nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
    147 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::Model();<br /> 
     143class&nbsp;<var>User_model</var>&nbsp;extends&nbsp;CI_Model&nbsp;{<br /> 
     144<br /> 
     145&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;<var>__construct</var>()<br /> 
     146&nbsp;&nbsp;&nbsp;&nbsp;{<br /> 
     147&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct();<br /> 
    148148&nbsp;&nbsp;&nbsp;&nbsp;}<br /> 
    149149}</code> 
     
    189189 
    190190<code> 
    191 class&nbsp;Blog_controller&nbsp;extends&nbsp;Controller&nbsp;{<br /> 
     191class&nbsp;Blog_controller&nbsp;extends&nbsp;CI_Controller&nbsp;{<br /> 
    192192<br /> 
    193193&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;blog()<br /> 
     
    213213and connectivity settings, as defined in your database config file will be used: 
    214214 
    215         <code>$this->load->model('<var>Model_name</var>', '', <kbd>TRUE</kbd>);</code>   
     215        <code>$this->load->model('<var>Model_name</var>', '', <kbd>TRUE</kbd>);</code> 
    216216        </li> 
    217217 
     
    245245Next Topic:&nbsp;&nbsp;<a href="helpers.html">Helpers</a> 
    246246</p> 
    247 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     247<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    248248</div> 
    249249 
    
          
  • TabularUnified general/profiling.html

    • Property svn:executable set to *
    r2 r3  
    8888<h2>Enabling and Disabling Profiler Sections</h2> 
    8989 
    90         <p>Each section of Profiler data can be enabled or disabled by setting a corresponding config variable to <var>TRUE</var> or <var>FALSE</var>.  This can be done one of two ways.  First, you can set application wide defaults with the <dfn>system/application/config/profiler.php</dfn> config file.</p> 
     90        <p>Each section of Profiler data can be enabled or disabled by setting a corresponding config variable to <var>TRUE</var> or <var>FALSE</var>.  This can be done one of two ways.  First, you can set application wide defaults with the <dfn>application/config/profiler.php</dfn> config file.</p> 
    9191 
    9292        <code>$config['config']&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= FALSE;<br /> 
     
    130130                <td class="td">TRUE</td> 
    131131                </tr><tr> 
    132                          
     132 
    133133                <td class="td"><strong>http_headers</strong></td> 
    134134                <td class="td">The HTTP headers for the current request</td> 
     
    150150                <td class="td">TRUE</td> 
    151151                </tr><tr> 
    152                  
     152 
    153153                <td class="td"><strong>uri_string</strong></td> 
    154154                <td class="td">The URI of the current request</td> 
     
    170170Next Topic:&nbsp;&nbsp;<a href="managing_apps.html">Managing Applications</a> 
    171171</p> 
    172 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     172<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    173173</div> 
    174174 
    
          
  • TabularUnified general/quick_reference.html

    • Property svn:executable set to *
    r2 r3  
    7171<a href="../index.html">User Guide Home</a> 
    7272</p> 
    73 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     73<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    7474</div> 
    7575 
    
          
  • TabularUnified general/requirements.html

    • Property svn:executable set to *
    r2 r3  
    5959 
    6060<ul> 
    61         <li><a href="http://www.php.net/">PHP</a> version 4.3.2 or newer.</li> 
     61        <li><a href="http://www.php.net/">PHP</a> version 5.1.6 or newer.</li> 
    6262        <li>A Database is required for most web application programming. Current supported databases are MySQL (4.1+), MySQLi, MS SQL, Postgres, Oracle, SQLite, and ODBC.</li> 
    6363</ul> 
     
    7676Next Topic:&nbsp;&nbsp;<a href="../license.html">License Agreement</a> 
    7777</p> 
    78 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     78<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    7979</div> 
    8080 
    
          
  • TabularUnified general/reserved_names.html

    • Property svn:executable set to *
    r2 r3  
    6363must be careful not to name your functions identically to the ones used by that class, otherwise your local functions 
    6464will override them.  The following 
    65 is a list of reserved names.  Do not name your controller functions any of these:</p> 
     65is a list of reserved names.  Do not name your controller any of these:</p> 
    6666<ul> 
    6767        <li>Controller</li> 
    6868        <li>CI_Base</li> 
    6969        <li>_ci_initialize</li> 
    70         <li>Default (PHP 5)</li> 
     70        <li>Default</li> 
    7171        <li>index</li> 
    72 </ul> 
    73 <p><br /><!-- @PHP4 --> 
    74         If you are running PHP 4 there are some additional reserved names. These ONLY apply if you are running PHP 4.</p> 
    75 <ul> 
    76         <li>CI_Loader</li> 
    77         <li>config</li> 
    78         <li>database</li> 
    79         <li>dbutil</li> 
    80         <li>dbforge</li> 
    81         <li>file</li> 
    82         <li>helper</li> 
    83         <li>helpers</li> 
    84         <li>language</li> 
    85         <li>library</li> 
    86         <li>model</li> 
    87         <li>script</li> 
    88         <li>view</li> 
    89         <li>vars</li> 
    90         <li>_ci_assign_to_models</li> 
    91         <li>_ci_autoloader</li> 
    92         <li>_ci_init_class</li> 
    93         <li>_ci_is_instance</li> 
    94         <li>_ci_load</li> 
    95         <li>_ci_load_class</li> 
    96         <li>_ci_object_to_array</li> 
    9772</ul> 
    9873<h3>Functions</h3> 
     
    146121<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    147122Next Topic:&nbsp;&nbsp;<a href="views.html">Views</a></p> 
    148 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     123<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    149124</div> 
    150125 
    
          
  • TabularUnified general/routing.html

    • Property svn:executable set to *
    r2 r3  
    160160Next Topic:&nbsp;&nbsp;<a href="errors.html">Error Handling</a> 
    161161</p> 
    162 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     162<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    163163</div> 
    164164 
    
          
  • TabularUnified general/security.html

    • Property svn:executable set to *
    r2 r3  
    147147Next Topic:&nbsp;&nbsp;<a href="styleguide.html">PHP Style Guide</a> 
    148148</p> 
    149 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     149<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    150150</div> 
    151151 
    
          
  • TabularUnified general/styleguide.html

    • Property svn:executable set to *
    r2 r3  
    8989        <li><a href="#code_indenting">Code Indenting</a></li> 
    9090        <li><a href="#bracket_spacing">Bracket and Parenthetic Spacing</li> 
    91         <li><a href="#localized_text_in_control_panel">Localized Text in Control Panel</a></li> 
     91        <li><a href="#localized_text">Localized Text</a></li> 
    9292        <li><a href="#private_methods_and_variables">Private Methods and Variables</a></li> 
    9393        <li><a href="#php_errors">PHP Errors</a></li> 
     
    9797        <li><a href="#sql_queries">SQL Queries</a></li> 
    9898        <li><a href="#default_function_arguments">Default Function Arguments</a></li> 
    99         <li><a href="#overlapping_tag_parameters">Overlapping Tag Parameters</a></li> 
    10099</ul> 
    101100 
     
    109108                                preventing the application from being able to set its own headers.  Unix line endings should 
    110109                                be used (LF).</p> 
    111                          
     110 
    112111                        <p>Here is how to apply these settings in some of the more common text editors.  Instructions for your 
    113112                                text editor may vary; check your text editor's documentation.</p> 
    114                  
     113 
    115114                        <h5>TextMate</h5> 
    116                  
     115 
    117116                        <ol> 
    118117                                <li>Open the Application Preferences</li> 
     
    123122                                        endings of files you open to your new preference.</li> 
    124123                        </ol> 
    125                  
     124 
    126125                        <h5>BBEdit</h5> 
    127                  
     126 
    128127                        <ol> 
    129128                                <li>Open the Application Preferences</li> 
     
    139138                <h2><a name="php_closing_tag"></a>PHP Closing Tag</h2> 
    140139                <div class="guidelineDetails"> 
    141                         <p>The PHP closing tag on a PHP document <strong>?&gt;</strong> is optional to the PHP parser.  However, if used, any whitespace following the closing tag, whether introduced  
     140                        <p>The PHP closing tag on a PHP document <strong>?&gt;</strong> is optional to the PHP parser.  However, if used, any whitespace following the closing tag, whether introduced 
    142141                                by the developer, user, or an FTP application, can cause unwanted output, PHP errors, or if the latter are suppressed, blank pages.  For this reason, all PHP files should 
    143142                                <strong>OMIT</strong> the closing PHP tag, and instead use a comment block to mark the end of file and it's location relative to the application root. 
     
    160159                </div> 
    161160 
    162          
     161 
    163162                <h2><a name="class_and_method_naming"></a>Class and Method Naming</h2> 
    164163                <div class="guidelineDetails"> 
    165                         <p>Class names should always have their first letter uppercase, and the constructor method should match identically.  Multiple words should be separated with an underscore, and not CamelCased.  All other class methods should be entirely lowercased and named to clearly indicate their function, preferably including a verb.  Try to avoid overly long and verbose names.</p> 
     164                        <p>Class names should always start with an uppercase letter.  Multiple words should be separated with an underscore, and not CamelCased.  All other class methods should be entirely lowercased and named to clearly indicate their function, preferably including a verb.  Try to avoid overly long and verbose names.</p> 
    166165 
    167166        <code><strong>INCORRECT</strong>: 
     
    172171class Super_class</code> 
    173172 
    174                         <p>Notice that the Class and constructor methods are identically named and cased:</p> 
    175173 
    176174        <code>class Super_class { 
    177175 
    178         function Super_class() 
     176        function __construct() 
    179177        { 
    180178 
     
    195193 
    196194                </div> 
    197          
    198          
     195 
     196 
    199197                <h2><a name="variable_names"></a>Variable Names</h2> 
    200198                <div class="guidelineDetails"> 
     
    215213</code> 
    216214                </div> 
    217          
    218          
     215 
     216 
    219217                <h2><a name="commenting"></a>Commenting</h2> 
    220218                <div class="guidelineDetails"> 
     
    259257</code> 
    260258                </div> 
    261          
    262          
     259 
     260 
    263261                <h2><a name="constants"></a>Constants</h2> 
    264262                <div class="guidelineDetails"> 
     
    277275</code> 
    278276                </div> 
    279          
    280          
     277 
     278 
    281279                <h2><a name="true_false_and_null"></a>TRUE, FALSE, and NULL</h2> 
    282280                <div class="guidelineDetails"> 
     
    292290function foo($bar = NULL)</code> 
    293291                </div> 
    294          
    295  
    296          
     292 
     293 
     294 
    297295                <h2><a name="logical_operators"></a>Logical Operators</h2> 
    298296                <div class="guidelineDetails"> 
     
    312310</code> 
    313311                </div> 
    314          
    315          
    316          
     312 
     313 
     314 
    317315                <h2><a name="comparing_return_values_and_typecasting"></a>Comparing Return Values and Typecasting</h2> 
    318316                <div class="guidelineDetails"> 
     
    352350 
    353351                </div> 
    354          
    355          
     352 
     353 
    356354                <h2><a name="debugging_code"></a>Debugging Code</h2> 
    357355                <div class="guidelineDetails"> 
     
    360358<code>// print_r($foo);</code> 
    361359                </div> 
    362          
    363  
    364          
     360 
     361 
     362 
    365363                <h2><a name="whitespace_in_files"></a>Whitespace in Files</h2> 
    366364                <div class="guidelineDetails"> 
     
    368366 
    369367                        <p><strong>INCORRECT</strong>:</p> 
    370 <code>      
     368<code> 
    371369&lt;?php 
    372370        // ...there is whitespace and a linebreak above the opening PHP tag 
    373371        // as well as whitespace after the closing PHP tag 
    374 ?&gt;     
     372?&gt; 
    375373</code> 
    376374                        <p><strong>CORRECT</strong>:</p> 
     
    380378 
    381379                </div> 
    382          
    383          
     380 
     381 
    384382                <h2><a name="compatibility"></a>Compatibility</h2> 
    385383                <div class="guidelineDetails"> 
    386384                        <p>Unless specifically mentioned in your add-on's documentation, all code must be compatible with PHP version 4.3+.  Additionally, do not use PHP functions that require non-default libraries to be installed unless your code contains an alternative method when the function is not available, or you implicitly document that your add-on requires said PHP libraries.</p> 
    387385                </div> 
    388                  
    389  
    390          
     386 
     387 
     388 
    391389                <h2><a name="class_and_file_names_using_common_words"></a>Class and File Names using Common Words</h2> 
    392390                <div class="guidelineDetails"> 
     
    404402</code> 
    405403                </div> 
    406          
    407          
     404 
     405 
    408406                <h2><a name="database_table_names"></a>Database Table Names</h2> 
    409407                <div class="guidelineDetails"> 
     
    421419                        <p class="important"><strong>NOTE:</strong> Be mindful that MySQL has a limit of 64 characters for table names.  This should not be an issue as table names that would exceed this would likely have unreasonable names.  For instance, the following table name exceeds this limitation by one character.  Silly, no? <strong>exp_pre_email_addresses_of_registered_users_in_seattle_washington</strong> 
    422420                </div> 
    423          
    424  
    425          
     421 
     422 
     423 
    426424                <h2><a name="one_file_per_class"></a>One File per Class</h2> 
    427425                <div class="guidelineDetails"> 
    428426                        <p>Use separate files for each class your add-on uses, unless the classes are <em>closely related</em>.  An example of CodeIgniter files that contains multiple classes is the Database class file, which contains both the DB class and the DB_Cache class, and the Magpie plugin, which contains both the Magpie and Snoopy classes.</p> 
    429427                </div> 
    430          
    431  
    432          
     428 
     429 
     430 
    433431                <h2><a name="whitespace"></a>Whitespace</h2> 
    434432                <div class="guidelineDetails"> 
    435433                        <p>Use tabs for whitespace in your code, not spaces.  This may seem like a small thing, but using tabs instead of whitespace allows the developer looking at your code to have indentation at levels that they prefer and customize in whatever application they use.  And as a side benefit, it results in (slightly) more compact files, storing one tab character versus, say, four space characters.</p> 
    436434                </div> 
    437          
    438  
    439          
     435 
     436 
     437 
    440438                <h2><a name="line_breaks"></a>Line Breaks</h2> 
    441439                <div class="guidelineDetails"> 
    442440                        <p>Files must be saved with Unix line breaks.  This is more of an issue for developers who work in Windows, but in any case ensure that your text editor is setup to save files with Unix line breaks.</p> 
    443441                </div> 
    444          
    445  
    446          
     442 
     443 
     444 
    447445                <h2><a name="code_indenting"></a>Code Indenting</h2> 
    448446                <div class="guidelineDetails"> 
     
    500498}</code> 
    501499                </div> 
    502          
     500 
    503501 
    504502        <h2><a name="bracket_spacing"></a>Bracket and Parenthetic Spacing</h2> 
    505503                <div class="guidelineDetails"> 
    506504                        <p>In general, parenthesis and brackets should not use any additional spaces.  The exception is that a space should always follow PHP control structures that accept arguments with parenthesis (declare, do-while, elseif, for, foreach, if, switch, while), to help distinguish them from functions and increase readability.</p> 
    507                          
     505 
    508506<code>INCORRECT: 
    509507$arr[ $foo ] = 'foo'; 
     
    516514function foo ( $bar ) 
    517515{ 
    518          
     516 
    519517} 
    520518 
     
    522520function foo($bar) // no spaces around parenthesis in function declarations 
    523521{ 
    524          
     522 
    525523} 
    526524 
     
    533531</code> 
    534532                </div> 
    535          
    536          
    537          
    538                 <h2><a name="localized_text_in_control_panel"></a>Localized Text in Control Panel</h2> 
    539                 <div class="guidelineDetails"> 
    540                         <p>Any text that is output in the control panel should use language variables in your module's lang file to allow localization.</p> 
     533 
     534 
     535 
     536                <h2><a name="localized_text"></a>Localized Text</h2> 
     537                <div class="guidelineDetails"> 
     538                        <p>Any text that is output in the control panel should use language variables in your lang file to allow localization.</p> 
    541539 
    542540<code>INCORRECT: 
     
    544542 
    545543CORRECT: 
    546 return $LANG->line('invalid_selection');</code> 
    547                 </div> 
    548          
    549  
    550          
     544return $this->lang->line('invalid_selection');</code> 
     545                </div> 
     546 
     547 
     548 
    551549                <h2><a name="private_methods_and_variables"></a>Private Methods and Variables</h2> 
    552550                <div class="guidelineDetails"> 
     
    556554_convert_text()         // private method</code> 
    557555                </div> 
    558          
    559  
    560          
     556 
     557 
     558 
    561559                <h2><a name="php_errors"></a>PHP Errors</h2> 
    562560                <div class="guidelineDetails"> 
     
    576574                        <p class="important"><strong>NOTE:</strong> Setting the <a href="http://us.php.net/manual/en/ref.errorfunc.php#ini.display-errors">display_errors</a> setting with ini_set() at runtime is not identical to having it enabled in the PHP environment.  Namely, it will not have any effect if the script has fatal errors</p> 
    577575                </div> 
    578          
    579  
    580          
     576 
     577 
     578 
    581579                <h2><a name="short_open_tags"></a>Short Open Tags</h2> 
    582580                <div class="guidelineDetails"> 
     
    591589&lt;?php echo $foo; ?&gt;</code> 
    592590                </div> 
    593          
    594  
    595          
     591 
     592 
     593 
    596594                <h2><a name="one_statement_per_line"></a>One Statement Per Line</h2> 
    597595                <div class="guidelineDetails"> 
     
    607605</code> 
    608606                </div> 
    609          
    610  
    611          
     607 
     608 
     609 
    612610                <h2><a name="strings"></a>Strings</h2> 
    613611                <div class="guidelineDetails"> 
     
    624622"SELECT foo FROM bar WHERE baz = 'bag'"</code> 
    625623                </div> 
    626          
    627  
    628          
     624 
     625 
     626 
    629627                <h2><a name="sql_queries"></a>SQL Queries</h2> 
    630628                <div class="guidelineDetails"> 
     
    647645                                LIMIT 5, 100");</code> 
    648646                </div> 
    649          
    650  
    651          
     647 
     648 
     649 
    652650                <h2><a name="default_function_arguments"></a>Default Function Arguments</h2> 
    653651                <div class="guidelineDetails"> 
     
    656654<code>function foo($bar = '', $baz = FALSE)</code> 
    657655                </div> 
    658          
    659  
    660          
    661                 <h2><a name="overlapping_tag_parameters"></a>Overlapping Tag Parameters</h2> 
    662                 <div class="guidelineDetails"> 
    663                         <p>Avoid multiple tag parameters that have effect on the same thing.  For instance, instead of <strong>include=</strong> and <strong>exclude=</strong>, perhaps allow <strong>include=</strong> to handle the parameter alone, with the addition of "not", e.g. <strong>include="not bar"</strong>.  This will prevent problems of parameters overlapping or having to worry about which parameter has priority over another.</p> 
    664                 </div> 
    665          
     656 
     657 
    666658 
    667659</div> 
     
    681673Next Topic:&nbsp;&nbsp;<a href="../doc_style/index.html">Writing Documentation</a> 
    682674</p> 
    683 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     675<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    684676</div> 
    685677 
    
          
  • TabularUnified general/urls.html

    • Property svn:executable set to *
    r2 r3  
    145145<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    146146Next Topic:&nbsp;&nbsp;<a href="controllers.html">Controllers</a></p> 
    147 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     147<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    148148</div> 
    149149 
    
          
  • TabularUnified general/views.html

    • Property svn:executable set to *
    r2 r3  
    9999<textarea class="textarea" style="width:100%" cols="50" rows="10"> 
    100100&lt;?php 
    101 class Blog extends Controller { 
     101class Blog extends CI_Controller { 
    102102 
    103103        function index() 
     
    110110 
    111111 
    112 <p>If you visit the your site using the URL you did earlier you should see your new view.  The URL was similar to this:</p> 
     112<p>If you visit your site using the URL you did earlier you should see your new view.  The URL was similar to this:</p> 
    113113 
    114114<code>example.com/index.php/<var>blog</var>/</code> 
    115115 
    116116<h2>Loading multiple views</h2> 
    117 <p>CodeIgniter will intelligently handle  multiple calls to $this-&gt;load-&gt;view from within a controller.  If more then one call happens they will be appended together. For example, you may wish to have a header view, a menu view, a content view, and a footer view. That might look something like this:</p> 
     117<p>CodeIgniter will intelligently handle  multiple calls to $this-&gt;load-&gt;view from within a controller.  If more than one call happens they will be appended together. For example, you may wish to have a header view, a menu view, a content view, and a footer view. That might look something like this:</p> 
    118118<p><code>&lt;?php<br /> 
    119119<br /> 
    120 class Page extends Controller {<br /><br /> 
     120class Page extends CI_Controller {<br /><br /> 
    121121 
    122122 &nbsp;&nbsp;&nbsp;function index()<br /> 
     
    164164<textarea class="textarea" style="width:100%" cols="50" rows="14"> 
    165165&lt;?php 
    166 class Blog extends Controller { 
     166class Blog extends CI_Controller { 
    167167 
    168168        function index() 
     
    170170                $data['title'] = "My Real Title"; 
    171171                $data['heading'] = "My Real Heading"; 
    172                  
     172 
    173173                $this->load->view('blogview', $data); 
    174174        } 
     
    204204<textarea class="textarea" style="width:100%" cols="50" rows="17"> 
    205205&lt;?php 
    206 class Blog extends Controller { 
     206class Blog extends CI_Controller { 
    207207 
    208208        function index() 
     
    212212                $data['title'] = "My Real Title"; 
    213213                $data['heading'] = "My Real Heading"; 
    214                  
     214 
    215215                $this->load->view('blogview', $data); 
    216216        } 
     
    230230&lt;body> 
    231231&lt;h1>&lt;?php echo $heading;?>&lt;/h1> 
    232          
    233 &lt;h3>My Todo List&lt;/h3>      
     232 
     233&lt;h3>My Todo List&lt;/h3> 
    234234 
    235235&lt;ul> 
     
    240240&lt;?php endforeach;?> 
    241241&lt;/ul> 
    242          
     242 
    243243&lt;/body> 
    244244&lt;/html> 
     
    268268Next Topic:&nbsp;&nbsp;<a href="models.html">Models</a> 
    269269</p> 
    270 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     270<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    271271</div> 
    272272 
    
          
  • TabularUnified helpers/array_helper.html

    • Property svn:executable set to *
    r2 r3  
    101101 
    102102 
     103<h2>elements()</h2> 
    103104 
     105<p>Lets you fetch a number of items from an array.  The function tests whether each of the array indices is set.  If an index does not exist 
     106it is set to FALSE, or whatever you've specified as the default value via the third parameter.  Example:</p> 
     107 
     108<code> 
     109$array = array(<br /> 
     110&nbsp;&nbsp;&nbsp;&nbsp;'color' => 'red',<br /> 
     111&nbsp;&nbsp;&nbsp;&nbsp;'shape' => 'round',<br /> 
     112&nbsp;&nbsp;&nbsp;&nbsp;'radius' => '10',<br /> 
     113&nbsp;&nbsp;&nbsp;&nbsp;'diameter' => '20'<br /> 
     114);<br /> 
     115<br /> 
     116$my_shape = elements(array('color', 'shape', 'height'), $array);<br /> 
     117</code> 
     118 
     119<p>The above will return the following array:</p> 
     120 
     121<code> 
     122array(<br /> 
     123&nbsp;&nbsp;&nbsp;&nbsp;'color' => 'red',<br /> 
     124&nbsp;&nbsp;&nbsp;&nbsp;'shape' => 'round',<br /> 
     125&nbsp;&nbsp;&nbsp;&nbsp;'height' => FALSE<br /> 
     126); 
     127</code> 
     128 
     129<p>You can set the third parameter to any default value you like:</p> 
     130 
     131<code> 
     132$my_shape = elements(array('color', 'shape', 'height'), $array, NULL);<br /> 
     133</code> 
     134 
     135<p>The above will return the following array:</p> 
     136 
     137<code> 
     138array(<br /> 
     139&nbsp;&nbsp;&nbsp;&nbsp;'color' => 'red',<br /> 
     140&nbsp;&nbsp;&nbsp;&nbsp;'shape' => 'round',<br /> 
     141&nbsp;&nbsp;&nbsp;&nbsp;'height' => NULL<br /> 
     142); 
     143</code> 
     144 
     145<p>This is useful when sending the <kbd>$_POST</kbd> array to one of your Models.  This prevents users from 
     146sending additional POST data to be entered into your tables:</p> 
     147 
     148<code> 
     149$this->load->model('post_model');<br /> 
     150<br /> 
     151$this->post_model->update(elements(array('id', 'title', 'content'), $_POST)); 
     152</code> 
     153 
     154<p>This ensures that only the id, title and content fields are sent to be updated.</p> 
    104155 
    105156</div> 
     
    113164<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    114165Next Topic:&nbsp;&nbsp;<a href="compatibility_helper.html">Compatibility Helper</a></p> 
    115 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     166<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    116167</div> 
    117168 
    
          
  • TabularUnified helpers/captcha_helper.html

    • Property svn:executable set to *
    r2 r3  
    8888        <p>The "word" is the word that appears in the captcha image, which if not 
    8989        supplied to the function, will be a random string.</p> 
    90          
     90 
    9191        <h3>Using the CAPTCHA helper</h3> 
    92          
     92 
    9393        <p>Once loaded you can generate a captcha like this:</p> 
    9494 
     
    121121 
    122122        <h3>Adding a Database</h3> 
    123          
     123 
    124124        <p>In order for the captcha function to prevent someone from submitting, you will need 
    125125        to add the information returned from <kbd>create_captcha()</kbd> function to your database. 
    126126        Then, when the data from the form is submitted by the user you will need to verify 
    127127        that the data exists in the database and has not expired.</p> 
    128          
     128 
    129129        <p>Here is a table prototype:</p> 
    130          
     130 
    131131<code>CREATE TABLE captcha (<br /> 
    132132&nbsp;captcha_id bigint(13) unsigned NOT NULL auto_increment,<br /> 
     
    136136&nbsp;PRIMARY KEY `captcha_id` (`captcha_id`),<br /> 
    137137&nbsp;KEY `word` (`word`)<br /> 
    138 )</code> 
     138);</code> 
    139139 
    140140        <p>Here is an example of usage with a database.  On the page where the CAPTCHA will be shown you'll have something like this:</p> 
    141          
     141 
    142142<code>$this-&gt;load-&gt;helper(&#x27;captcha&#x27;);<br /> 
    143143$vals = array(<br /> 
     
    162162 
    163163        <p>Then, on the page that accepts the submission you'll have something like this:</p> 
    164          
     164 
    165165<code>// First, delete old captchas<br /> 
    166166$expiration = time()-7200; // Two hour limit<br /> 
    167 $this-&gt;db-&gt;query(&quot;DELETE FROM captcha WHERE captcha_time &lt; &quot;.$expiration);   <br />   
     167$this-&gt;db-&gt;query(&quot;DELETE FROM captcha WHERE captcha_time &lt; &quot;.$expiration);   <br /> 
    168168<br /> 
    169169// Then see if a captcha exists:<br /> 
     
    177177&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;You must submit the word that appears in the image&quot;;<br /> 
    178178}</code> 
    179          
     179 
    180180</div> 
    181181<!-- END CONTENT --> 
     
    189189<a href="../index.html">User Guide Home</a> 
    190190</p> 
    191 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     191<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    192192</div> 
    193193 
    
          
  • TabularUnified helpers/cookie_helper.html

    • Property svn:executable set to *
    r2 r3  
    101101<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    102102Next Topic:&nbsp;&nbsp;<a href="date_helper.html">Date Helper</a></p> 
    103 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     103<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    104104</div> 
    105105 
    
          
  • TabularUnified helpers/date_helper.html

    • Property svn:executable set to *
    r2 r3  
    117117                <th>Example</th> 
    118118        </tr> 
    119         <tr>     
     119        <tr> 
    120120                <td>DATE_ATOM</td> 
    121121                <td>Atom</td> 
     
    130130                <td>DATE_ISO8601</td> 
    131131                <td>ISO-8601</td> 
    132                 <td>2005-08-14T16:13:03+0000</td> 
     132                <td>2005-08-14T16:13:03+00:00</td> 
    133133        </tr> 
    134134        <tr> 
    135135                <td>DATE_RFC822</td> 
    136136                <td>RFC 822</td> 
    137                 <td>Sun, 14 Aug 2005 16:13:03 UTC</td> 
     137                <td>Sun, 14 Aug 05 16:13:03 UTC</td> 
    138138        </tr> 
    139139        <tr> 
     
    150150                <td>DATE_RFC1123</td> 
    151151                <td>RFC 1123</td> 
    152                 <td>Sun, 14 Aug 2005 16:13:03 UTC</td>    
     152                <td>Sun, 14 Aug 2005 16:13:03 UTC</td>   
    153153        </tr> 
    154154        <tr> 
     
    402402Next Topic:&nbsp;&nbsp;<a href="directory_helper.html">Directory Helper</a> 
    403403</p> 
    404 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     404<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    405405</div> 
    406406 
    
          
  • TabularUnified helpers/directory_helper.html

    • Property svn:executable set to *
    r2 r3  
    8484<code>$map = directory_map('./mydirectory/', 1);</code> 
    8585 
    86 <p>By default, hidden files will not be included in the returned array.  To override this behavior,  
     86<p>By default, hidden files will not be included in the returned array.  To override this behavior, 
    8787you may set a third parameter to <var>true</var> (boolean):</p> 
    8888 
     
    137137Next Topic:&nbsp;&nbsp;<a href="download_helper.html">Download Helper</a> 
    138138</p> 
    139 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     139<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    140140</div> 
    141141 
    
          
  • TabularUnified helpers/download_helper.html

    • Property svn:executable set to *
    r2 r3  
    106106<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    107107Next Topic:&nbsp;&nbsp;<a href="email_helper.html">Email Helper</a></p> 
    108 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     108<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    109109</div> 
    110110 
    
          
  • TabularUnified helpers/email_helper.html

    • Property svn:executable set to *
    r2 r3  
    9696<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    9797Next Topic:&nbsp;&nbsp;<a href="file_helper.html">File Helper</a></p> 
    98 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     98<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9999</div> 
    100100 
    
          
  • TabularUnified helpers/file_helper.html

    • Property svn:executable set to *
    r2 r3  
    173173<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    174174Next Topic:&nbsp;&nbsp;<a href="form_helper.html">Form Helper</a></p> 
    175 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     175<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    176176</div> 
    177177 
    
          
  • TabularUnified helpers/form_helper.html

    • Property svn:executable set to *
    r2 r3  
    259259<br /> 
    260260// Produces<br /> 
    261 &lt;fieldset&gt;   
    262 <br /> 
    263 &lt;legend&gt;Address Information&lt;/legend&gt;   
    264 <br /> 
    265 &lt;p&gt;form content here&lt;/p&gt;   
     261&lt;fieldset&gt; 
     262<br /> 
     263&lt;legend&gt;Address Information&lt;/legend&gt; 
     264<br /> 
     265&lt;p&gt;form content here&lt;/p&gt; 
    266266<br /> 
    267267&lt;/fieldset&gt;</code> 
     
    478478Next Topic:&nbsp;&nbsp;<a href="html_helper.html">HTML Helper</a> 
    479479</p> 
    480 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     480<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    481481</div> 
    482482 
    
          
  • TabularUnified helpers/html_helper.html

    • Property svn:executable set to *
    r2 r3  
    9696<p>There is an optional second parameter that is a TRUE/FALSE value that specifics if the src should have the page specified by $config['index_page'] added to the address it creates. Presumably, this would be if you were using a media controller.</p> 
    9797<p><code>echo img('images/picture.jpg', TRUE);<br /> 
    98 // gives &lt;img src=&quot;http://site.com/index.php/images/picture.jpg&quot; /&gt;</code></p> 
    99 <p>Additionally, an associative array can be passed to the img() function for complete control over all attributes and values.</p> 
     98// gives &lt;img src=&quot;http://site.com/index.php/images/picture.jpg&quot; alt=&quot;&quot; /&gt;</code></p> 
     99<p>Additionally, an associative array can be passed to the img() function for complete control over all attributes and values. If an alt attribute is not provided, CodeIgniter will generate an empty string.</p> 
    100100<p><code> $image_properties = array(<br /> 
    101101        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'src' =&gt; 'images/picture.jpg',<br /> 
     
    119119<code> 
    120120        echo link_tag('favicon.ico', 'shortcut icon', 'image/ico');<br /> 
    121         // &lt;link href=&quot;http://site.com/favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/ico&quot; /&gt;  
     121        // &lt;link href=&quot;http://site.com/favicon.ico&quot; rel=&quot;shortcut icon&quot; type=&quot;image/ico&quot; /&gt; 
    122122        <br /> 
    123123        <br /> 
     
    135135        echo link_tag($link);<br /> 
    136136        // &lt;link href=&quot;http://site.com/css/printer.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;print&quot; /&gt;</code></p> 
    137          
     137 
    138138<h2><a name="nbs"></a>nbs()</h2> 
    139139<p>Generates non-breaking spaces (&amp;nbsp;) based on the number you submit. Example:</p> 
     
    379379<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    380380Next Topic:&nbsp;&nbsp;<a href="path_helper.html"> Path Helper</a></p> 
    381 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     381<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    382382</div> 
    383383 
    
          
  • TabularUnified helpers/inflector_helper.html

    • Property svn:executable set to *
    r2 r3  
    145145Next Topic:&nbsp;&nbsp;<a href="number_helper.html">Number Helper</a> 
    146146</p> 
    147 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     147<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    148148</div> 
    149149 
    
          
  • TabularUnified helpers/language_helper.html

    • Property svn:executable set to *
    r2 r3  
    9292Next Topic:&nbsp;&nbsp;<a href="download_helper.html">Download Helper</a> 
    9393</p> 
    94 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     94<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9595</div> 
    9696 
    
          
  • TabularUnified helpers/number_helper.html

    • Property svn:executable set to *
    r2 r3  
    107107Next Topic:&nbsp;&nbsp;<a href="path_helper.html">Path Helper</a> 
    108108</p> 
    109 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     109<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    110110</div> 
    111111 
    
          
  • TabularUnified helpers/path_helper.html

    • Property svn:executable set to *
    r2 r3  
    100100Next Topic:&nbsp;&nbsp;<a href="security_helper.html">Security Helper</a> 
    101101</p> 
    102 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     102<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    103103</div> 
    104104 
    
          
  • TabularUnified helpers/security_helper.html

    • Property svn:executable set to *
    r2 r3  
    7676 
    7777 
     78<h2>sanitize_filename()</h2> 
     79 
     80<p>Provides protection against directory traversal.  This function is an alias to the one in the 
     81<a href="../libraries/security.html">Security class</a>.  More info can be found there.</p> 
     82 
     83 
    7884<h2>do_hash()</h2> 
    7985 
     
    120126<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    121127Next Topic:&nbsp;&nbsp;<a href="smiley_helper.html">Smiley Helper</a></p> 
    122 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     128<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    123129</div> 
    124130 
    
          
  • TabularUnified helpers/smiley_helper.html

    • Property svn:executable set to *
    r2 r3  
    9292<p>In your <dfn>application/controllers/</dfn> folder, create a file called <kbd>smileys.php</kbd> and place the code below in it.</p> 
    9393 
    94 <p><strong>Important:</strong> Change the URL in the <dfn>get_clickable_smileys()</dfn> function below so that it points to  
     94<p><strong>Important:</strong> Change the URL in the <dfn>get_clickable_smileys()</dfn> function below so that it points to 
    9595your <dfn>smiley</dfn> folder.</p> 
    9696 
     
    100100&lt;?php 
    101101 
    102 class Smileys extends Controller { 
    103  
    104         function Smileys() 
     102class Smileys extends CI_Controller { 
     103 
     104        function __construct() 
    105105        { 
    106                 parent::Controller(); 
     106                parent::__construct(); 
    107107        } 
    108          
     108 
    109109        function index() 
    110110        { 
    111111                $this->load->helper('smiley'); 
    112112                $this->load->library('table'); 
    113                  
     113 
    114114                $image_array = get_clickable_smileys('http://example.com/images/smileys/', 'comments'); 
    115                  
     115 
    116116                $col_array = $this->table->make_columns($image_array, 8); 
    117                  
     117 
    118118                $data['smiley_table'] = $this->table->generate($col_array); 
    119                  
     119 
    120120                $this->load->view('smiley_view', $data); 
    121121        } 
    122          
     122 
    123123} 
    124124?&gt; 
     
    209209Next Topic:&nbsp;&nbsp;<a href="string_helper.html">String Helper</a> 
    210210</p> 
    211 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     211<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    212212</div> 
    213213 
    
          
  • TabularUnified helpers/string_helper.html

    • Property svn:executable set to *
    r2 r3  
    146146$string=reduce_multiples($string, ", ", TRUE); //results in "Fred, Bill, Joe, Jimmy" 
    147147</code> 
    148 </p>  
     148</p> 
    149149 
    150150<h2>quotes_to_entities()</h2> 
     
    172172Next Topic:&nbsp;&nbsp;<a href="text_helper.html">Text Helper</a> 
    173173</p> 
    174 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     174<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    175175</div> 
    176176 
    
          
  • TabularUnified helpers/text_helper.html

    • Property svn:executable set to *
    r2 r3  
    121121 
    122122<code>$string = convert_accented_characters($string);</code> 
    123          
    124 <p>This function uses a companion config file <dfn>system/application/config/foreign_chars.php</dfn> to define the to and from array for transliteration.</p> 
     123 
     124<p>This function uses a companion config file <dfn>application/config/foreign_chars.php</dfn> to define the to and from array for transliteration.</p> 
    125125 
    126126<h2>word_censor()</h2> 
     
    178178function</code> 
    179179 
    180  
     180<h2>ellipsize()</h2> 
     181 
     182<p>This function will strip tags from a string, split it at a defined maximum length, and insert an ellipsis.</p> 
     183<p>The first parameter is the string to ellipsize, the second is the number of characters in the final string. The third parameter is where in the string the ellipsis should appear from 0 - 1, left to right.  For example.  a value of 1 will place the ellipsis at the right of the string, .5 in the middle, and 0 at the left.</p> 
     184<p>An optional forth parameter is the kind of ellipsis.  By default, <samp>&amp;hellip;</samp> will be inserted.</p> 
     185 
     186<code>$str = 'this_string_is_entirely_too_long_and_might_break_my_design.jpg';<br /> 
     187<br /> 
     188echo ellipsize($str, 32, .5);</code> 
     189 
     190Produces: 
     191 
     192<code>this_string_is_e&hellip;ak_my_design.jpg</code> 
    181193 
    182194 
     
    193205Next Topic:&nbsp;&nbsp;<a href="typography_helper.html">Typography Helper</a> 
    194206</p> 
    195 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     207<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    196208</div> 
    197209 
    
          
  • TabularUnified helpers/typography_helper.html

    • Property svn:executable set to *
    r2 r3  
    106106Next Topic:&nbsp;&nbsp;<a href="url_helper.html">URL Helper</a> 
    107107</p> 
    108 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     108<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    109109</div> 
    110110 
    
          
  • TabularUnified helpers/url_helper.html

    • Property svn:executable set to *
    r2 r3  
    237237 
    238238<h3>prep_url()</h3> 
    239 <p>This function will add <kbd>http://</kbd> in the event it is missing from a URL.  Pass the URL string to the function like this:</p> 
     239<p>This function will add <kbd>http://</kbd> in the event that a scheme is missing from a URL.  Pass the URL string to the function like this:</p> 
    240240<code> 
    241241$url = "example.com";<br /><br /> 
     
    282282Next Topic:&nbsp;&nbsp;<a href="xml_helper.html">XML Helper</a> 
    283283</p> 
    284 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     284<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    285285</div> 
    286286 
    
          
  • TabularUnified helpers/xml_helper.html

    • Property svn:executable set to *
    r2 r3  
    9999<a href="../index.html">User Guide Home</a> 
    100100</p> 
    101 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     101<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    102102</div> 
    103103 
    
          
  • images/appflowchart.gif

    • Property svn:executable set to *
  • images/arrow.gif

    • Property svn:executable set to *
  • images/ci_logo.jpg

    • Property svn:executable set to *
  • images/ci_logo_flame.jpg

    • Property svn:executable set to *
  • images/ci_quick_ref.png

    • Property svn:executable set to *
  • images/codeigniter_1.7.1_helper_reference.pdf

    • Property svn:executable set to *
  • images/codeigniter_1.7.1_helper_reference.png

    • Property svn:executable set to *
  • images/codeigniter_1.7.1_library_reference.pdf

    • Property svn:executable set to *
  • images/codeigniter_1.7.1_library_reference.png

    • Property svn:executable set to *
  • images/file.gif

    • Property svn:executable set to *
  • images/folder.gif

    • Property svn:executable set to *
  • images/nav_bg_darker.jpg

    • Property svn:executable set to *
  • images/nav_separator_darker.jpg

    • Property svn:executable set to *
  • images/nav_toggle_darker.jpg

    • Property svn:executable set to *
  • images/smile.gif

    • Property svn:executable set to *
  • images/transparent.gif

    • Property svn:executable set to *
  • TabularUnified index.html

    • Property svn:executable set to *
    r2 r3  
    9191<div id="footer"> 
    9292<p><a href="#top">Top of Page</a></p> 
    93 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     93<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9494</div> 
    9595 
    
          
  • TabularUnified installation/downloads.html

    • Property svn:executable set to *
    r2 r3  
    8585<h1 id="hg">Mercurial Server</h1> 
    8686<p><a href="http://mercurial.selenic.com">Mercurial</a> is a distributed version control system.</p> 
    87                                                          
     87 
    8888                                                        <p>Public Hg access is available at <a href="http://bitbucket.org/ellislab/codeigniter/">BitBucket</a>. 
    8989                                                                Please note that while every effort is made to keep this code base functional, we cannot guarantee the functionality of code taken 
    9090                                                                from the tip.</p> 
    91                                                          
     91 
    9292                                                        <p>Beginning with version 1.6.1, stable tags are also available via BitBucket, simply select the version from the Tags dropdown.</p> 
    9393</div> 
     
    103103Next Topic:&nbsp;&nbsp;<a href="../installation/index.html">Installation Instructions</a> 
    104104</p> 
    105 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     105<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    106106</div> 
    107107 
    
          
  • TabularUnified installation/index.html

    • Property svn:executable set to *
    r2 r3  
    6767</ol> 
    6868 
    69 <p>If you wish to increase security by hiding the location of your CodeIgniter files you can rename the <dfn>system</dfn> folder 
    70 to something more private.  If you do rename it, you must open your main <kbd>index.php</kbd> file and set the <samp>$system_folder</samp> 
    71 variable at the top of the page with the new name you've chosen.</p> 
     69<p>If you wish to increase security by hiding the location of your CodeIgniter files you can rename the <dfn>system</dfn> and <dfn>application</dfn> folders 
     70to something more private.  If you do rename them, you must open your main <kbd>index.php</kbd> file and set the <samp>$system_folder</samp> and <samp>$application_folder</samp> 
     71variables at the top of the file with the new name you've chosen.</p> 
     72 
     73<p>For the best security, both the <dfn>system</dfn> and any <dfn>application</dfn> folders should be placed above web root so that they are not directly accessible via a browser.  By default, .htaccess files are included in each folder to help prevent direct access, but it is best to remove them from public access entirely in case the web server configuration changes or doesn't abide by the .htaccess.</p> 
     74 
     75<p>After moving them, open your main <kdb>index.php</kbd> file and set the <samp>$system_folder</samp> and <samp>$application_folder</samp> variables, preferably with a full path, e.g. '<dfn>/www/MyUser/system</dfn>'.</p> 
     76 
    7277 
    7378<p>That's it!</p> 
     
    9196</p> 
    9297 
    93 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     98<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9499</div> 
    95100 
    
          
  • TabularUnified installation/troubleshooting.html

    • Property svn:executable set to *
    r2 r3  
    8484Next Topic:&nbsp;&nbsp;<a href="../overview/at_a_glance.html">CodeIgniter at a Glance</a> 
    8585</p> 
    86 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     86<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    8787</div> 
    8888 
    
          
  • TabularUnified installation/upgrade_120.html

    • Property svn:executable set to *
    r2 r3  
    8686Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    8787</p> 
    88 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     88<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    8989</div> 
    9090 
    
          
  • TabularUnified installation/upgrade_130.html

    • Property svn:executable set to *
    r2 r3  
    197197Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    198198</p> 
    199 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     199<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    200200</div> 
    201201 
    
          
  • TabularUnified installation/upgrade_131.html

    • Property svn:executable set to *
    r2 r3  
    9696Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    9797</p> 
    98 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     98<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9999</div> 
    100100 
    
          
  • TabularUnified installation/upgrade_132.html

    • Property svn:executable set to *
    r2 r3  
    9494Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    9595</p> 
    96 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     96<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9797</div> 
    9898 
    
          
  • TabularUnified installation/upgrade_133.html

    • Property svn:executable set to *
    r2 r3  
    106106Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    107107</p> 
    108 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     108<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    109109</div> 
    110110 
    
          
  • TabularUnified installation/upgrade_140.html

    • Property svn:executable set to *
    r2 r3  
    139139Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    140140</p> 
    141 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     141<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    142142</div> 
    143143 
    
          
  • TabularUnified installation/upgrade_141.html

    • Property svn:executable set to *
    r2 r3  
    142142Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    143143</p> 
    144 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     144<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    145145</div> 
    146146 
    
          
  • TabularUnified installation/upgrade_150.html

    • Property svn:executable set to *
    r2 r3  
    172172Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    173173</p> 
    174 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     174<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    175175</div> 
    176176 
    
          
  • TabularUnified installation/upgrade_152.html

    • Property svn:executable set to *
    r2 r3  
    105105Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    106106</p> 
    107 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     107<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    108108</div> 
    109109 
    
          
  • TabularUnified installation/upgrade_153.html

    • Property svn:executable set to *
    r2 r3  
    9494Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    9595</p> 
    96 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     96<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9797</div> 
    9898 
    
          
  • TabularUnified installation/upgrade_154.html

    • Property svn:executable set to *
    r2 r3  
    6868<ul> 
    6969 
    70 <li><dfn>system/application/config/mimes.php</dfn></li> 
     70<li><dfn>application/config/mimes.php</dfn></li> 
    7171<li><dfn>system/codeigniter</dfn></li> 
    7272<li><dfn>system/database</dfn></li> 
     
    7979 
    8080<h2>Step 2: Add charset to your config.php </h2> 
    81 <p>Add the following to system/application/config/config.php</p> 
     81<p>Add the following to application/config/config.php</p> 
    8282<code>/*<br /> 
    8383        |--------------------------------------------------------------------------<br /> 
     
    9292 
    9393<h2>Step 3: Autoloading language files </h2> 
    94 <p>If you want to autoload any language files, add this line to system/application/config/autoload.php</p> 
     94<p>If you want to autoload any language files, add this line to application/config/autoload.php</p> 
    9595<code>$autoload['language'] = array();</code> 
    9696 
     
    110110Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    111111</p> 
    112 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     112<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    113113</div> 
    114114 
    
          
  • TabularUnified installation/upgrade_160.html

    • Property svn:executable set to *
    r2 r3  
    7979 
    8080<h2>Step 2: Add time_to_update to your config.php </h2> 
    81 <p>Add the following to system/application/config/config.php with the other session configuration options</p> 
    82 <p><code>$config['sess_time_to_update']                 = 300;</code></p> 
     81<p>Add the following to application/config/config.php with the other session configuration options</p> 
     82<p><code>$config['sess_time_to_update']                 = 300;</code></p> 
    8383<h2>Step 3: Add $autoload['model']</h2> 
    84 <p>Add the following to system/application/config/autoload.php</p> 
     84<p>Add the following to application/config/autoload.php</p> 
    8585<p><code> /*<br /> 
    8686        | -------------------------------------------------------------------<br /> 
     
    9595        $autoload['model'] = array();</code></p> 
    9696<h2>Step 4: Add  to your database.php </h2> 
    97 <p>Make the following changes to your system/application/config/database.php file:</p> 
     97<p>Make the following changes to your application/config/database.php file:</p> 
    9898<p>Add the following variable above the database configuration options, with <dfn>$active_group</dfn></p> 
    9999<p><code>$active_record = TRUE;</code></p> 
     
    119119Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    120120</p> 
    121 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     121<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    122122</div> 
    123123 
    
          
  • TabularUnified installation/upgrade_161.html

    • Property svn:executable set to *
    r2 r3  
    9292Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    9393</p> 
    94 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     94<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9595</div> 
    9696 
    
          
  • TabularUnified installation/upgrade_162.html

    • Property svn:executable set to *
    r2 r3  
    7979 
    8080<h2>Step 2: Encryption Key</h2> 
    81 <p>If you are using sessions, open up system/application/config/config.php and verify you've set an encryption key.</p> 
     81<p>If you are using sessions, open up application/config/config.php and verify you've set an encryption key.</p> 
    8282 
    8383<h2>Step 3: Constants File</h2> 
    84 <p>Copy /system/application/config/constants.php to your installation, and modify if necessary.</p> 
     84<p>Copy /application/config/constants.php to your installation, and modify if necessary.</p> 
    8585<h2>Step 4: Mimes File</h2> 
    86 <p>Replace /system/application/config/mimes.php with the dowloaded version. If you've added custom mime types, you'll need to re-add them.</p> 
     86<p>Replace /application/config/mimes.php with the dowloaded version. If you've added custom mime types, you'll need to re-add them.</p> 
    8787<h2>Step 5: Update your user guide</h2> 
    8888<p>Please also replace your local copy of the user guide with the new version.</p> 
     
    100100Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    101101</p> 
    102 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     102<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    103103</div> 
    104104 
    
          
  • TabularUnified installation/upgrade_163.html

    • Property svn:executable set to *
    r2 r3  
    9393Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    9494</p> 
    95 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     95<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9696</div> 
    9797 
    
          
  • TabularUnified installation/upgrade_170.html

    • Property svn:executable set to *
    r2 r3  
    8080<h2>Step 2: Update your Session Table</h2> 
    8181 
    82 <p>If you are using the Session class in your application, AND if you are storing session data to a database, you must add a new column named <dfn>user_data</dfn> to your session table.  
    83 Here is an example of what this column might look like for MySQL: 
     82<p>If you are using the Session class in your application, AND if you are storing session data to a database, you must add a new column named <dfn>user_data</dfn> to your session table. 
     83Here is an example of what this column might look like for MySQL:</p> 
    8484 
    8585<code>user_data text NOT NULL</code> 
     
    9494<h2>Step 3: Update your Validation Syntax</h2> 
    9595 
    96 <p>This is an <strong>optional</strong>, but recommended step, for people currently using the Validation class.  CI 1.7 introduces a new  <a href="../libraries/form_validation.html">Form Validation class</a>, which  
     96<p>This is an <strong>optional</strong>, but recommended step, for people currently using the Validation class.  CI 1.7 introduces a new  <a href="../libraries/form_validation.html">Form Validation class</a>, which 
    9797deprecates the old Validation library.  We have left the old one in place so that existing applications that use it will not break, but you are encouraged to 
    9898migrate to the new version as soon as possible.  Please read the user guide carefully as the new library works a little differently, and has several new features.</p> 
     
    115115Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    116116</p> 
    117 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     117<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    118118</div> 
    119119 
    
          
  • TabularUnified installation/upgrade_171.html

    • Property svn:executable set to *
    r2 r3  
    9292Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    9393</p> 
    94 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     94<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9595</div> 
    9696 
    
          
  • TabularUnified installation/upgrade_172.html

    • Property svn:executable set to *
    r2 r3  
    7373<li><dfn>system/language</dfn></li> 
    7474<li><dfn>system/libraries</dfn></li> 
     75<li><dfn>index.php</dfn></li> 
    7576</ul> 
    7677 
     
    8485<p>404 status headers are now properly handled in the show_404() method itself.</p> 
    8586 
    86 <h2>Step 3: Update your user guide</h2> 
     87<h2>Step 3: Confirm your system_path</h2> 
     88<p>In your updated index.php file, confirm that the <dfn>$system_path</dfn> variable is set to your application's system folder.</p> 
     89 
     90<h2>Step 4: Update your user guide</h2> 
    8791<p>Please replace your local copy of the user guide with the new version, including the image files.</p> 
    8892 
     
    99103Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    100104</p> 
    101 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     105<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    102106</div> 
    103107 
    
          
  • TabularUnified installation/upgrade_200.html

    • Property svn:executable set to *
    r2 r3  
    8181 
    8282<p>2.0.0 gets rid of the "Plugin" system as their functionality was identical to Helpers, but non-extensible.  You will need to rename your plugin files from <var>filename_pi.php</var> to <var>filename_helper.php</var>, move them to your <kbd>helpers</kbd> folder, and change all instances of: 
    83          
     83 
    8484        <code>$this->load->plugin('foo');</code> 
    85          
     85 
    8686to 
    8787 
     
    9090</p> 
    9191 
    92 <h2>Step 3: Update your user guide</h2> 
     92<h2>Step 4: Update stored encrypted data</h2> 
     93 
     94<p class="important"><strong>Note:</strong> If your application does not use the Encryption library, does not store Encrypted data permanently, or is on an environment that does not support Mcrypt, you may skip this step.</p> 
     95 
     96<p>The Encryption library has had a number of improvements, some for encryption strength and some for performance, that has an unavoidable consequence of 
     97        making it no longer possible to decode encrypted data produced by the original version of this library.  To help with the transition, a new method has 
     98        been added, <kbd>encode_from_legacy()</kbd> that will decode the data with the original algorithm and return a re-encoded string using the improved methods. 
     99        This will enable you to easily replace stale encrypted data with fresh in your applications, either on the fly or en masse.</p> 
     100 
     101<p>Please read <a href="../libraries/encryption.html#legacy">how to use this method</a> in the Encryption library documentation.</p> 
     102 
     103<h2>Step 5: Remove loading calls for the compatibility helper.</h2> 
     104<p>The compatibility helper has been removed from the CodeIgniter core. All methods in it should be natively available in supported PHP versions.</p> 
     105 
     106<h2>Step 6: Update Class extension</h2> 
     107<p>All core classes are now prefixed with <kbd>CI_</kbd>.  Update Models and Controllers to extend CI_Model and CI_Controller, respectively.</p>  
     108 
     109<h2>Step 7: Update Parent Constructor calls</h2> 
     110<p>All native CodeIgniter classes now use the PHP 5 <kbd>__construct()</kbd> convention. Please update extended libraries to call <kbd>parent::__construct()</kbd>.</p> 
     111 
     112<h2>Step 8: Update your user guide</h2> 
    93113<p>Please replace your local copy of the user guide with the new version, including the image files.</p> 
    94114 
     
    105125Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    106126</p> 
    107 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     127<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    108128</div> 
    109129 
    
          
  • TabularUnified installation/upgrade_b11.html

    • Property svn:executable set to *
    r2 r3  
    138138Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    139139</p> 
    140 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     140<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    141141</div> 
    142142 
    
          
  • TabularUnified installation/upgrading.html

    • Property svn:executable set to *
    r2 r3  
    6161 
    6262<ul> 
     63<li><a href="upgrade_200.html">Upgrading from 1.7.2 to 2.0</a></li> 
    6364<li><a href="upgrade_172.html">Upgrading from 1.7.1 to 1.7.2</a></li> 
    6465<li><a href="upgrade_171.html">Upgrading from 1.7.0 to 1.7.1</a></li> 
     
    9596Next Topic:&nbsp;&nbsp;<a href="troubleshooting.html">Troubleshooting</a> 
    9697</p> 
    97 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     98<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    9899</div> 
    99100 
    
          
  • TabularUnified libraries/benchmark.html

    • Property svn:executable set to *
    r2 r3  
    8484<h2>Using the Benchmark Class</h2> 
    8585 
    86 <p>The Benchmark class can be used within your <a href="../general/controllers.html">controllers</a>,  <a href="../general/views.html">views</a>, or your  <a href="../general/models.html">Models</a>.  The process for usage is this:</p> 
     86<p>The Benchmark class can be used within your <a href="../general/controllers.html">controllers</a>,  <a href="../general/views.html">views</a>, or your  <a href="../general/models.html">models</a>.  The process for usage is this:</p> 
    8787 
    8888<ol> 
     
    186186<div id="footer"> 
    187187<p> 
    188 Previous Topic:&nbsp;&nbsp;<a href="../general/security.html"> Security</a> 
     188Previous Topic:&nbsp;&nbsp;<a href="../doc_style/index.html">Writing Documentaion</a> 
    189189&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    190190<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
     
    192192Next Topic:&nbsp;&nbsp;<a href="calendar.html">Calendar Class</a> 
    193193</p> 
    194 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     194<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    195195</div> 
    196196 
    
          
  • TabularUnified libraries/calendar.html

    • Property svn:executable set to *
    r2 r3  
    115115<h2>Setting Display Preferences</h2> 
    116116 
    117 <p>There are seven preferences you can set to control various aspects of the calendar.  Preferences are set by passing an  
     117<p>There are seven preferences you can set to control various aspects of the calendar.  Preferences are set by passing an 
    118118array of preferences in the second parameter of the loading function. Here is an example:</p> 
    119119 
     
    243243Next Topic:&nbsp;&nbsp;<a href="cart.html">Cart Class</a> 
    244244</p> 
    245 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     245<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    246246</div> 
    247247 
    
          
  • TabularUnified libraries/cart.html

    • Property svn:executable set to *
    r2 r3  
    5959<h1>Shopping Cart Class</h1> 
    6060 
    61 <p>The Cart Class permits items to be added to a session that stays active while a user is browsing your site.   
     61<p>The Cart Class permits items to be added to a session that stays active while a user is browsing your site. 
    6262These items can be retrieved and displayed in a standard "shopping cart" format, allowing the user to update the quantity or remove items from the cart.</p> 
    6363 
     
    6969<p><strong>Important:</strong> The Cart class utilizes CodeIgniter's 
    7070<a href="sessions.html">Session Class</a>  to save the cart information to a database, so before using the Cart class you must set up a database table 
    71 as indicated in the <a href="sessions.html">Session Documentation</a> , and set the session preferences in your <kbd>appliction/config/config.php</kbd> file to utilize a database.</p> 
     71as indicated in the <a href="sessions.html">Session Documentation</a> , and set the session preferences in your <kbd>application/config/config.php</kbd> file to utilize a database.</p> 
    7272 
    7373<p>To initialize the Shopping Cart Class in your controller constructor, use the <dfn>$this->load->library</dfn> function:</p> 
     
    110110</ul> 
    111111 
    112 <p>In addition to the five indexes above, there are two reserved words: <dfn>rowid</dfn> and <dfn>subtotal</dfn>.  These are used internally by the Cart class, so  
     112<p>In addition to the five indexes above, there are two reserved words: <dfn>rowid</dfn> and <dfn>subtotal</dfn>.  These are used internally by the Cart class, so 
    113113please do NOT use those words as index names when inserting data into the cart.</p> 
    114114 
     
    182182 
    183183        &lt;?php echo form_hidden($i.'[rowid]', $items['rowid']); ?> 
    184          
     184 
    185185        &lt;tr> 
    186186          &lt;td>&lt;?php echo form_input(array('name' => $i.'[qty]', 'value' => $items['qty'], 'maxlength' => '3', 'size' => '5')); ?>&lt;/td> 
    187187          &lt;td> 
    188188                &lt;?php echo $items['name']; ?> 
    189                                          
     189 
    190190                        &lt;?php if ($this->cart->has_options($items['rowid']) == TRUE): ?> 
    191                                          
     191 
    192192                                &lt;p> 
    193193                                        &lt;?php foreach ($this->cart->product_options($items['rowid']) as $option_name => $option_value): ?> 
    194                                                  
     194 
    195195                                                &lt;strong>&lt;?php echo $option_name; ?>:&lt;/strong> &lt;?php echo $option_value; ?>&lt;br /> 
    196                                                                                  
     196 
    197197                                        &lt;?php endforeach; ?> 
    198198                                &lt;/p> 
    199                                  
     199 
    200200                        &lt;?php endif; ?> 
    201                                  
     201 
    202202          &lt;/td> 
    203203          &lt;td style="text-align:right">&lt;?php echo $this->cart->format_number($items['price']); ?>&lt;/td> 
     
    315315 
    316316 
    317 <h2>$this->cart->options(rowid);</h2> 
     317<h2>$this->cart->product_options(rowid);</h2> 
    318318 
    319319<p>Returns an array of options for a particular product. This function is designed to be used in a loop with <dfn>$this->cart->contents()</dfn>, since you must pass the <kbd>rowid</kbd> to this function, as shown in the <dfn>Displaying the Cart</dfn> example above.</p> 
     
    340340Next Topic:&nbsp;&nbsp;<a href="config.html">Config Class</a> 
    341341</p> 
    342 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     342<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    343343</div> 
    344344 
    
          
  • TabularUnified libraries/config.html

    • Property svn:executable set to *
    r2 r3  
    6767<h2>Anatomy of a Config File</h2> 
    6868 
    69 <p>By default, CodeIgniter has a one primary config file, located at <samp>application/config/config.php</samp>.  If you open the file using 
     69<p>By default, CodeIgniter has one primary config file, located at <samp>application/config/config.php</samp>.  If you open the file using 
    7070your text editor you'll see that config items are stored in an array called <var>$config</var>.</p> 
    7171 
     
    145145<h2>Setting a Config Item</h2> 
    146146 
    147 <p>If you would like to dynamically set a config item or change an existing one, you can so using:</p> 
     147<p>If you would like to dynamically set a config item or change an existing one, you can do so using:</p> 
    148148 
    149149<code>$this->config->set_item('<var>item_name</var>', '<var>item_value</var>');</code> 
     
    175175Next Topic:&nbsp;&nbsp;<a href="../database/index.html">Database Class</a> 
    176176</p> 
    177 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     177<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    178178</div> 
    179179 
    
          
  • TabularUnified libraries/email.html

    • Property svn:executable set to *
    r2 r3  
    8484<code>$this->load->library('email');<br /> 
    8585<br /> 
    86 $this->email->from('your@example.com', 'Your Name');<br />       
     86$this->email->from('your@example.com', 'Your Name');<br /> 
    8787$this->email->to('someone@example.com'); <br /> 
    8888$this->email->cc('another@another-example.com'); <br /> 
     
    234234{<br /> 
    235235&nbsp;&nbsp;&nbsp;&nbsp;$this->email->clear();<br /><br /> 
    236          
     236 
    237237&nbsp;&nbsp;&nbsp;&nbsp;$this->email->to($address);<br /> 
    238238&nbsp;&nbsp;&nbsp;&nbsp;$this->email->from('your@example.com');<br /> 
     
    301301Next Topic:&nbsp;&nbsp;<a href="encryption.html">Encryption Class</a> 
    302302</p> 
    303 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     303<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    304304</div> 
    305305 
    
          
  • TabularUnified libraries/encryption.html

    • Property svn:executable set to *
    r2 r3  
    5959<h1>Encryption Class</h1> 
    6060 
    61 <p>The Encryption Class provides two-way data encryption.  It uses a scheme that pre-compiles 
    62 the message using a randomly hashed bitwise XOR encoding scheme, which is then encrypted using 
     61<p>The Encryption Class provides two-way data encryption.  It uses a scheme that either compiles 
     62the message using a randomly hashed bitwise XOR encoding scheme, or is encrypted using 
    6363the Mcrypt library.  If Mcrypt is not available on your server the encoded message will 
    6464still provide a reasonable degree of security for encrypted sessions or other such "light" purposes. 
    65 If Mcrypt is available, you'll effectively end up with a double-encrypted message string, which should 
    66 provide a very high degree of security.</p> 
     65If Mcrypt is available, you'll be provided with a high degree of security appropriate for storage.</p> 
    6766 
    6867 
     
    154153<h2>$this->encrypt->set_mode();</h2> 
    155154 
    156 <p>Permits you to set an Mcrypt mode.  By default it uses <samp>MCRYPT_MODE_ECB</samp>.  Example:</p> 
     155<p>Permits you to set an Mcrypt mode.  By default it uses <samp>MCRYPT_MODE_CBC</samp>.  Example:</p> 
    157156<code>$this->encrypt->set_mode(MCRYPT_MODE_CFB);</code> 
    158157<p>Please visit php.net for a list of  <a href="http://php.net/mcrypt">available modes</a>.</p> 
     
    170169<p>If your server does not support SHA1 you can use the provided function.</p> 
    171170 
    172  
     171<h2 id="legacy">$this->encrypt->encode_from_legacy(<kbd>$orig_data</kbd>, <kbd>$legacy_mode</kbd> = MCRYPT_MODE_ECB, <kbd>$key</kbd> = '');</h2> 
     172<p>Enables you to re-encode data that was originally encrypted with CodeIgniter 1.x to be compatible with the Encryption library in CodeIgniter 2.x.  It is only 
     173        necessary to use this method if you have encrypted data stored permanently such as in a file or database and are on a server that supports Mcrypt.  "Light" use encryption 
     174        such as encrypted session data or transitory encrypted flashdata require no intervention on your part.  However, existing encrypted Sessions will be 
     175        destroyed since data encrypted prior to 2.x will not be decoded.</p> 
     176 
     177<p class="important"><strong>Why only a method to re-encode the data instead of maintaining legacy methods for both encoding and decoding?</strong>  The algorithms in 
     178        the Encryption library have improved in CodeIgniter 2.x both for performance and security, and we do not wish to encourage continued use of the older methods. 
     179        You can of course extend the Encryption library if you wish and replace the new methods with the old and retain seamless compatibility with CodeIgniter 1.x 
     180        encrypted data, but this a decision that a developer should make cautiously and deliberately, if at all.</p> 
     181 
     182<code>$new_data = $this->encrypt->encode_from_legacy(<kbd>$old_encrypted_string</kbd>);</code> 
     183 
     184<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder"> 
     185<tr> 
     186        <th>Parameter</th> 
     187        <th>Default</th> 
     188        <th>Description</th> 
     189</tr> 
     190<tr> 
     191        <td class="td"><strong>$orig_data</strong></td> 
     192        <td class="td">n/a</td> 
     193        <td class="td">The original encrypted data from CodeIgniter 1.x's Encryption library</td> 
     194</tr> 
     195<tr> 
     196        <td class="td"><strong>$legacy_mode</strong></td> 
     197        <td class="td">MCRYPT_MODE_ECB</td> 
     198        <td class="td">The Mcrypt mode that was used to generate the original encrypted data.  CodeIgniter 1.x's default was MCRYPT_MODE_ECB, and it will 
     199                assume that to be the case unless overridden by this parameter.</td> 
     200</tr> 
     201<tr> 
     202        <td class="td"><strong>$key</strong></td> 
     203        <td class="td">n/a</td> 
     204        <td class="td">The encryption key.  This it typically specified in your config file as outlined above.</td> 
     205</tr> 
     206</table> 
    173207 
    174208</div> 
     
    184218Next Topic:&nbsp;&nbsp;<a href="file_uploading.html">File Uploading Class</a> 
    185219</p> 
    186 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     220<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    187221</div> 
    188222 
    
          
  • TabularUnified libraries/file_uploading.html

    • Property svn:executable set to *
    r2 r3  
    7575</ul> 
    7676 
    77 <p>To demonstrate this process here is a brief tutorial. Afterward you'll find reference information.</p> 
     77<p>To demonstrate this process here is brief tutorial. Afterward you'll find reference information.</p> 
    7878 
    7979<h2>Creating the Upload Form</h2> 
     
    145145<textarea class="textarea" style="width:100%" cols="50" rows="43">&lt;?php 
    146146 
    147 class Upload extends Controller { 
    148          
    149         function Upload() 
     147class Upload extends CI_Controller { 
     148 
     149        function __construct() 
    150150        { 
    151                 parent::Controller(); 
     151                parent::__construct(); 
    152152                $this->load->helper(array('form', 'url')); 
    153153        } 
    154          
     154 
    155155        function index() 
    156         {        
     156        { 
    157157                $this->load->view('upload_form', array('error' => ' ' )); 
    158158        } 
     
    165165                $config['max_width']  = '1024'; 
    166166                $config['max_height']  = '768'; 
    167                  
     167 
    168168                $this->load->library('upload', $config); 
    169          
     169 
    170170                if ( ! $this->upload->do_upload()) 
    171171                { 
    172172                        $error = array('error' => $this->upload->display_errors()); 
    173                          
     173 
    174174                        $this->load->view('upload_form', $error); 
    175                 }        
     175                } 
    176176                else 
    177177                { 
    178178                        $data = array('upload_data' => $this->upload->data()); 
    179                          
     179 
    180180                        $this->load->view('upload_success', $data); 
    181181                } 
    182         }        
     182        } 
    183183} 
    184184?&gt;</textarea> 
     
    256256<td class="td">None</td> 
    257257<td class="td">None</td> 
    258 <td class="td">The mime types corresponding to the types of files you allow to be uploaded.  Usually the file extension can be used as the mime type.  Separate multiple types with a pipe.  If '*' is used, all file types will be allowed.</td> 
     258<td class="td">The mime types corresponding to the types of files you allow to be uploaded.  Usually the file extension can be used as the mime type.  Separate multiple types with a pipe.</td> 
    259259</tr> 
    260260 
     
    265265<td class="td">Desired file name</td> 
    266266<td class="td"> 
    267         <p>If set CodeIgniter will rename the uploaded file to this name.</p> 
    268         <p class="important"><strong>Note:</strong>The filename should not include a file extension.</p> 
     267        <p>If set CodeIgniter will rename the uploaded file to this name.  The extension provided in the file name must also be an allowed file type.</p> 
    269268</td> 
    270269</tr> 
     
    372371&nbsp;&nbsp;&nbsp;&nbsp;[raw_name]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=> mypic<br /> 
    373372&nbsp;&nbsp;&nbsp;&nbsp;[orig_name]&nbsp;&nbsp;&nbsp;&nbsp;=> mypic.jpg<br /> 
     373&nbsp;&nbsp;&nbsp;&nbsp;[client_name]&nbsp;&nbsp;=> mypic.jpg<br /> 
    374374&nbsp;&nbsp;&nbsp;&nbsp;[file_ext]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=> .jpg<br /> 
    375375&nbsp;&nbsp;&nbsp;&nbsp;[file_size]&nbsp;&nbsp;&nbsp;&nbsp;=> 22.2<br /> 
     
    406406<td class="td">The original file name.  This is only useful if you use the encrypted name option.</td></tr> 
    407407 
     408<tr><td class="td"><strong>client_name</strong></td> 
     409<td class="td">The file name as supplied by the client user agent, prior to any file name preparation or incrementing.</td></tr> 
     410 
    408411<tr><td class="td"><strong>file_ext</strong></td> 
    409412<td class="td">The file extension with period</td></tr> 
     
    418421<td class="td">Image width.</td></tr> 
    419422 
    420 <tr><td class="td"><strong>image_heigth</strong></td> 
     423<tr><td class="td"><strong>image_height</strong></td> 
    421424<td class="td">Image height</td></tr> 
    422425 
     
    442445Next Topic:&nbsp;&nbsp;<a href="form_validation.html">Form Validation Class</a> 
    443446</p> 
    444 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     447<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
    445448</div> 
    446449 
    
          
  • TabularUnified libraries/form_validation.html

    • Property svn:executable set to *
    r2 r3  
    5858 
    5959<p>CodeIgniter provides a comprehensive form validation and data prepping class that helps minimize the amount of code you'll write.</p> 
    60  
    61 <p class="important"><strong>Note:</strong>&nbsp; As of CodeIgniter 1.7.0, this Form Validation class supercedes the old Validation class, which is now deprecated.  We 
    62 have left the old class in the library so applications currently using it will not break, but you are encouraged to migrate to this new version.</p> 
    6360 
    6461<ul> 
     
    107104<li>A form is displayed.</li> 
    108105<li>You fill it in and submit it.</li> 
    109 <li>If you submitted something invalid, or perhaps missed a required item, the form is redisplayed containing your data  
     106<li>If you submitted something invalid, or perhaps missed a required item, the form is redisplayed containing your data 
    110107along with an error message describing the problem.</li> 
    111108<li>This process continues until you have submitted a valid form.</li> 
     
    225222<textarea class="textarea" style="width:100%" cols="50" rows="21">&lt;?php 
    226223 
    227 class Form extends Controller { 
    228          
     224class Form extends CI_Controller { 
     225 
    229226        function index() 
    230227        { 
    231228                $this->load->helper(array('form', 'url')); 
    232                  
     229 
    233230                $this->load->library('form_validation'); 
    234                                  
     231 
    235232                if ($this->form_validation->run() == FALSE) 
    236233                { 
     
    316313<textarea class="textarea" style="width:100%" cols="50" rows="28">&lt;?php 
    317314 
    318 class Form extends Controller { 
    319          
     315class Form extends CI_Controller { 
     316 
    320317        function index() 
    321318        { 
    322319                $this->load->helper(array('form', 'url')); 
    323                  
     320 
    324321                $this->load->library('form_validation'); 
    325                          
     322 
    326323                $this->form_validation->set_rules('username', 'Username', 'required'); 
    327324                $this->form_validation->set_rules('password', 'Password', 'required'); 
    328325                $this->form_validation->set_rules('passconf', 'Password Confirmation', 'required'); 
    329326                $this->form_validation->set_rules('email', 'Email', 'required'); 
    330                          
     327 
    331328                if ($this->form_validation->run() == FALSE) 
    332329                { 
     
    518515<textarea class="textarea" style="width:100%" cols="50" rows="44">&lt;?php 
    519516 
    520 class Form extends Controller { 
    521          
     517class Form extends CI_Controller { 
     518 
    522519        function index() 
    523520        { 
    524521                $this->load->helper(array('form', 'url')); 
    525                  
     522 
    526523                $this->load->library('form_validation'); 
    527                          
     524 
    528525                $this->form_validation->set_rules('username', 'Username', 'callback_username_check'); 
    529526                $this->form_validation->set_rules('password', 'Password', 'required'); 
    530527                $this->form_validation->set_rules('passconf', 'Password Confirmation', 'required'); 
    531528                $this->form_validation->set_rules('email', 'Email', 'required'); 
    532                                          
     529 
    533530                if ($this->form_validation->run() == FALSE) 
    534531                { 
     
    540537                } 
    541538        } 
    542          
     539 
    543540        function username_check($str) 
    544541        { 
     
    553550                } 
    554551        } 
    555          
     552 
    556553} 
    557554?></textarea> 
     
    617614<h2>Changing the Error Delimiters</h2> 
    618615 
    619 <p>By default, the Form Validation class adds a paragraph tag (&lt;p&gt;) around each error message shown. You can either change these delimiters globally or  
     616<p>By default, the Form Validation class adds a paragraph tag (&lt;p&gt;) around each error message shown. You can either change these delimiters globally or 
    620617individually.</p> 
    621618 
     
    809806<code> 
    810807&lt;?php<br /><br /> 
    811 class <kbd>Member</kbd> extends Controller {<br /> 
     808class <kbd>Member</kbd> extends CI_Controller {<br /> 
    812809<br /> 
    813810&nbsp;&nbsp;&nbsp;function <kbd>signup</kbd>()<br /> 
     
    12151212Next Topic:&nbsp;&nbsp;<a href="ftp.html">FTP Class</a> 
    12161213</p> 
    1217 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     1214<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    12181215</div> 
    12191216 
    
          
  • TabularUnified libraries/ftp.html

    • Property svn:executable set to *
    r2 r3  
    8383$config['username'] = 'your-username';<br /> 
    8484$config['password'] = 'your-password';<br /> 
    85 $config['debug']        = TRUE;<br /> 
     85$config['debug']        = TRUE;<br /> 
    8686<br /> 
    8787$this->ftp->connect($config);<br /> 
     
    102102$config['username'] = 'your-username';<br /> 
    103103$config['password'] = 'your-password';<br /> 
    104 $config['debug']        = TRUE;<br /> 
     104$config['debug']        = TRUE;<br /> 
    105105<br /> 
    106106$this->ftp->connect($config);<br /> 
     
    122122$config['username'] = 'your-username';<br /> 
    123123$config['password'] = 'your-password';<br /> 
    124 $config['debug']        = TRUE;<br /> 
     124$config['debug']        = TRUE;<br /> 
    125125<br /> 
    126126$this->ftp->connect($config);<br /> 
     
    189189 
    190190 
     191<h2>$this->ftp->download()</h2> 
     192 
     193<p>Downloads a file from your server.  You must supply the remote path and the local path, and you can optionally set the mode. 
     194Example:</p> 
     195 
     196<code>$this->ftp->download('/public_html/myfile.html', '/local/path/to/myfile.html', 'ascii');</code> 
     197 
     198<p><strong>Mode options are:</strong>&nbsp; <kbd>ascii</kbd>, <kbd>binary</kbd>, and <kbd>auto</kbd> (the default). If 
     199<kbd>auto</kbd> is used it will base the mode on the file extension of the source file.</p> 
     200 
     201<p>Returns FALSE if the download does not execute successfully (including if PHP does not have permission to write the local file)</p> 
     202 
     203 
    191204<h2>$this->ftp->rename()</h2> 
    192205<p>Permits you to rename a file.  Supply the source file name/path and the new file name/path.</p> 
     
    219232<p>Lets you delete a directory and everything it contains.  Supply the source path to the directory with a trailing slash.</p> 
    220233 
    221 <p class="important"><strong>Important</strong>&nbsp; Be VERY careful with this function.  It will recursively delete  
     234<p class="important"><strong>Important</strong>&nbsp; Be VERY careful with this function.  It will recursively delete 
    222235<b>everything</b> within the supplied path, including sub-folders and all files.  Make absolutely sure your path is correct. 
    223236Try using the <kbd>list_files()</kbd> function first to verify that your path is correct.</p> 
     
    230243 
    231244<h2>$this->ftp->list_files()</h2> 
    232 <p>Permits you to retrieve a list of files on your server returned as an <dfn>array</dfn>.  You must supply  
     245<p>Permits you to retrieve a list of files on your server returned as an <dfn>array</dfn>.  You must supply 
    233246the path to the desired directory.</p> 
    234247 
     
    242255<h2>$this->ftp->mirror()</h2> 
    243256 
    244 <p>Recursively reads a local folder and everything it contains (including sub-folders) and creates a  
     257<p>Recursively reads a local folder and everything it contains (including sub-folders) and creates a 
    245258mirror via FTP based on it.  Whatever the directory structure of the original file path will be recreated on the server. 
    246259You must supply a source path and a destination path:</p> 
     
    297310Next Topic:&nbsp;&nbsp;<a href="table.html">HTML Table Class</a> 
    298311</p> 
    299 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     312<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    300313</div> 
    301314 
    
          
  • TabularUnified libraries/image_lib.html

    • Property svn:executable set to *
    r2 r3  
    448448<code> 
    449449$config['source_image'] = '/path/to/image/mypic.jpg';<br /> 
    450 $config['wm_text'] = 'Copyright 2006 - John Doe';<br />  
     450$config['wm_text'] = 'Copyright 2006 - John Doe';<br /> 
    451451$config['wm_type'] = 'text';<br /> 
    452452$config['wm_font_path'] = './system/fonts/texb.ttf';<br /> 
     
    661661Next Topic:&nbsp;&nbsp;<a href="input.html">Input Class</a> 
    662662</p> 
    663 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     663<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    664664</div> 
    665665 
    
          
  • TabularUnified libraries/input.html

    • Property svn:executable set to *
    r2 r3  
    234234 
    235235 
     236<h2>$this->input->request_headers()</h2> 
     237<p>Useful if running in a non-Apache environment where <a href="http://php.net/apache_request_headers">apache_request_headers()</a> will not be supported.  Returns an array of headers.</p> 
     238 
     239<code>$headers = $this->input->request_headers();</code> 
     240 
     241<h2>$this->input->get_request_header();</h2> 
     242<p>Returns a single member of the request headers array.</p> 
     243 
     244<code>$this->input->get_request_header('some-header', TRUE);</code> 
     245 
     246 
     247<h2>$this->input->is_ajax_request()</h2> 
     248<p>Checks to see if the <var>HTTP_X_REQUESTED_WITH</var> server header has been set, and returns a boolean response.</p> 
     249 
     250<code>$this->input->is_ajax_request()</code> 
    236251 
    237252 
     
    248263Next Topic:&nbsp;&nbsp;<a href="loader.html">Loader Class</a> 
    249264</p> 
    250 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     265<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    251266</div> 
    252267 
    
          
  • TabularUnified libraries/javascript.html

    • Property svn:executable set to *
    r2 r3  
    33<head> 
    44 
    5 <title>CodeIgniter User Guide : Input Class</title> 
     5<title>CodeIgniter User Guide : JavaScript Class</title> 
    66 
    77<style type='text/css' media='all'>@import url('../userguide.css');</style> 
     
    2525<!-- START NAVIGATION --> 
    2626<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div> 
    27 <div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle.jpg" width="153" height="44" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div> 
     27<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="153" height="44" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div> 
    2828<div id="masthead"> 
    2929<table cellpadding="0" cellspacing="0" border="0" style="width:100%"> 
     
    4343<a href="http://codeigniter.com/">CodeIgniter Home</a> &nbsp;&#8250;&nbsp; 
    4444<a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp; 
    45 Input and Security Class 
     45Input Class 
    4646</td> 
    4747<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide&nbsp; <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" />&nbsp;<input type="submit" class="submit" name="sa" value="Go" /></form></td> 
     
    5656<div id="content"> 
    5757 
     58<p class="important"><strong>Note:</strong> This driver is experimental. Its feature set and implementation may change in future releases.</p><br> 
    5859 
    5960<h1>Javascript Class</h1> 
    60 <p>Rewrite this paragraph: <a href="http://jquery.com/">jQuery</a> is a fast, concise, JavaScript Library that simplifies how you  traverse HTML documents, handle events, perform animations, and add  Ajax interactions to your web pages. CodeIgniter provides a library to help you with certain common functions that you may want to use within jQuery. Please note that CodeIgniter does not require the jQuery library to run, and that any scripting library will work equally well. The jQuery library is simply presented as a convenience if you choose to use it.</p> 
     61<p>CodeIgniter provides a library to help you with certain common functions that you may want to use with Javascript. Please note that CodeIgniter does not require the jQuery library to run, and that any scripting library will work equally well. The jQuery library is simply presented as a convenience if you choose to use it.</p> 
    6162<h2>Initializing the Class</h2> 
    62 <p>To initialize the jQuery class manually in your controller constructor, use the <dfn>$this-&gt;load-&gt;library</dfn> function. Currently, the only available library is jQuery, which will automatically be loaded like this:</p> 
     63<p>To initialize the Javascript class manually in your controller constructor, use the <dfn>$this-&gt;load-&gt;library</dfn> function. Currently, the only available library is jQuery, which will automatically be loaded like this:</p> 
    6364 
    6465<code>$this-&gt;load-&gt;library('javascript');</code> 
     
    7374<h2>Setup and Configuration</h2> 
    7475<h3>Set these variables in your view</h3> 
    75 <p>As a javascript library, your files must be available to your application. For your convenience, the needed files to run this library are available for <a href="http://codeigniter.com/downloads/">download</a> from our site.</p> 
    76 <p>As javascript is a client side language, the library must be able to write content into your final output. This generally means a view. You'll need to include the following variables in the &lt;head&gt; sections of your output.</p> 
     76<p>As a Javascript library, your files must be available to your application.</p> 
     77<p>As Javascript is a client side language, the library must be able to write content into your final output. This generally means a view. You'll need to include the following variables in the &lt;head&gt; sections of your output.</p> 
    7778<p><code>&lt;?php echo $library_src;?&gt;<br /> 
    7879&lt;?php echo $script_head;?&gt; 
     
    8081<p>$library_src, is where the actual library file will be loaded, as well as any subsequent plugin script calls; $script_head is where specific events, functions and other commands will be rendered.</p> 
    8182<h3>Set the path to the librarys with config items</h3> 
    82 <p>There are some configuration items in javascript library. These can either be set in system/application/config.php, within its own confg/javascript.php file, or within any controller usings the set_item() function. </p> 
     83<p>There are some configuration items in Javascript library. These can either be set in application/config.php, within its own config/javascript.php file, or within any controller usings the set_item() function. </p> 
    8384<p>An image to be used as an &quot;ajax loader&quot;, or progress indicator. Without one, the simple text message of &quot;loading&quot; will appear when Ajax calls need to be made.</p> 
    8485<p><code>$config['javascript_location'] = 'http://localhost/codeigniter/themes/js/jquery/');<br /> 
     
    8687<p>If you keep your files in the same directories they were downloaded from, then you need not set this configuration items.</p> 
    8788 
    88 <p>For information on outputting events, effects, etc., refer to the <a href="jquery.html">jQuery Class</a> documentation.</p> 
     89<h2>The jQuery Class</h2> 
     90 
     91<p>To initialize the jQuery class manually in your controller constructor, use the <dfn>$this-&gt;load-&gt;library</dfn> function:</p> 
     92 
     93<code>$this-&gt;load-&gt;library('jquery');</code> 
     94 
     95<p>You may send an optional parameter to determine whether or not a script tag for the main jQuery file will be automatically included when loading the library.  It will be created by default.  To prevent this, load the library as follows:</p> 
     96 
     97<code>$this-&gt;load-&gt;library('jquery', FALSE);</code> 
     98 
     99<p>Once loaded, the jQuery library object will be available using: <dfn>$this-&gt;jquery</dfn></p> 
     100 
     101<h2>jQuery Events</h2> 
     102 
     103<p>Events are set using the following syntax.</p> 
     104 
     105<p><code>$this-&gt;jquery-&gt;event('element_path', code_to_run());</code></p> 
     106 
     107<p>In the above example:</p> 
     108 
     109<ul> 
     110        <li>&quot;event&quot; is any of blur, change, click, dblclick, error, focus, hover, keydown, keyup, load, mousedown, mouseup, mouseover, mouseup, resize, scroll, or unload.</li> 
     111        <li>&quot;element_path&quot; is any valid <a href="http://docs.jquery.com/Selectors">jQuery selector</a>. Due to jQuery's unique selector syntax, this is usually an element id, or CSS selector. For example &quot;#notice_area&quot; would effect &lt;div id=&quot;notice_area&quot;&gt;, and &quot;#content a.notice&quot; would effect all anchors with a class of &quot;notice&quot; in the div with id &quot;content&quot;.</li> 
     112        <li>&quot;code_to_run()&quot; is script your write yourself, or an action such as an effect from the jQuery library below.</li> 
     113        </ul> 
     114 
     115<h2>Effects</h2> 
     116 
     117<p>The query library supports a powerful <a href="http://docs.jquery.com/Effects">Effects</a> repertoire.  Before an effect can be used, it must be loaded:</p> 
     118 
     119<p><code>$this->jquery->effect([optional path] plugin name); 
     120// for example 
     121$this->jquery->effect('bounce'); 
     122</code></p> 
     123 
     124<h3>hide() / show()</h3> 
     125 
     126<p>Each of this functions will affect the visibility of an item on your page. hide() will set an item invisible, show() will reveal it.</p> 
     127<p><code>$this-&gt;jquery-&gt;hide(target,  optional speed, optional extra information);<br /> 
     128        $this-&gt;jquery-&gt;show(target,  optional speed, optional extra information);</code></p> 
     129 
     130<ul> 
     131        <li>&quot;target&quot; will be any valid jQuery selector or selectors.</li> 
     132        <li>&quot;speed&quot; is optional, and is set to either slow, normal, fast, or alternatively a number of milliseconds.</li> 
     133        <li>&quot;extra information&quot; is optional, and could include a callback, or other additional information.</li> 
     134</ul> 
     135 
     136<h3>toggle()</h3> 
     137 
     138<p>toggle() will change the visibility of an item to the opposite of its current state, hiding visible elements, and revealing hidden ones.</p> 
     139<p><code>$this-&gt;jquery-&gt;toggle(target);</code></p> 
     140<ul> 
     141        <li>&quot;target&quot; will be any valid jQuery selector or selectors.</li> 
     142</ul> 
     143 
     144<h3>animate()</h3> 
     145 
     146<p><code> $this-&gt;jquery-&gt;animate(target, parameters, optional speed, optional extra information);</code></p> 
     147<ul> 
     148        <li>&quot;target&quot; will be any valid jQuery selector or selectors.</li> 
     149        <li>&quot;paramters&quot; in jQuery would generally include a series of CSS properties that you wish to change.</li> 
     150        <li>&quot;speed&quot; is optional, and is set to either slow, normal, fast, or alternatively a number of milliseconds.</li> 
     151        <li>&quot;extra information&quot; is optional, and could include a callback, or other additional information.</li> 
     152</ul> 
     153<p>For a full summary, see <a href="http://docs.jquery.com/Effects/animate">http://docs.jquery.com/Effects/animate</a></p> 
     154<p>Here is an example of an animate() called on a div with an id of &quot;note&quot;, and triggered by a click using the jQuery library's click() event.</p> 
     155<p><code> $params = array(<br /> 
     156        'height' =&gt; 80,<br /> 
     157        'width' =&gt; '50%',<br /> 
     158        'marginLeft' =&gt; 125<br /> 
     159);<br /> 
     160$this-&gt;jquery-&gt;click('#trigger', $this-&gt;jquery-&gt;animate('#note', $params, normal));</code></p> 
     161 
     162<h3>fadeIn() / fadeOut()</h3> 
     163 
     164<p><code>$this-&gt;jquery-&gt;fadeIn(target,  optional speed, optional extra information);<br /> 
     165        $this-&gt;jquery-&gt;fadeOut(target,  optional speed, optional extra information);</code></p> 
     166<ul> 
     167        <li>&quot;target&quot; will be any valid jQuery selector or selectors.</li> 
     168        <li>&quot;speed&quot; is optional, and is set to either slow, normal, fast, or alternatively a number of milliseconds.</li> 
     169        <li>&quot;extra information&quot; is optional, and could include a callback, or other additional information.</li> 
     170</ul> 
     171 
     172<h3>toggleClass()</h3> 
     173 
     174<p>This function will add or remove a CSS class to its target.</p> 
     175<p><code>$this-&gt;jquery-&gt;toggleClass(target, class)</code></p> 
     176<ul> 
     177        <li>&quot;target&quot; will be any valid jQuery selector or selectors.</li> 
     178        <li>&quot;class&quot; is any CSS classname. Note that this class must be defined and available in a CSS that is already loaded.</li> 
     179        </ul> 
     180 
     181<h3>fadeIn() / fadeOut()</h3> 
     182 
     183<p>These effects cause an element(s) to disappear or reappear over time.</p> 
     184<p><code>$this-&gt;jquery-&gt;fadeIn(target,  optional speed, optional extra information);<br /> 
     185        $this-&gt;jquery-&gt;fadeOut(target,  optional speed, optional extra information);</code></p> 
     186<ul> 
     187        <li>&quot;target&quot; will be any valid jQuery selector or selectors.</li> 
     188        <li>&quot;speed&quot; is optional, and is set to either slow, normal, fast, or alternatively a number of milliseconds.</li> 
     189        <li>&quot;extra information&quot; is optional, and could include a callback, or other additional information.</li> 
     190</ul> 
     191 
     192<h3>slideUp() / slideDown() / slideToggle()</h3> 
     193 
     194<p>These effects cause an element(s) to slide.</p> 
     195<p><code>$this-&gt;jquery-&gt;slideUp(target,  optional speed, optional extra information);<br /> 
     196        $this-&gt;jquery-&gt;slideDown(target,  optional speed, optional extra information);<br /> 
     197$this-&gt;jquery-&gt;slideToggle(target,  optional speed, optional extra information);</code></p> 
     198<ul> 
     199        <li>&quot;target&quot; will be any valid jQuery selector or selectors.</li> 
     200        <li>&quot;speed&quot; is optional, and is set to either slow, normal, fast, or alternatively a number of milliseconds.</li> 
     201        <li>&quot;extra information&quot; is optional, and could include a callback, or other additional information.</li> 
     202</ul> 
     203 
     204<h2>Plugins</h2> 
     205 
     206<p> 
     207 
     208<p>Some select jQuery plugins are made available using this library.</p> 
     209 
     210<h3>corner()</h3> 
     211<p>Used to add distinct corners to page elements. For full details see <a href="http://www.malsup.com/jquery/corner/">http://www.malsup.com/jquery/corner/</a></p> 
     212<p><code>$this-&gt;jquery-&gt;corner(target, corner_style);</code></p> 
     213<ul> 
     214        <li>&quot;target&quot; will be any valid jQuery selector or selectors.</li> 
     215        <li>&quot;corner_style&quot; is optional, and can be set to any valid style such as round, sharp, bevel, bite, dog, etc. Individual corners can be set by following the style with a space and using &quot;tl&quot; (top left), &quot;tr&quot; (top right), &quot;bl&quot; (bottom left), or &quot;br&quot; (bottom right).</li> 
     216</ul> 
     217<p><code>$this-&gt;jquery-&gt;corner(&quot;#note&quot;, &quot;cool tl br&quot;);</code></p> 
     218 
     219<h3>tablesorter()</h3> 
     220 
     221<p>description to come</p> 
     222 
     223<h3>modal()</h3> 
     224 
     225<p>description to come</p> 
     226 
     227<h3>calendar()</h3> 
     228 
     229<p>description to come</p> 
     230 
    89231</div> 
    90232<!-- END CONTENT --> 
     
    98240<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp; 
    99241Next Topic:&nbsp;&nbsp;<a href="language.html">Language Class</a></p> 
    100 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     242<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    101243</div> 
    102244 
    
          
  • TabularUnified libraries/language.html

    • Property svn:executable set to *
    r2 r3  
    6565 
    6666<p>Language files are typically stored in your <dfn>system/language</dfn> directory.  Alternately you can create a folder called <kbd>language</kbd> inside 
    67 your <kbd>application</kbd> folder and store them there.  CodeIgniter will look first in your <dfn>system/application/language</dfn> 
     67your <kbd>application</kbd> folder and store them there.  CodeIgniter will look first in your <dfn>application/language</dfn> 
    6868directory.  If the directory does not exist or the specified language is not located there CI will instead look in your global 
    6969<dfn>system/language</dfn> folder.</p> 
     
    131131Next Topic:&nbsp;&nbsp;<a href="output.html">Output Class</a> 
    132132</p> 
    133 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     133<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    134134</div> 
    135135 
    
          
  • TabularUnified libraries/loader.html

    • Property svn:executable set to *
    r2 r3  
    7777<code>$this->load->library('email');</code> 
    7878 
    79 <p>Once loaded, the library will be ready for use, using <kbd>$this->email-></kbd><samp><em>some_function</em>()</samp>. 
    80  
    81 <p>Library files can be stored in subdirectories within the main "libraries" folder, or within your personal <dfn>application/libraries</dfn> folder.   
    82 To load a file located in a subdirectory, simply include the path, relative to the "libraries" folder.   
     79<p>Once loaded, the library will be ready for use, using <kbd>$this->email-></kbd><samp><em>some_function</em>()</samp>.</p> 
     80 
     81<p>Library files can be stored in subdirectories within the main "libraries" folder, or within your personal <dfn>application/libraries</dfn> folder. 
     82To load a file located in a subdirectory, simply include the path, relative to the "libraries" folder. 
    8383For example, if you have file located at:</p> 
    8484 
     
    188188<h2>Application "Packages"</h2> 
    189189 
    190 <p>An application package allows for the easy distribution of complete sets of resources in a single directory, complete with its own libraries, models, helpers, config, and language files.  It is recommended that these packages be placed in the <dfn>system/application/third_party</dfn> folder.  Below is a sample map of an package directory</p> 
     190<p>An application package allows for the easy distribution of complete sets of resources in a single directory, complete with its own libraries, models, helpers, config, and language files.  It is recommended that these packages be placed in the <dfn>application/third_party</dfn> folder.  Below is a sample map of an package directory</p> 
    191191 
    192192 
     
    195195<p>The following is an example of a directory for an application package named "Foo Bar".</p> 
    196196 
    197 <code>/system/application/third_party/foo_bar<br /> 
     197<code>/application/third_party/foo_bar<br /> 
    198198<br /> 
    199199config/<br /> 
     
    218218 
    219219<h3>$this->load->remove_package_path()</h3> 
    220          
     220 
    221221<p>Or to remove a specific package path, specify the same path previously given to <kbd>add_package_path() for a package.</kbd>:</p> 
    222222 
     
    249249Next Topic:&nbsp;&nbsp;<a href="language.html">Language Class</a> 
    250250</p> 
    251 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     251<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p> 
    252252</div> 
    253253 
    
          
  • TabularUnified libraries/output.html

    • Property svn:executable set to *
    r2 r3  
    141141 
    142142        <p>CodeIgniter will parse the pseudo-variables <var>{elapsed_time}</var> and <var>{memory_usage}</var> in your output by default.  To disable this, set the <var>$parse_exec_vars</var> class property to <var>FALSE</var> in your controller. 
    143                  
     143 
    144144        <code>$this->output->parse_exec_vars = FALSE;</code> 
    145          
     145 
    146146</div> 
    147147<!-- END CONTENT --> 
     
    156156Next Topic:&nbsp;&nbsp;<a href="pagination.html">Pagination Class</a> 
    157157</p> 
    158 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006-2010 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p> 
     158<p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p>