Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Codeigniter 4 redirecting POST request to "/" when call made from cURL
Post: RE: Codeigniter 4 redirecting POST request to "/" ...

I found the issue! It was the CSRF protection. I just had to update it to exclude API calls: public $globals = [ 'before' => [ // 'honeypot', 'csrf' => ['except'...
184 Views
1 Replies
03-07-2024, 12:02 PM
umizoomi
    Thread: Codeigniter 4 redirecting POST request to "/" when call made from cURL
Post: Codeigniter 4 redirecting POST request to "/" when...

I am writing an API and one of the methods is a POST that processes the data passed in the call and sets a response status. When I make a call to this method from a website form submission, it works f...
184 Views
1 Replies
03-07-2024, 09:17 AM
umizoomi
    Thread: Enabling "resetServices" causes "Session ini settings cannot be changed..." error
Post: RE: Enabling "resetServices" causes "Session ini s...

kenjis Wrote: (06-11-2022, 09:00 PM) -- Use mockSession instead of real Session class. You cannot test Session perfectly, because Session does not work on CLI. -- Got it all to work! Thanks for ...
2,932 Views
6 Replies
06-13-2022, 11:31 AM
umizoomi
    Thread: Enabling "resetServices" causes "Session ini settings cannot be changed..." error
Post: RE: Enabling "resetServices" causes "Session ini s...

@kenjis any suggestions?
2,932 Views
6 Replies
06-11-2022, 08:52 PM
umizoomi
    Thread: php spark serve does not work in CI4.2.0
Post: RE: php spark serve does not work in CI4.2.0

iRedds Wrote: (06-10-2022, 12:18 AM) -- try updating spark and public/index.php -- Thanks! That worked
5,306 Views
3 Replies
06-10-2022, 09:37 AM
umizoomi
    Thread: Enabling "resetServices" causes "Session ini settings cannot be changed..." error
Post: RE: Enabling "resetServices" causes "Session ini s...

kenjis Wrote: (06-09-2022, 04:47 PM) -- umizoomi Wrote: (06-09-2022, 08:02 AM) -- This was done with CI4.1.9 and since CI4.2 enables resetServices by default, I tried upgrading to that, which correc...
2,932 Views
6 Replies
06-09-2022, 05:59 PM
umizoomi
    Thread: Enabling "resetServices" causes "Session ini settings cannot be changed..." error
Post: Enabling "resetServices" causes "Session ini setti...

I need to clear sessions between post calls in my test suite and it appears that the best way to do that is to enable resetServices in the $setUpMethods array: https://github.com/codeigniter4/CodeIgn...
2,932 Views
6 Replies
06-09-2022, 08:02 AM
umizoomi
    Thread: php spark serve does not work in CI4.2.0
Post: php spark serve does not work in CI4.2.0

When I upgrade to CI4.2.0 "php spark serve" stops working and just displays a blank message. The below set of commands are in Git Bash. I first run "php spark serve" in CI4.1.9 and it works fine, then...
5,306 Views
3 Replies
06-09-2022, 07:06 AM
umizoomi
    Thread: "valid_date" validation does not prevent submission of spaces
Post: RE: "valid_date" validation does not prevent submi...

kenjis Wrote: (02-27-2022, 06:19 PM) -- Because you set `permit_empty`. -- Personally, I don't think that should be expected behavior, even with `permit_empty` being set. The PHP function empty (ht...
2,021 Views
3 Replies
02-27-2022, 06:43 PM
umizoomi
    Thread: "valid_date" validation does not prevent submission of spaces
Post: "valid_date" validation does not prevent submissio...

I am using the Validation library to check that a date is either empty or a valid date using the following rules: PHP Code: -- $validation->setRules(array(     'date' => array(         'label'...
2,021 Views
3 Replies
02-26-2022, 09:32 PM
umizoomi

Theme © iAndrew 2016 - Forum software by © MyBB