Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Disable Debug Bar for certain controllers?
Post: Disable Debug Bar for certain controllers?

Is there a way to disable the debug bar for certain controllers, or ideally for individual routes or functions within a controller? It's causing issues when I'm trying to return JSON responses throug...
220 Views
1 Replies
09-26-2022, 02:29 PM
jameslittle
    Thread: DB failover settings in .env file?
Post: RE: DB failover settings in .env file?

Thanks so much for looking at that Michalsn! And good info about the .env needing to override existing settings.
3,264 Views
4 Replies
06-09-2020, 09:13 AM
jameslittle
    Thread: DB failover settings in .env file?
Post: RE: DB failover settings in .env file?

Did some testing today and sadly it doesn't seem to work. The browser spins for a few seconds and then says "Connection timed out" instead of looking for the failover connection.  Here's what I've ...
3,264 Views
4 Replies
06-04-2020, 06:46 PM
jameslittle
    Thread: DB failover settings in .env file?
Post: DB failover settings in .env file?

The docs talk about a database 'failover' parameter, which is defined as an array within the main DB connection settings. Is there a way to define failovers in an .env file? If so, what would that ...
3,264 Views
4 Replies
06-04-2020, 06:59 AM
jameslittle
    Thread: Using database failovers
Post: Using database failovers

I'm trying to define a database failover in my .env file, but I'm not sure I've got the syntax for env files. I'm using it like: database.default.failover.hostname = localhost database.default.fai...
1,054 Views
1 Replies
03-05-2020, 10:21 PM
jameslittle
    Thread: Wildcard subdomains
Post: RE: Wildcard subdomains

I've looked at doing something similar to this, and you should be able to do that with a wildcard DNS entry. Then it's just a matter of getting your server to respond to any subdomain. If you need ...
3,117 Views
5 Replies
02-25-2020, 10:49 AM
jameslittle
    Thread: Suggested hosting
Post: RE: Suggested hosting

I'm another vote for DigitalOcean. Reliable service and really easy to work with if you're comfortable setting up a VPS. But even if you're not, they've got great tutorials on setting up a LAMP server...
8,222 Views
9 Replies
02-25-2020, 10:35 AM
jameslittle
    Thread: CodeIgniter 4.0 Release framework - Kint Error
Post: RE: CodeIgniter 4.0 Release framework - Kint Error

atsanna Wrote: (02-24-2020, 02:30 PM) -- jameslittle Wrote: (02-24-2020, 11:58 AM) -- @dave friend and others...I'm thinking that this is at least partly a PHP issue. I was on PHP Version 7.2.24-...
12,606 Views
19 Replies
02-24-2020, 04:02 PM
jameslittle
    Thread: CodeIgniter 4.0 Release framework - Kint Error
Post: RE: CodeIgniter 4.0 Release framework - Kint Error

@dave friend and others...I'm thinking that this is at least partly a PHP issue. I was on PHP Version 7.2.24-0ubuntu0.18.04.3 and both CI 4.0.0 and 4.0.1 threw a "Trying to get property 'maxDepth' ...
12,606 Views
19 Replies
02-24-2020, 11:58 AM
jameslittle
    Thread: CodeIgniter 4.0 Release framework - Kint Error
Post: RE: CodeIgniter 4.0 Release framework - Kint Error

I'm still getting a Kint error even on 4.0.1, so I've just set my composer back to RC 4 for the moment. This got me back up and running: Code: -- "codeigniter4/framework": "4.0.0-rc.4" -- The...
12,606 Views
19 Replies
02-24-2020, 10:59 AM
jameslittle
    Thread: CodeIgniter 4.0 Release framework - Kint Error
Post: RE: CodeIgniter 4.0 Release framework - Kint Error

I'm getting this same error after updating to 4.0.0., with the error on line 232 Code: --  /** 228          * Config\Kint 229          */ 230         $config = config('Config\Kint'); 231 232...
12,606 Views
19 Replies
02-24-2020, 08:09 AM
jameslittle
    Thread: CodeIgniter 4.0 is here!
Post: RE: CodeIgniter 4.0 is here!

This is great news! Thanks everyone for all your hard work, and especially to Kilishan for shepherding things over the finish line.
177,219 Views
132 Replies
02-24-2020, 07:55 AM
jameslittle
    Thread: Localization duplicate page problem when locale set in routes
Post: RE: Localization duplicate page problem when local...

I'd agree with you that this is functionality that may make sense in core. More often than not, people are probably going to have to dance around the issues you faced. Maybe there's some compelling...
6,577 Views
9 Replies
01-28-2020, 03:37 PM
jameslittle
    Thread: Localization duplicate page problem when locale set in routes
Post: RE: Localization duplicate page problem when local...

I may be over-complicating this, but you could do what you're talking about with the Regular Expression feature in routes. https://codeigniter4.github.io/userguide/incoming/routing.html#regular-exp...
6,577 Views
9 Replies
01-24-2020, 02:10 PM
jameslittle
    Thread: Localization duplicate page problem when locale set in routes
Post: RE: Localization duplicate page problem when local...

So that is the way the documentation says it should behave. If CI can't match a locale, it's going to honor the route and serve your default locale. But definitely agree that this arrangement could...
6,577 Views
9 Replies
01-22-2020, 08:04 PM
jameslittle
    Thread: CI3 or CI4
Post: RE: CI3 or CI4

I've got one live site and another upcoming project on CI4 4.0.0 RC3. Knowing that Codeigniter 4 is moving from RC to general release in the next 5-6 weeks has given me confidence to move all my curre...
7,105 Views
6 Replies
01-22-2020, 12:48 PM
jameslittle
    Thread: [solved] CI4 request missing POST and FILES data
Post: RE: CI4 request missing POST and FILES data

Seems dumb to answer my own question, but I did finally figure this out. Apparently the wildcard routing starts a new HTTP request, so the POST and FILES info was getting lost. When I changed my ro...
2,740 Views
2 Replies
01-21-2020, 09:52 PM
jameslittle
    Thread: [solved] CI4 request missing POST and FILES data
Post: [solved] CI4 request missing POST and FILES data

I've been hitting my head against my keyboard all afternoon trying to figure this out. I've got a page that has an image uploader. When I post from the page to a plain PHP page, the file uploads as...
2,740 Views
2 Replies
01-21-2020, 05:59 PM
jameslittle
    Thread: Important News about Jim Parry and the Project
Post: RE: Important News about Jim Parry and the Project

Like so many others, I'm also saddened to hear about Jim. May he RIP, and also agree that the best way we can honor his legacy is to keep CodeIgniter strong and vibrant and open. Lonnie, thanks for...
114,930 Views
98 Replies
01-17-2020, 01:30 PM
jameslittle
    Thread: how to use php to schedule a task under codeigniter
Post: RE: how to use php to schedule a task under codeig...

A true cron is something that runs at the server OS level. There are various ways to schedule them using browser tools like CPanel, and it's worth mentioning that CMSs like Wordpress and Drupal have "...
6,448 Views
3 Replies
09-05-2019, 01:48 PM
jameslittle

Theme © iAndrew 2016 - Forum software by © MyBB