Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to test filters are active on route?
Post: How to test filters are active on route?

Upgraded to 4.1.3 just to be able to start adding tests to my project but fails miserably on the first hurdle. I have many, many routes configured (~100) and most of them require a JWT token with spe...
79 Views
0 Replies
06-10-2021, 04:40 AM
tgix
    Thread: CodeIgniter v4.1.3 released
Post: RE: CodeIgniter v4.1.3 released

Cool!
558 Views
7 Replies
06-06-2021, 10:35 PM
tgix
    Thread: Poll regarding CI 3.1.x to CI 4.1.x upgrade
Post: RE: Poll regarding CI 3.1.x to CI 4.1.x upgrade

Being on CI 3.x and 4.x with various projects I don't know how to cast my vote. I am happy with the performance of my 3.x projects and happy with the new functionality and modernity (is that a word?)...
1,032 Views
9 Replies
05-02-2021, 10:54 PM
tgix
    Thread: Modules constants
Post: RE: Modules constants

Constants in CI has always been confusing for me. In CI3 I kept them in constants.php but in CI4 I have divided up the different sets of constants (for example DB table names and permission constants)...
510 Views
3 Replies
03-09-2021, 01:35 AM
tgix
    Thread: Add new functions to Redis Handler
Post: RE: Add new functions to Redis Handler

eelisland Wrote: (02-24-2021, 02:11 AM) -- Hello Tgix and Thank you, it works ! :) -- Glad to hear, Happy coding!
546 Views
3 Replies
02-24-2021, 10:44 AM
tgix
    Thread: Add new functions to Redis Handler
Post: RE: Add new functions to Redis Handler

eelisland Wrote: (02-23-2021, 10:03 AM) -- What is the proper way to add thoses function to the Redis Handler whithout writing it in the System\Cache\Handlers\RedisHandler.php file ? PHP Code: --...
546 Views
3 Replies
02-23-2021, 10:45 PM
tgix
    Thread: .env Settings ignored in session driver
Post: RE: .env Settings ignored in session driver

Just a comment - I have had "strange" problems with env lately - https://github.com/codeigniter4/CodeIgniter4/issues/3992 I have stopped relying on the magic .env for many things and replaced with st...
550 Views
4 Replies
02-23-2021, 01:49 AM
tgix
    Thread: What's the difference between the .env file and App.php?
Post: RE: What's the difference between the .env file an...

Codinglander Wrote: (02-20-2021, 08:03 PM) -- Just so that I understand correctly: If I fill the "App.php" configuration file LOCAL with the "live" data AND I have an .env file, then the .env file w...
1,386 Views
10 Replies
02-21-2021, 02:11 AM
tgix
    Thread: CodeIgniter v4.0.5 and v4.1.0 released
Post: RE: CodeIgniter v4.0.5 and v4.1.0 released

Thank you all!
9,278 Views
42 Replies
01-31-2021, 11:45 PM
tgix
    Thread: Route error when the value is greater than 9
Post: RE: Route error when the value is greater than 9

I'm on my phone commuting so I'm just guessing: I think the route function should be defined as Members::aaa/$1/$2 so you pass the (:num) segments as two arguments properly.
617 Views
4 Replies
01-20-2021, 11:40 PM
tgix
    Thread: About Access-Control-Allow-Origin
Post: RE: About Access-Control-Allow-Origin

Also note that AJAX CORS-checks are made using OPTIONS Method so you need to route that accordingly in CI.
901 Views
5 Replies
01-19-2021, 10:57 PM
tgix
    Thread: Why developers hate PHP
Post: RE: Why developers hate PHP

My main concern is the lack of a compiler and with the death of licensing solutions like PHPExpress, packaging a binary solution is hard. Otherwise I enjoy working in PHP 7+ and I think it's modern en...
2,359 Views
5 Replies
01-13-2021, 01:38 AM
tgix
    Thread: No DBDebug - what's going on with .env variables???
Post: No DBDebug - what's going on with .env variables??...

I have started to get serious problems with settings from .env not picked up by CI4.  Just now I stopped getting exceptions thrown on Database errors due to the setting in app/config/Database.php: ...
320 Views
0 Replies
01-11-2021, 02:07 AM
tgix
    Thread: .env and Docker Container Environment - potential problems
Post: .env and Docker Container Environment - potential ...

Just a sanity-check to see if I am missing something. In a recent project I packaged a CI4 application into a Docker (php:7.3.26-apache-stretch image) and uploaded it to AWS FARGATE. In the applica...
792 Views
1 Replies
01-11-2021, 12:45 AM
tgix
    Thread: Migrating CI3 to CI4, need query->numRows function
Post: RE: Migrating CI3 to CI4, need query->numRows func...

adnzaki Wrote: (01-01-2021, 01:00 AM) -- Is it not enough for you? -- I can only answer for myself. My take away is that getResult() loops the result set and reads in all the records. In CI3, num_r...
1,580 Views
11 Replies
01-01-2021, 03:14 AM
tgix
    Thread: Best practice with Routes
Post: RE: Best practice with Routes

I am also pushing 100+ routes in my project and I cannot see any issues in production. Running in Docker and with OPcache.
1,161 Views
6 Replies
01-01-2021, 03:02 AM
tgix
    Thread: Multi-User (instance) Project.
Post: RE: Multi-User (instance) Project.

68thorby68 Wrote: (12-19-2020, 04:14 AM) -- Hi All,   I've developed a customer application using CI4, however other companies are interested in using the application. I do NOT want to copy the app...
766 Views
2 Replies
12-19-2020, 09:39 AM
tgix
    Thread: Dynamic $allowedFields?
Post: RE: Dynamic $allowedFields?

blaasvaer Wrote: (12-17-2020, 12:54 PM) -- It’s a matter of what’s ‘standard’ in PHP ... -- Fair enough, but initController is the standard of the CI4 framework. I do much of my programming in a J...
738 Views
6 Replies
12-17-2020, 01:34 PM
tgix
    Thread: Dynamic $allowedFields?
Post: RE: Dynamic $allowedFields?

blaasvaer Wrote: (12-17-2020, 09:40 AM) -- Thanks, that's what I'm trying to implement myself. But I need access to the $request in my __construct, as that it where I setup everything based on config...
738 Views
6 Replies
12-17-2020, 12:36 PM
tgix
    Thread: How do I send the second segment as id to update method?
Post: RE: How do I send the second segment as id to upda...

blaasvaer Wrote: (12-15-2020, 05:47 AM) -- I 'think' I need to pass a different segment to the UPDATE method on the model in an attempt to update a resource (RESTFully). According to the docs: C...
365 Views
1 Replies
12-15-2020, 09:05 AM
tgix

Theme © iAndrew 2016 - Forum software by © MyBB