Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Post is always empty on live server
Post: RE: Post is always empty on live server

The response was indeed sent twice. I am using a composer package that didn't adapt to the latest versions of CodeIgniter. I notified the developper and manually edited vendor in the meantime. Thanks...
1,057 Views
5 Replies
10-19-2021, 04:41 AM
SteeveDroz
    Thread: Post is always empty on live server
Post: RE: Post is always empty on live server

Additional information: It seems that the response is sent twice, for example, if I contact the page with curl, I get 2 ci-session cookies. I know that has been talked about on this forum before...
1,057 Views
5 Replies
10-19-2021, 02:41 AM
SteeveDroz
    Thread: Post is always empty on live server
Post: RE: Post is always empty on live server

Here is my code: The HTML code: Code: --     Adresse email         {+validation_errors field=email+}     Mot de passe         {+validation_errors field=password+}     Se connecter ...
1,057 Views
5 Replies
10-19-2021, 12:49 AM
SteeveDroz
    Thread: Post is always empty on live server
Post: Post is always empty on live server

Hello, I put up my website on the prod server and there way the following problem: When sending a form with method POST, nothing is received in the controller. [hr] Informations: When checking t...
1,057 Views
5 Replies
10-18-2021, 11:54 PM
SteeveDroz
    Thread: How can I remove a unique constraint on a field when performing a down migration?
Post: How can I remove a unique constraint on a field wh...

Copy-pasted from https://stackoverflow.com/questions/65039833/how-can-i-remove-a-unique-constraint-on-a-field-when-performing-a-down-migration (https://stackoverflow.com/questions/65039833/how-can-i-r...
992 Views
2 Replies
12-02-2020, 02:48 AM
SteeveDroz
    Thread: Can someone check base_url() and base_url("param")
Post: RE: Can someone check base_url() and base_url("par...

Oh yeah… I looked at the code and saw it was using relative URIs. I must have misread a line, sorry about my false answer. I don't intend to try to correct your way of doing, you seem way more expe...
1,904 Views
7 Replies
09-07-2020, 03:42 AM
SteeveDroz
    Thread: Can someone check base_url() and base_url("param")
Post: RE: Can someone check base_url() and base_url("par...

Ah, I see! Your problem comes from the fact that base_url($param) uses relative URIs. That means that it will display a page according to your current location. To avoid that, you can prefix you...
1,904 Views
7 Replies
09-07-2020, 02:17 AM
SteeveDroz
    Thread: Can someone check base_url() and base_url("param")
Post: RE: Can someone check base_url() and base_url("par...

Hi, I'd need 3 more informations to answer that question: 1. Where did you write that code (in which controller/model/view/library/…)? 2. What is the incorrect result you get? 3. What is the expe...
1,904 Views
7 Replies
09-06-2020, 10:24 PM
SteeveDroz
    Thread: Unable to connect to database - cannot find error messages
Post: RE: Unable to connect to database - cannot find er...

Hard to say, do you have a ".env" file at the root of your project? Its content overrides your config files. Actually, you SHOULD use that ".env" file instead of writing directly to app/Config/Data...
17,965 Views
11 Replies
09-06-2020, 10:04 PM
SteeveDroz
    Thread: Testing current URI
Post: Testing current URI

Hello, As stated in this StackOverflow question (https://stackoverflow.com/questions/63750881/how-can-i-mock-the-current-uri-with-codeigniter-4-test-suite), to which you can answer and win a few po...
426 Views
0 Replies
09-06-2020, 09:53 PM
SteeveDroz
    Thread: redirect() does not redirects
Post: RE: redirect() does not redirects

Haha, I just answered a question from you on StackOverflow and here we meet again (I promise I'm not following you). Have you tried using Filters? https://codeigniter4.github.io/userguide/incoming/...
2,050 Views
4 Replies
09-06-2020, 09:48 PM
SteeveDroz
    Thread: Recognize child locale as parent locale
Post: RE: Recognize child locale as parent locale

Thanks for your answer. It seems to be quite a lot of work for something that doesn't appear to be an edge case: browser usually aren't configures to ask for generic languages first. I'm not sure w...
2,468 Views
5 Replies
01-30-2020, 11:03 PM
SteeveDroz
    Thread: Recognize child locale as parent locale
Post: RE: Recognize child locale as parent locale

InsiteFX Wrote: (01-30-2020, 05:43 AM) -- Read: CodeIgniter User Guide - Configuring the Locale (https://codeigniter4.github.io/CodeIgniter4/outgoing/localization.html#configuring-the-locale) -- I ...
2,468 Views
5 Replies
01-30-2020, 09:14 AM
SteeveDroz
    Thread: Recognize child locale as parent locale
Post: Recognize child locale as parent locale

Hello everyone, Most locales have children locales. For example, "en" has "en_UK", "en_US", "en_AU", "en_CA", and so on. (FYI, "en" has 105 children locales!) My browser is configured to look fo...
2,468 Views
5 Replies
01-29-2020, 10:56 PM
SteeveDroz
    Thread: How can I use a helper in a unit test?
Post: RE: How can I use a helper in a unit test?

I'm a bit ashamed it was that simple. I loaded the helper in my BaseController, I should have done the same in my test case! Thanks for the answer!
1,852 Views
2 Replies
12-07-2019, 01:08 AM
SteeveDroz
    Thread: How can I use a helper in a unit test?
Post: How can I use a helper in a unit test?

Hi there! Here is my problem: I try to create a test case that extends CIDatabaseTestCase. In this one, I use a model of mine to access the database. In that model, I use the helper function...
1,852 Views
2 Replies
12-06-2019, 12:15 AM
SteeveDroz
    Thread: Testing with session
Post: RE: Testing with session

kilishan Wrote: (10-28-2019, 06:34 AM) -- CodeIgniter ships with a MockSession class you can use. For an example of using it, check out my Myth:Auth package (https://github.com/lonnieezell/myth-auth/...
2,973 Views
5 Replies
10-30-2019, 12:06 PM
SteeveDroz
    Thread: Testing with session
Post: RE: Testing with session

Just to be clear: I'm not a newbie with basic questions (I actually teach PHP and answer those basic questions all day long). So first, your code should be: PHP Code: -- if (!isset($_SESSION)) ...
2,973 Views
5 Replies
10-27-2019, 10:31 PM
SteeveDroz
    Thread: Testing with session
Post: Testing with session

Hello, I'm trying to test an "Auth" library I created. Obviously, that library uses the session. My first test looks like this: PHP Code: -- public function testConstructor() {     $auth =...
2,973 Views
5 Replies
10-27-2019, 12:05 AM
SteeveDroz
    Thread: Redirection in a helper
Post: RE: Redirection in a helper

YES!!! A thousand times yes! This est exactly and precisely what I needed. Thanks a lot.
3,812 Views
5 Replies
10-14-2019, 10:28 PM
SteeveDroz

Theme © iAndrew 2016 - Forum software by © MyBB