From c22b9b93ff45a1ff93d82bb669a89f5460e4ec5c Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Tue, 15 Mar 2011 16:53:38 +0000 Subject: Added form_helper form_open() behaviour change to upgrade guide. --- user_guide/installation/upgrade_201.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'user_guide') 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

This config file has been updated to contain more mime types, please copy it to application/config/mimes.php.

+

Step 3: Check for forms posting to default controller

+ +

+ The default behavior for form_open() 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: +

+ +echo form_open(); //<form action="" method="post" accept-charset="utf-8"> + +

to use either a / or base_url():

+ +echo form_open('/'); //<form action="http://example.com/index.php/" method="post" accept-charset="utf-8">
+echo form_open('/'); //<form action="http://example.com/" method="post" accept-charset="utf-8">
+ -- cgit v1.2.3-24-g4f1b From 02d676bef181b9484ef52200684cf8a086e6ea9e Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Tue, 15 Mar 2011 17:03:08 +0000 Subject: Missed tiny change from last commit. --- user_guide/installation/upgrade_201.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide') diff --git a/user_guide/installation/upgrade_201.html b/user_guide/installation/upgrade_201.html index 6c423d82e..879067c6e 100644 --- a/user_guide/installation/upgrade_201.html +++ b/user_guide/installation/upgrade_201.html @@ -82,7 +82,7 @@ Upgrading from 2.0.0 to 2.0.1

to use either a / or base_url():

echo form_open('/'); //<form action="http://example.com/index.php/" method="post" accept-charset="utf-8">
-echo form_open('/'); //<form action="http://example.com/" method="post" accept-charset="utf-8">
+echo form_open(base_url()); //<form action="http://example.com/" method="post" accept-charset="utf-8"> -- cgit v1.2.3-24-g4f1b