summaryrefslogtreecommitdiffstats
path: root/user_guide/installation
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-03-15 17:53:38 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-03-15 17:53:38 +0100
commitc22b9b93ff45a1ff93d82bb669a89f5460e4ec5c (patch)
tree65e46cf1e322bff98d2edec6c78bf9af76b320f2 /user_guide/installation
parent07e50b9b235f3c53bce580d8cc9a59e4e14df274 (diff)
Added form_helper form_open() behaviour change to upgrade guide.
Diffstat (limited to 'user_guide/installation')
-rw-r--r--user_guide/installation/upgrade_201.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/user_guide/installation/upgrade_201.html b/user_guide/installation/upgrade_201.html
index eba87f95a..6c423d82e 100644
--- a/user_guide/installation/upgrade_201.html
+++ b/user_guide/installation/upgrade_201.html
@@ -70,6 +70,20 @@ Upgrading from 2.0.0 to 2.0.1
<p>This config file has been updated to contain more mime types, please copy it to <kbd>application/config/mimes.php</kbd>.</p>
+<h2>Step 3: Check for forms posting to default controller</h2>
+
+<p>
+ The default behavior for <kbd>form_open()</kbd> when called with no parameters used to be to post to the default controller, but it will now just leave an empty action="" meaning the form will submit to the current URL.
+ If submitting to the default controller was the expected behavior it will need to be changed from:
+</p>
+
+<code>echo form_open(); //&lt;form action="" method="post" accept-charset="utf-8"></code>
+
+<p>to use either a / or <kbd>base_url()</kbd>:</p>
+
+<code>echo form_open('/'); //&lt;form action="http://example.com/index.php/" method="post" accept-charset="utf-8"><br/>
+echo form_open('/'); //&lt;form action="http://example.com/" method="post" accept-charset="utf-8"></code>
+
</div>
<!-- END CONTENT -->