Welcome Guest, Not a member yet? Register   Sign In
Search Results
    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 ...
131 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...
1,106 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...
1,106 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.
1,106 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...
1,106 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...
2,463 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...
2,463 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,236 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,236 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...
8,583 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...
17,162 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...
7,813 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...
7,813 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 ...
4,885 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...
4,885 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...
4,885 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...
4,885 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...
4,885 Views
7 Replies
02-12-2020, 05:14 AM
Fido L Dido
    Thread: Creating a custom service/library
Post: RE: Creating a custom service/library

littlej Wrote: (02-05-2020, 04:07 PM) -- Hello Fido L Dido ! I have an application in which I needed to manage measurement conversions (inches to centimeters, meters to feet, inches to feet...). S...
7,512 Views
5 Replies
02-06-2020, 08:10 AM
Fido L Dido
    Thread: Creating a custom service/library
Post: RE: Creating a custom service/library

x1250 Wrote: (02-05-2020, 08:30 AM) -- Assuming you define validationRules in the model, you need to use something like the following in your controller method: PHP Code: --     if (!$this->valid...
7,512 Views
5 Replies
02-05-2020, 09:47 AM
Fido L Dido

Theme © iAndrew 2016 - Forum software by © MyBB