mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Update User Guide
This commit is contained in:
parent
baca5cbe3a
commit
b47bc466be
@ -341,7 +341,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -537,7 +537,7 @@ security, text, url</p></li>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -688,7 +688,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -973,7 +973,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -739,7 +739,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -804,7 +804,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -671,7 +671,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -811,7 +811,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -678,7 +678,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -718,7 +718,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -789,7 +789,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -741,7 +741,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -639,7 +639,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -388,7 +388,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -317,7 +317,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -325,7 +325,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -362,7 +362,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -354,7 +354,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -324,7 +324,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -307,7 +307,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -364,7 +364,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -327,7 +327,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -359,7 +359,7 @@ for a complete list of changes.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -349,7 +349,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -376,7 +376,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -325,7 +325,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -303,7 +303,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -304,7 +304,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -562,7 +562,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -318,7 +318,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -306,7 +306,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -332,7 +332,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -309,7 +309,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -341,7 +341,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -310,7 +310,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -293,7 +293,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -322,7 +322,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -314,7 +314,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -328,7 +328,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -316,7 +316,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -307,7 +307,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -761,7 +761,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -310,7 +310,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -323,7 +323,7 @@ for a complete list of bugs fixed.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -502,7 +502,7 @@ be familiar with when creating your own commands. It also has a <a class="refere
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -393,7 +393,7 @@ See the <a class="reference internal" href="spark_commands.html"><span class="do
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -643,7 +643,7 @@ generation.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -704,7 +704,7 @@ waiting for a key press.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -333,7 +333,7 @@ allows you to prompt a user for information, making it easy to build flexible, s
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -354,7 +354,7 @@ but adds some accessor methods for convenience.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -300,7 +300,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -350,7 +350,7 @@ You may also use <code class="docutils literal notranslate"><span class="pre">sp
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -385,7 +385,7 @@ the first one to get a chance to locate the file.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -546,7 +546,7 @@ that single call will return a new or shared instance:</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -415,7 +415,7 @@ of the HTTP response. This gives you an easy and powerful way to construct your
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -300,7 +300,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -365,7 +365,7 @@ you need.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -518,7 +518,7 @@ inappropriately.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -580,7 +580,7 @@ would simply use the framework’s <code class="docutils literal notranslate"><s
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -380,7 +380,7 @@ settings inside <strong>app/Config/Paths.php</strong>.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -335,7 +335,7 @@ database result ID. The connection ID can be accessed using:</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -649,7 +649,7 @@ will be the path to your database file.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -432,7 +432,7 @@ connections, you can explicitly close the connection.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -318,7 +318,7 @@ potentially missing indexes, slow queries, etc. An example usage might be:</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -430,7 +430,7 @@ complement of functions for working with data.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -383,7 +383,7 @@ etc…):</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -307,7 +307,7 @@ patterns. The database functions offer clear, simple syntax.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -515,7 +515,7 @@ for each key associated with a table.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -283,36 +283,46 @@
|
||||
<li><p><a class="reference internal" href="#simplified-queries" id="id4">Simplified Queries</a></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p><a class="reference internal" href="#working-with-database-prefixes-manually" id="id5">Working with Database Prefixes Manually</a></p></li>
|
||||
<li><p><a class="reference internal" href="#protecting-identifiers" id="id6">Protecting Identifiers</a></p></li>
|
||||
<li><p><a class="reference internal" href="#escaping-values" id="id7">Escaping Values</a></p>
|
||||
<li><p><a class="reference internal" href="#working-with-database-prefixes-manually" id="id5">Working with Database Prefixes Manually</a></p>
|
||||
<ul>
|
||||
<li><p><a class="reference internal" href="#db-escape" id="id8">1. $db->escape()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-escapestring" id="id9">2. $db->escapeString()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-escapelikestring" id="id10">3. $db->escapeLikeString()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-prefixtable" id="id6">$db->prefixTable()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-setprefix" id="id7">$db->setPrefix()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-getprefix" id="id8">$db->getPrefix()</a></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p><a class="reference internal" href="#query-bindings" id="id11">Query Bindings</a></p>
|
||||
<li><p><a class="reference internal" href="#protecting-identifiers" id="id9">Protecting Identifiers</a></p>
|
||||
<ul>
|
||||
<li><p><a class="reference internal" href="#named-bindings" id="id12">Named Bindings</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-protectidentifiers" id="id10">$db->protectIdentifiers()</a></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p><a class="reference internal" href="#handling-errors" id="id13">Handling Errors</a></p>
|
||||
<li><p><a class="reference internal" href="#escaping-values" id="id11">Escaping Values</a></p>
|
||||
<ul>
|
||||
<li><p><a class="reference internal" href="#db-error" id="id14">$db->error()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-escape" id="id12">1. $db->escape()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-escapestring" id="id13">2. $db->escapeString()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-escapelikestring" id="id14">3. $db->escapeLikeString()</a></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p><a class="reference internal" href="#prepared-queries" id="id15">Prepared Queries</a></p>
|
||||
<li><p><a class="reference internal" href="#query-bindings" id="id15">Query Bindings</a></p>
|
||||
<ul>
|
||||
<li><p><a class="reference internal" href="#preparing-the-query" id="id16">Preparing the Query</a></p></li>
|
||||
<li><p><a class="reference internal" href="#executing-the-query" id="id17">Executing the Query</a></p></li>
|
||||
<li><p><a class="reference internal" href="#other-methods" id="id18">Other Methods</a></p></li>
|
||||
<li><p><a class="reference internal" href="#named-bindings" id="id16">Named Bindings</a></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p><a class="reference internal" href="#working-with-query-objects" id="id19">Working with Query Objects</a></p>
|
||||
<li><p><a class="reference internal" href="#handling-errors" id="id17">Handling Errors</a></p>
|
||||
<ul>
|
||||
<li><p><a class="reference internal" href="#getlastquery" id="id20">getLastQuery()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#the-query-class" id="id21">The Query Class</a></p></li>
|
||||
<li><p><a class="reference internal" href="#db-error" id="id18">$db->error()</a></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p><a class="reference internal" href="#prepared-queries" id="id19">Prepared Queries</a></p>
|
||||
<ul>
|
||||
<li><p><a class="reference internal" href="#preparing-the-query" id="id20">Preparing the Query</a></p></li>
|
||||
<li><p><a class="reference internal" href="#executing-the-query" id="id21">Executing the Query</a></p></li>
|
||||
<li><p><a class="reference internal" href="#other-methods" id="id22">Other Methods</a></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p><a class="reference internal" href="#working-with-query-objects" id="id23">Working with Query Objects</a></p>
|
||||
<ul>
|
||||
<li><p><a class="reference internal" href="#db-getlastquery" id="id24">$db->getLastQuery()</a></p></li>
|
||||
<li><p><a class="reference internal" href="#the-query-class" id="id25">The Query Class</a></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -380,6 +390,8 @@ So keep that in mind if you’re looking for a boolean value.</p>
|
||||
</section>
|
||||
<section id="working-with-database-prefixes-manually">
|
||||
<h2><a class="toc-backref" href="#id5">Working with Database Prefixes Manually</a><a class="headerlink" href="#working-with-database-prefixes-manually" title="Permalink to this headline"></a></h2>
|
||||
<section id="db-prefixtable">
|
||||
<h3><a class="toc-backref" href="#id6">$db->prefixTable()</a><a class="headerlink" href="#db-prefixtable" title="Permalink to this headline"></a></h3>
|
||||
<p>If you have configured a database prefix and would like to prepend it to
|
||||
a table name for use in a native SQL query for example, then you can use
|
||||
the following:</p>
|
||||
@ -388,6 +400,9 @@ the following:</p>
|
||||
<span class="nv">$db</span><span class="o">-></span><span class="na">prefixTable</span><span class="p">(</span><span class="s1">'tablename'</span><span class="p">);</span> <span class="c1">// outputs prefix_tablename</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</section>
|
||||
<section id="db-setprefix">
|
||||
<h3><a class="toc-backref" href="#id7">$db->setPrefix()</a><a class="headerlink" href="#db-setprefix" title="Permalink to this headline"></a></h3>
|
||||
<p>If for any reason you would like to change the prefix programmatically
|
||||
without needing to create a new connection you can use this method:</p>
|
||||
<div class="highlight-html+php notranslate"><div class="highlight"><pre><span></span><span class="o"><?</span><span class="nx">php</span>
|
||||
@ -396,6 +411,9 @@ without needing to create a new connection you can use this method:</p>
|
||||
<span class="nv">$db</span><span class="o">-></span><span class="na">prefixTable</span><span class="p">(</span><span class="s1">'tablename'</span><span class="p">);</span> <span class="c1">// outputs newprefix_tablename</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</section>
|
||||
<section id="db-getprefix">
|
||||
<h3><a class="toc-backref" href="#id8">$db->getPrefix()</a><a class="headerlink" href="#db-getprefix" title="Permalink to this headline"></a></h3>
|
||||
<p>You can get the current prefix any time with this method:</p>
|
||||
<div class="highlight-html+php notranslate"><div class="highlight"><pre><span></span><span class="o"><?</span><span class="nx">php</span>
|
||||
|
||||
@ -403,8 +421,11 @@ without needing to create a new connection you can use this method:</p>
|
||||
</pre></div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="protecting-identifiers">
|
||||
<h2><a class="toc-backref" href="#id6">Protecting Identifiers</a><a class="headerlink" href="#protecting-identifiers" title="Permalink to this headline"></a></h2>
|
||||
<h2><a class="toc-backref" href="#id9">Protecting Identifiers</a><a class="headerlink" href="#protecting-identifiers" title="Permalink to this headline"></a></h2>
|
||||
<section id="db-protectidentifiers">
|
||||
<h3><a class="toc-backref" href="#id10">$db->protectIdentifiers()</a><a class="headerlink" href="#db-protectidentifiers" title="Permalink to this headline"></a></h3>
|
||||
<p>In many databases, it is advisable to protect table and field names - for
|
||||
example with backticks in MySQL. <strong>Query Builder queries are
|
||||
automatically protected</strong>, but if you need to manually protect an
|
||||
@ -430,13 +451,14 @@ prefixing set <code class="docutils literal notranslate"><span class="pre">true<
|
||||
</pre></div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="escaping-values">
|
||||
<h2><a class="toc-backref" href="#id7">Escaping Values</a><a class="headerlink" href="#escaping-values" title="Permalink to this headline"></a></h2>
|
||||
<h2><a class="toc-backref" href="#id11">Escaping Values</a><a class="headerlink" href="#escaping-values" title="Permalink to this headline"></a></h2>
|
||||
<p>It’s a very good security practice to escape your data before submitting
|
||||
it into your database. CodeIgniter has three methods that help you do
|
||||
this:</p>
|
||||
<section id="db-escape">
|
||||
<span id="database-queries-db-escape"></span><h3><a class="toc-backref" href="#id8">1. $db->escape()</a><a class="headerlink" href="#db-escape" title="Permalink to this headline"></a></h3>
|
||||
<span id="database-queries-db-escape"></span><h3><a class="toc-backref" href="#id12">1. $db->escape()</a><a class="headerlink" href="#db-escape" title="Permalink to this headline"></a></h3>
|
||||
<p>This function determines the data type so that it can escape only string
|
||||
data. It also automatically adds single quotes around the data so you
|
||||
don’t have to:</p>
|
||||
@ -447,7 +469,7 @@ don’t have to:</p>
|
||||
</div>
|
||||
</section>
|
||||
<section id="db-escapestring">
|
||||
<h3><a class="toc-backref" href="#id9">2. $db->escapeString()</a><a class="headerlink" href="#db-escapestring" title="Permalink to this headline"></a></h3>
|
||||
<h3><a class="toc-backref" href="#id13">2. $db->escapeString()</a><a class="headerlink" href="#db-escapestring" title="Permalink to this headline"></a></h3>
|
||||
<p>This function escapes the data passed to
|
||||
it, regardless of type. Most of the time you’ll use the above
|
||||
function rather than this one. Use the function like this:</p>
|
||||
@ -458,15 +480,14 @@ function rather than this one. Use the function like this:</p>
|
||||
</div>
|
||||
</section>
|
||||
<section id="db-escapelikestring">
|
||||
<h3><a class="toc-backref" href="#id10">3. $db->escapeLikeString()</a><a class="headerlink" href="#db-escapelikestring" title="Permalink to this headline"></a></h3>
|
||||
<h3><a class="toc-backref" href="#id14">3. $db->escapeLikeString()</a><a class="headerlink" href="#db-escapelikestring" title="Permalink to this headline"></a></h3>
|
||||
<p>This method should be used when
|
||||
strings are to be used in LIKE conditions so that LIKE wildcards
|
||||
(<code class="docutils literal notranslate"><span class="pre">%</span></code>, <code class="docutils literal notranslate"><span class="pre">_</span></code>) in the string are also properly escaped.</p>
|
||||
<div class="highlight-html+php notranslate"><div class="highlight"><pre><span></span><span class="o"><?</span><span class="nx">php</span>
|
||||
|
||||
<span class="nv">$search</span> <span class="o">=</span> <span class="s1">'20% raise'</span><span class="p">;</span>
|
||||
<span class="nv">$sql</span> <span class="o">=</span> <span class="s2">"SELECT id FROM table WHERE column LIKE '%"</span> <span class="o">.</span>
|
||||
<span class="nv">$db</span><span class="o">-></span><span class="na">escapeLikeString</span><span class="p">(</span><span class="nv">$search</span><span class="p">)</span> <span class="o">.</span> <span class="s2">"%' ESCAPE '!'"</span><span class="p">;</span>
|
||||
<span class="nv">$sql</span> <span class="o">=</span> <span class="s2">"SELECT id FROM table WHERE column LIKE '%"</span> <span class="o">.</span> <span class="nv">$db</span><span class="o">-></span><span class="na">escapeLikeString</span><span class="p">(</span><span class="nv">$search</span><span class="p">)</span> <span class="o">.</span> <span class="s2">"%' ESCAPE '!'"</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="admonition important">
|
||||
@ -480,7 +501,7 @@ condition for you, and so you’ll have to manually do that.</p>
|
||||
</section>
|
||||
</section>
|
||||
<section id="query-bindings">
|
||||
<h2><a class="toc-backref" href="#id11">Query Bindings</a><a class="headerlink" href="#query-bindings" title="Permalink to this headline"></a></h2>
|
||||
<h2><a class="toc-backref" href="#id15">Query Bindings</a><a class="headerlink" href="#query-bindings" title="Permalink to this headline"></a></h2>
|
||||
<p>Bindings enable you to simplify your query syntax by letting the system
|
||||
put the queries together for you. Consider the following example:</p>
|
||||
<div class="highlight-html+php notranslate"><div class="highlight"><pre><span></span><span class="o"><?</span><span class="nx">php</span>
|
||||
@ -506,7 +527,7 @@ values in the array in the second parameter of the query function.</p>
|
||||
automatically escaped producing safer queries.
|
||||
You don’t have to remember to manually escape data - the engine does it automatically for you.</p>
|
||||
<section id="named-bindings">
|
||||
<h3><a class="toc-backref" href="#id12">Named Bindings</a><a class="headerlink" href="#named-bindings" title="Permalink to this headline"></a></h3>
|
||||
<h3><a class="toc-backref" href="#id16">Named Bindings</a><a class="headerlink" href="#named-bindings" title="Permalink to this headline"></a></h3>
|
||||
<p>Instead of using the question mark to mark the location of the bound values,
|
||||
you can name the bindings, allowing the keys of the values passed in to match
|
||||
placeholders in the query:</p>
|
||||
@ -527,9 +548,9 @@ placeholders in the query:</p>
|
||||
</section>
|
||||
</section>
|
||||
<section id="handling-errors">
|
||||
<h2><a class="toc-backref" href="#id13">Handling Errors</a><a class="headerlink" href="#handling-errors" title="Permalink to this headline"></a></h2>
|
||||
<h2><a class="toc-backref" href="#id17">Handling Errors</a><a class="headerlink" href="#handling-errors" title="Permalink to this headline"></a></h2>
|
||||
<section id="db-error">
|
||||
<h3><a class="toc-backref" href="#id14">$db->error()</a><a class="headerlink" href="#db-error" title="Permalink to this headline"></a></h3>
|
||||
<h3><a class="toc-backref" href="#id18">$db->error()</a><a class="headerlink" href="#db-error" title="Permalink to this headline"></a></h3>
|
||||
<p>If you need to get the last error that has occurred, the <code class="docutils literal notranslate"><span class="pre">error()</span></code> method
|
||||
will return an array containing its code and message. Here’s a quick
|
||||
example:</p>
|
||||
@ -543,7 +564,7 @@ example:</p>
|
||||
</section>
|
||||
</section>
|
||||
<section id="prepared-queries">
|
||||
<h2><a class="toc-backref" href="#id15">Prepared Queries</a><a class="headerlink" href="#prepared-queries" title="Permalink to this headline"></a></h2>
|
||||
<h2><a class="toc-backref" href="#id19">Prepared Queries</a><a class="headerlink" href="#prepared-queries" title="Permalink to this headline"></a></h2>
|
||||
<p>Most database engines support some form of prepared statements, that allow you to prepare a query once, and then run
|
||||
that query multiple times with new sets of data. This eliminates the possibility of SQL injection since the data is
|
||||
passed to the database in a different format than the query itself. When you need to run the same query multiple times
|
||||
@ -552,7 +573,7 @@ out to the database twice as often. Since the Query Builder and Database connect
|
||||
for you, the safety aspect is already taken care of for you. There will be times, though, when you need the ability
|
||||
to optimize the query by running a prepared statement, or prepared query.</p>
|
||||
<section id="preparing-the-query">
|
||||
<h3><a class="toc-backref" href="#id16">Preparing the Query</a><a class="headerlink" href="#preparing-the-query" title="Permalink to this headline"></a></h3>
|
||||
<h3><a class="toc-backref" href="#id20">Preparing the Query</a><a class="headerlink" href="#preparing-the-query" title="Permalink to this headline"></a></h3>
|
||||
<p>This can be easily done with the <code class="docutils literal notranslate"><span class="pre">prepare()</span></code> method. This takes a single parameter, which is a Closure that returns
|
||||
a query object. Query objects are automatically generated by any of the “final” type queries, including <strong>insert</strong>,
|
||||
<strong>update</strong>, <strong>delete</strong>, <strong>replace</strong>, and <strong>get</strong>. This is handled the easiest by using the Query Builder to
|
||||
@ -597,7 +618,7 @@ array through in the second parameter:</p>
|
||||
</div>
|
||||
</section>
|
||||
<section id="executing-the-query">
|
||||
<h3><a class="toc-backref" href="#id17">Executing the Query</a><a class="headerlink" href="#executing-the-query" title="Permalink to this headline"></a></h3>
|
||||
<h3><a class="toc-backref" href="#id21">Executing the Query</a><a class="headerlink" href="#executing-the-query" title="Permalink to this headline"></a></h3>
|
||||
<p>Once you have a prepared query you can use the <code class="docutils literal notranslate"><span class="pre">execute()</span></code> method to actually run the query. You can pass in as
|
||||
many variables as you need in the query parameters. The number of parameters you pass must match the number of
|
||||
placeholders in the query. They must also be passed in the same order as the placeholders appear in the original
|
||||
@ -626,7 +647,7 @@ query:</p>
|
||||
For queries of type “read” it returns a standard <a class="reference internal" href="results.html"><span class="doc">result set</span></a>.</p>
|
||||
</section>
|
||||
<section id="other-methods">
|
||||
<h3><a class="toc-backref" href="#id18">Other Methods</a><a class="headerlink" href="#other-methods" title="Permalink to this headline"></a></h3>
|
||||
<h3><a class="toc-backref" href="#id22">Other Methods</a><a class="headerlink" href="#other-methods" title="Permalink to this headline"></a></h3>
|
||||
<p>In addition to these two primary methods, the prepared query object also has the following methods:</p>
|
||||
<section id="close">
|
||||
<span id="database-queries-stmt-close"></span><h4>close()<a class="headerlink" href="#close" title="Permalink to this headline"></a></h4>
|
||||
@ -654,20 +675,23 @@ close out the prepared statement when you’re done with it:</p>
|
||||
<h4>hasError()<a class="headerlink" href="#haserror" title="Permalink to this headline"></a></h4>
|
||||
<p>Returns boolean true/false if the last <code class="docutils literal notranslate"><span class="pre">execute()</span></code> call created any errors.</p>
|
||||
</section>
|
||||
<section id="geterrorcode-geterrormessage">
|
||||
<h4>getErrorCode() getErrorMessage()<a class="headerlink" href="#geterrorcode-geterrormessage" title="Permalink to this headline"></a></h4>
|
||||
<section id="geterrorcode">
|
||||
<h4>getErrorCode()<a class="headerlink" href="#geterrorcode" title="Permalink to this headline"></a></h4>
|
||||
</section>
|
||||
<section id="geterrormessage">
|
||||
<h4>getErrorMessage()<a class="headerlink" href="#geterrormessage" title="Permalink to this headline"></a></h4>
|
||||
<p>If any errors were encountered these methods can be used to retrieve the error code and string.</p>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
<section id="working-with-query-objects">
|
||||
<h2><a class="toc-backref" href="#id19">Working with Query Objects</a><a class="headerlink" href="#working-with-query-objects" title="Permalink to this headline"></a></h2>
|
||||
<h2><a class="toc-backref" href="#id23">Working with Query Objects</a><a class="headerlink" href="#working-with-query-objects" title="Permalink to this headline"></a></h2>
|
||||
<p>Internally, all queries are processed and stored as instances of
|
||||
<code class="docutils literal notranslate"><span class="pre">CodeIgniter\Database\Query</span></code>. This class is responsible for binding
|
||||
the parameters, otherwise preparing the query, and storing performance
|
||||
data about its query.</p>
|
||||
<section id="getlastquery">
|
||||
<h3><a class="toc-backref" href="#id20">getLastQuery()</a><a class="headerlink" href="#getlastquery" title="Permalink to this headline"></a></h3>
|
||||
<section id="db-getlastquery">
|
||||
<h3><a class="toc-backref" href="#id24">$db->getLastQuery()</a><a class="headerlink" href="#db-getlastquery" title="Permalink to this headline"></a></h3>
|
||||
<p>When you just need to retrieve the last Query object, use the
|
||||
<code class="docutils literal notranslate"><span class="pre">getLastQuery()</span></code> method:</p>
|
||||
<div class="highlight-html+php notranslate"><div class="highlight"><pre><span></span><span class="o"><?</span><span class="nx">php</span>
|
||||
@ -678,7 +702,7 @@ data about its query.</p>
|
||||
</div>
|
||||
</section>
|
||||
<section id="the-query-class">
|
||||
<h3><a class="toc-backref" href="#id21">The Query Class</a><a class="headerlink" href="#the-query-class" title="Permalink to this headline"></a></h3>
|
||||
<h3><a class="toc-backref" href="#id25">The Query Class</a><a class="headerlink" href="#the-query-class" title="Permalink to this headline"></a></h3>
|
||||
<p>Each query object stores several pieces of information about the query itself.
|
||||
This is used, in part, by the Timeline feature, but is available for your use
|
||||
as well.</p>
|
||||
@ -778,7 +802,7 @@ parameter is the value you want it replaced with:</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -4114,7 +4114,7 @@ a <code class="docutils literal notranslate"><span class="pre">DELETE</span></co
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -1082,7 +1082,7 @@ field meta-data.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -493,7 +493,7 @@ commits/rollbacks.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -330,7 +330,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -353,7 +353,7 @@ Also, you can use this command as <code class="docutils literal notranslate"><sp
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -1176,7 +1176,7 @@ and <code class="docutils literal notranslate"><span class="pre">addForeignKey()
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -297,7 +297,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -763,7 +763,7 @@ have not yet been run, and runs them in order of their version (namespaces inter
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -393,7 +393,7 @@ a dedicated controller:</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -309,7 +309,7 @@ modules, projects, and the framework itself.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -384,7 +384,7 @@ Controller instead:</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -300,7 +300,7 @@ attempting it.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -295,7 +295,7 @@ section of our code repository.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -434,7 +434,7 @@ instead of the native ones (this is known as “method overriding”). This allo
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -427,7 +427,7 @@ When <strong>true</strong>, all events will be skipped over during the trigger m
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -299,7 +299,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -345,7 +345,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -354,7 +354,7 @@ have to expire normally.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -1270,7 +1270,7 @@ instance every time.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -659,7 +659,7 @@ by treating <code class="docutils literal notranslate"><span class="pre">Regiona
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -407,7 +407,7 @@ output. Disabling error reporting in production is a
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -538,7 +538,7 @@ setting the environment variable <code class="docutils literal notranslate"><spa
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -499,7 +499,7 @@ Browse each one to see what they do.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -303,7 +303,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -514,7 +514,7 @@ alias to your new class name.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -427,7 +427,7 @@ of those:</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -651,7 +651,7 @@ This is because <code class="docutils literal notranslate"><span class="pre">mod
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -414,7 +414,7 @@ settings of the root and alias directives), and then sends the request to the in
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -1471,7 +1471,7 @@
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -581,7 +581,7 @@ will be supplying an initial <code class="docutils literal notranslate"><span cl
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
@ -435,7 +435,7 @@ parameters.</p>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2019-2023 CodeIgniter Foundation.
|
||||
<span class="lastupdated">Last updated on Jan 21, 2023.
|
||||
<span class="lastupdated">Last updated on Jan 22, 2023.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user