Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Possible issue with router->controllerName()
Post: RE: Possible issue with router->controllerName()

Nobody has picked up on this so I have investigated further. I have noticed that my "before" filter is called twice on an initial page load when hot load is enabled. I don't know why this is. On th...
266 Views
1 Replies
01-09-2025, 07:13 AM
Fido L Dido
    Thread: Possible issue with router->controllerName()
Post: Possible issue with router->controllerName()

Hi there, In a filter I'm doing the following: Code: --   public function before(RequestInterface $request, $arguments = null)     {         $router = \Config\Services::router();         $method...
266 Views
1 Replies
12-11-2024, 06:05 AM
Fido L Dido
    Thread: log_message from cli
Post: log_message from cli

I'm exploring calling methods from the CLI and all seems well and good. However, the log_message function doesn't appear to produce any output when a method is called via the CLI, but works just fine ...
326 Views
0 Replies
11-16-2023, 09:00 AM
Fido L Dido
    Thread: Factories problem following upgrade to V4.3.6
Post: RE: Factories problem following upgrade to V4.3.6

kenjis Wrote: (06-20-2023, 02:44 PM) -- Quote: -- 7 SYSTEMPATH/Database/BaseResult.php(391): CodeIgniter\Database\BaseResult->getResult('App\\Models\\UserModel') 8 SYSTEMPATH/Model.php(201): CodeI...
2,349 Views
8 Replies
06-21-2023, 06:25 AM
Fido L Dido
    Thread: Factories problem following upgrade to V4.3.6
Post: RE: Factories problem following upgrade to V4.3.6

InsiteFX Wrote: (06-20-2023, 11:05 PM) -- What PHP version are you running? -- I'm using PHP 8.2.7. I've noticed something problematic with my code. In the class I'm loading I think I may have chos...
2,349 Views
8 Replies
06-21-2023, 03:44 AM
Fido L Dido
    Thread: Factories problem following upgrade to V4.3.6
Post: RE: Factories problem following upgrade to V4.3.6

Thanks for taking the time to reply. I'll investigate further tomorrow as to what is going on and report back. I now suspect there is something peculiar about my code that I've overlooked.
2,349 Views
8 Replies
06-20-2023, 03:15 PM
Fido L Dido
    Thread: Factories problem following upgrade to V4.3.6
Post: Factories problem following upgrade to V4.3.6

Hi there, I've today upgraded from V4.3.5 to V4.3.6. I've checked the upgrade notes and am not making use of any of the listed breaking changes. Despite this, my project has broken :( The problem ap...
2,349 Views
8 Replies
06-20-2023, 08:01 AM
Fido L Dido
    Thread: Custom Logger - help!
Post: RE: Custom Logger - help!

dave friend Wrote: (03-30-2020, 08:10 AM) -- I am working on a logger "add-in" for CI v4 that is designed to be easier to extend than the framework's Logger. It includes some settings to customize th...
3,013 Views
3 Replies
03-30-2020, 08:12 AM
Fido L Dido
    Thread: Custom Logger - help!
Post: Custom Logger - help!

I want to change the format of the filenames for the built in logger. It's not an option in the config and is hardcoded in FileHandler.php. I've looked at the documentation for creating your own cu...
3,013 Views
3 Replies
03-30-2020, 07:32 AM
Fido L Dido
    Thread: CI4 sessions still not being deleted
Post: RE: CI4 sessions still not being deleted

dave friend Wrote: (03-27-2020, 07:16 AM) -- Using 1/1000 can result it quite a large build-up of old sessions. Try these settings for a while to see if things get cleaned up. Code: -- session.gc_p...
2,843 Views
2 Replies
03-27-2020, 07:39 AM
Fido L Dido
    Thread: CI4 sessions still not being deleted
Post: CI4 sessions still not being deleted

I've read the other threads on session files not being cleaned up on CI4. I am suffering the same issue, with hundreds of session files when it is only me accessing the site. I've checked which php...
2,843 Views
2 Replies
03-27-2020, 05:54 AM
Fido L Dido
    Thread: CI4 Validation is_unique in properties Config/Validation
Post: RE: CI4 Validation is_unique in properties Config/...

I've been struggling with exactly the same problem today. I have found no way to get the placeholder valu to work in the ruleset. My solution has been to leave all the rules in the validation confi...
9,717 Views
5 Replies
03-22-2020, 09:01 AM
Fido L Dido
    Thread: CodeIgniter 4.0 Release framework - Kint Error
Post: RE: CodeIgniter 4.0 Release framework - Kint Error

I've had this problem too. People have outlined the fix, but to add, you need to copy the Kint.php file into your app. So from the root folder of your project type: Code: -- cp vendor/codeigniter4...
20,148 Views
19 Replies
02-26-2020, 08:12 AM
Fido L Dido
    Thread: Problem with validation and 'trim'
Post: RE: Problem with validation and 'trim'

php_rocs Wrote: (02-19-2020, 01:16 PM) -- @Fido L Dido, Are you sure that the trim is working properly as a rule?  Have you printed it out? You could also remove trim() from the rules and add it t...
9,497 Views
7 Replies
02-20-2020, 06:33 AM
Fido L Dido
    Thread: Problem with validation and 'trim'
Post: Problem with validation and 'trim'

I'm using the validation library to validate the input received from an ajax request. I'm working through the tutorial, but converting to ajax, and moving the validations into the model. My validation...
9,497 Views
7 Replies
02-19-2020, 09:39 AM
Fido L Dido
    Thread: Using session data within a model
Post: RE: Using session data within a model

Fido L Dido Wrote: (02-13-2020, 08:01 AM) -- dave friend Wrote: (02-12-2020, 06:01 PM) -- Since you have the $session object in your controller you could also pass it to the model when the model is ...
6,445 Views
7 Replies
02-13-2020, 09:14 AM
Fido L Dido
    Thread: Using session data within a model
Post: RE: Using session data within a model

dave friend Wrote: (02-12-2020, 06:01 PM) -- Since you have the $session object in your controller you could also pass it to the model when the model is constructed. Passing objects to a class con...
6,445 Views
7 Replies
02-13-2020, 08:01 AM
Fido L Dido
    Thread: Using session data within a model
Post: RE: Using session data within a model

dave friend Wrote: (02-12-2020, 06:01 PM) -- Since you have the $session object in your controller you could also pass it to the model when the model is constructed. Passing objects to a class con...
6,445 Views
7 Replies
02-13-2020, 04:50 AM
Fido L Dido
    Thread: Using session data within a model
Post: RE: Using session data within a model

InsiteFX Wrote: (02-12-2020, 01:25 PM) -- Alternatively, you can use the helper function that will use the default configuration options. This version is a little friendlier to read, but does not tak...
6,445 Views
7 Replies
02-13-2020, 04:47 AM
Fido L Dido
    Thread: Using session data within a model
Post: Using session data within a model

I've intialised a session in my BaseController as set out in the documentation, but I need to access/alter this session data from within my models. I'm at a loss how to go about doing this and would b...
6,445 Views
7 Replies
02-12-2020, 05:14 AM
Fido L Dido

Theme © iAndrew 2016 - Forum software by © MyBB