Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: settings service: retrieve all properties of a class
Post: RE: settings service: retrieve all properties of a...

sammyskills Wrote: (10-11-2023, 11:57 PM) -- Hi @"evansharp" , Not sure I understand what you mean but, can't this be achieved using config() ? Like: PHP Code: -- config(App::class);  -- -...
833 Views
4 Replies
11-03-2023, 11:24 PM
evansharp
    Thread: settings service: retrieve all properties of a class
Post: settings service: retrieve all properties of a cla...

The docs don't mention (and I've been unable to hit upon) a way to retrieve all of the stored values for a whole class of properties. Is this a feature? Can I submit a request/ PR? The use-case is pr...
833 Views
4 Replies
10-10-2023, 10:34 PM
evansharp
    Thread: return value of settings helper call?
Post: RE: return value of settings helper call?

kenjis Wrote: (09-22-2023, 10:04 PM) -- Why do you want to get the result true/false? or why does it fail? If it fails to set, it is not recoverable, so it seems better an Exception is thrown. --...
1,327 Views
8 Replies
10-06-2023, 08:30 PM
evansharp
    Thread: return value of settings helper call?
Post: RE: return value of settings helper call?

kenjis Wrote: (09-22-2023, 08:50 PM) -- It is the return type of the setting() function. My previous post refers the Settings->set() or service('settings')->set() method -- returning void feels ...
1,327 Views
8 Replies
09-22-2023, 09:29 PM
evansharp
    Thread: return value of settings helper call?
Post: return value of settings helper call?

Hello, Where did the forum search capability go? I'm sure this has been asked before... When using the Settings helper, the github docs don't say if  `set()` returns a boolean on success/fail; which...
1,327 Views
8 Replies
09-21-2023, 07:15 PM
evansharp
    Thread: Where does a data-import map go?
Post: RE: Where does a data-import map go?

Just what I was looking for, thank you!
1,153 Views
2 Replies
02-21-2023, 01:19 PM
evansharp
    Thread: Where does a data-import map go?
Post: Where does a data-import map go?

Hello, I'm writing an application that will need to import a complex dataset in JSON format (via file upload) to a database. A human will have to perform a step of mapping JSON keys to DB fields beca...
1,153 Views
2 Replies
02-16-2023, 03:01 PM
evansharp
    Thread: Where is the Best Place for Cron Methods ?
Post: RE: Where is the Best Place for Cron Methods ?

You should follow a DRY (Don't Repeat Yourself) approach to these methods. If they're actions only performed by the cron job via you cron controller, then I'd say writing a private cron controller met...
4,446 Views
5 Replies
02-16-2023, 02:49 PM
evansharp
    Thread: how to get ID's after insertBatch()?
Post: RE: how to get ID's after insertBatch()?

This gets asked for a lot and to be honest, I've wished for it myself too. The issue is not just that 'CI does not provide this method', it's that the concept is flawed on the DB side. If another set ...
2,042 Views
2 Replies
04-30-2021, 08:50 AM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: RE: CI in apache userdirs (domain.com/~user/public...

John_Betong Wrote: (03-22-2021, 03:46 PM) -- My CI4 knowledge only stretches as far as simple web sites. I have no experience of having multiple users accessing the same web site. I've noticed yo...
16,845 Views
22 Replies
03-23-2021, 11:05 AM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: RE: CI in apache userdirs (domain.com/~user/public...

I did a level 6 trace on apache's rewrite for one request to the baseUrl. Everything looks correct and the passthrough path is what it should be for CI to work. So the duplication of the userdir u...
16,845 Views
22 Replies
03-22-2021, 01:36 PM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: RE: CI in apache userdirs (domain.com/~user/public...

I tried looking at what the Request object was providing to the router. I added this to the top of Router.php: PHP Code: -- $request = \Config\Services::request(); $uri = $request->uri; echo (st...
16,845 Views
22 Replies
03-22-2021, 10:16 AM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: RE: CI in apache userdirs (domain.com/~user/public...

Hi John,  I don't think it's good progress at all, it just confirms the issue I suspected in the first place: mod_userdir urls are choking the router. I am not suggesting to modify system files?...
16,845 Views
22 Replies
03-22-2021, 09:09 AM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: RE: CI in apache userdirs (domain.com/~user/public...

The router is first breakpoint hit: Quote: -- /home/kaimartin/www/hiperplanner/app/Config/Routes.php -- If I match any url to the stock Home controller ($routes->get('/(:any)', 'Home::index'); ),...
16,845 Views
22 Replies
03-21-2021, 02:26 PM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: RE: CI in apache userdirs (domain.com/~user/public...

These paths have been correct and I had already set the permissions on writable/ Code: -- root@webserver:/home/kaimartin/www/hiperplanner# ls total 164 drwxrwxr-x  8 kaimartin kaimartin  4096 Mar 18...
16,845 Views
22 Replies
03-20-2021, 11:23 AM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: RE: CI in apache userdirs (domain.com/~user/public...

Paths.php is unmodified. Quote: -- index.php ==> /home/kaimartin/www/hiperplanner/public/index.php FCPATH ==> /home/kaimartin/www/hiperplanner/public/ $paths  ==> Config\Paths Object (     [system...
16,845 Views
22 Replies
03-19-2021, 09:05 PM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: RE: CI in apache userdirs (domain.com/~user/public...

I appreciate you continuing to look at my question John. By "base" do you mean the web root being served by apache? If you take a closer look at the the system paths I listed, there are two "public"...
16,845 Views
22 Replies
03-19-2021, 05:47 PM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: RE: CI in apache userdirs (domain.com/~user/public...

John_Betong Wrote: (03-18-2021, 04:05 PM) -- The “public/index.php” has a path set to “app/Config/Paths.php”. Try making the relevant path adjustments in Paths.php -- Hi John, Thanks for the quick ...
16,845 Views
22 Replies
03-19-2021, 02:20 PM
evansharp
    Thread: CI in apache userdirs (domain.com/~user/public/ci)
Post: CI in apache userdirs (domain.com/~user/public/ci)

Hello, I operate a shared hosting environment on Ubunutu 20 for a course I teach. Each student of the course is allocated a user account with a ~/public/ directory for development. I am having d...
16,845 Views
22 Replies
03-18-2021, 03:02 PM
evansharp
    Thread: mysqli with SSL via .env file settings
Post: RE: mysqli with SSL via .env file settings

I got it. Posting for others: 1) Paths to cert files in `.env` do not need quotes! They're not parsed correctly with quotes, removing them allowed the values to be stored. 2) Increasing my logging...
1,420 Views
1 Replies
01-29-2021, 10:13 AM
evansharp

Theme © iAndrew 2016 - Forum software by © MyBB