Welcome Guest, Not a member yet? Register   Sign In
Search Results
    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!
176 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...
176 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...
2,301 Views
4 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 ...
1,365 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...
11,126 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...
11,126 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...
11,126 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?...
11,126 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'); ),...
11,126 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: -- [email protected]:/home/kaimartin/www/hiperplanner# ls total 164 drwxrwxr-x  8 kaimartin kaimartin  4096 Mar 18...
11,126 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...
11,126 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"...
11,126 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 ...
11,126 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...
11,126 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...
933 Views
1 Replies
01-29-2021, 10:13 AM
evansharp
    Thread: mysqli with SSL via .env file settings
Post: mysqli with SSL via .env file settings

Hello, After reading the relevant docs (https://codeigniter4.github.io/userguide/database/configuration.html#configuring-with-env-file), I am still having difficulty getting CI to connect to my mys...
933 Views
1 Replies
01-28-2021, 04:09 PM
evansharp
    Thread: Possible to load and use helper function in controller filter?
Post: RE: Possible to load and use helper function in co...

I implemented a shared service, which is working so far.
1,056 Views
1 Replies
12-31-2020, 02:31 AM
evansharp
    Thread: Possible to load and use helper function in controller filter?
Post: Possible to load and use helper function in contro...

Hello, Should it be possible to load and use a custom helper function from within a controller filter? I want to shortcut creating a Google API client object, the class for which is being auto-l...
1,056 Views
1 Replies
12-31-2020, 02:20 AM
evansharp
    Thread: Classmap not loaded?
Post: RE: Classmap not loaded?

ajmeireles Wrote: (02-13-2020, 10:56 AM) -- Hey, you is able to understand how it work now? I have same issue! -- Nope, I'm still using namespaces.
4,070 Views
3 Replies
02-13-2020, 07:21 PM
evansharp
    Thread: Classmap not loaded?
Post: Classmap not loaded?

Hi board! I am trying to locate a custom library out of `ThirdParty/` using the classmap instead of PSR-4.  I have been successful using the PSR-4 namespace autoloader, but as this is my auth librar...
4,070 Views
3 Replies
01-25-2020, 02:35 PM
evansharp

Theme © iAndrew 2016 - Forum software by © MyBB