Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Incrementing DB values
Post: RE: Incrementing DB values

I was finally able to get around to the use case where I needed to do this and here is what worked for me. PHP Code:$this->set('field', 'field + ' . $this->db-&...
Derek CodeIgniter 4 Support 3 504 05-14-2021, 09:48 AM
    Thread: getStatusCode Deprecation
Post: RE: getStatusCode Deprecation

OK, thanks for letting me know. I won't worry about replacing it then.
Derek CodeIgniter 4 Support 2 274 05-04-2021, 07:51 AM
    Thread: Apache Headers on Incoming Request
Post: RE: Apache Headers on Incoming Request

So I actually discovered that CodeIgniter has something in place in the .htaccess to make sure that the authorization header does get passed through but for some reason in my setup that wasn't working...
Derek CodeIgniter 4 Feature Requests 2 809 04-29-2021, 02:54 PM
    Thread: getStatusCode Deprecation
Post: getStatusCode Deprecation

In CodeIgniter\HTTP\ResponseInterface the getStatusCode function is deprecated and says, "To be replaced by the PSR-7 version (compatible)". I am curious as to why this was deprecated since it is part...
Derek CodeIgniter 4 Support 2 274 04-29-2021, 02:40 PM
    Thread: Disable Code Coverage
Post: Disable Code Coverage

When I run my tests it produces a coverage report by default. I use TDD to build my app so the majority of the time, a coverage report is kind of useless because I'm only running one test or one class...
Derek CodeIgniter 4 Support 1 324 03-26-2021, 01:57 PM
    Thread: Apache Headers on Incoming Request
Post: Apache Headers on Incoming Request

I deal mostly in building API's and lately my authentication has been coming through as a Bearer Token passed in through an "Authorization" header. The problem that I have is that the IncomingRequest ...
Derek CodeIgniter 4 Feature Requests 2 809 12-23-2020, 11:50 AM
    Thread: Incrementing DB values
Post: Incrementing DB values

Is there a way in CI4 to increment a value in a database in one query? I would like to be able to do something like: Code:UPDATE table set field = field+5 where some_condition I know I can do this: ...
Derek CodeIgniter 4 Support 3 504 11-12-2020, 04:54 PM
    Thread: Testing JSON/XML requests with Feature Tests
Post: Testing JSON/XML requests with Feature Tests

Currently, when creating an API that is expecting to receive a JSON or XML request body, the Feature Test functionality doesn't work because the body of the request is never set. I would request that ...
Derek CodeIgniter 4 Feature Requests 0 615 10-04-2020, 01:56 PM
    Thread: Testing a PUT call with validation is failing
Post: Testing a PUT call with validation is failing

I am trying to add some validation to my controller but my tests are failing because the request is trying to treat the PUT call as if it was a string. My test looks like this: PHP Code:class Use...
Derek CodeIgniter 4 Support 0 319 06-16-2020, 09:58 AM
    Thread: Setting Request Headers in Feature Tests
Post: Setting Request Headers in Feature Tests

I am creating an API with CI4 and the authentication is utilizing a Bearer token in the authorization header of the request. It would be nice if I could set that when running a feature test using $...
Derek CodeIgniter 4 Feature Requests 0 577 06-09-2020, 02:17 PM

  Theme ¬© 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.