Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Custom Logger - help!
Post: RE: Custom Logger - help!

(03-30-2020, 08:10 AM)dave friend Wrote: 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 the f...
Fido L Dido CodeIgniter 4 Support 3 812 03-30-2020, 08:12 AM
    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 cust...
Fido L Dido CodeIgniter 4 Support 3 812 03-30-2020, 07:32 AM
    Thread: CI4 sessions still not being deleted
Post: RE: CI4 sessions still not being deleted

(03-27-2020, 07:16 AM)dave friend Wrote: 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_probabili...
Fido L Dido CodeIgniter 4 Support 2 804 03-27-2020, 07:39 AM
    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.i...
Fido L Dido CodeIgniter 4 Support 2 804 03-27-2020, 05:54 AM
    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 config ...
Fido L Dido CodeIgniter 4 Support 5 3,334 03-22-2020, 09:01 AM
    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/framew...
Fido L Dido CodeIgniter 4 Support 19 6,278 02-26-2020, 08:12 AM
    Thread: Problem with validation and 'trim'
Post: RE: Problem with validation and 'trim'

(02-19-2020, 01:16 PM)php_rocs Wrote: @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 to the...
Fido L Dido CodeIgniter 4 Support 5 1,785 02-20-2020, 06:33 AM
    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...
Fido L Dido CodeIgniter 4 Support 5 1,785 02-19-2020, 09:39 AM
    Thread: Using session data within a model
Post: RE: Using session data within a model

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

(02-12-2020, 06:01 PM)dave friend Wrote: 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 cons...
Fido L Dido CodeIgniter 4 Support 7 1,877 02-13-2020, 08:01 AM
    Thread: Using session data within a model
Post: RE: Using session data within a model

(02-12-2020, 06:01 PM)dave friend Wrote: 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 cons...
Fido L Dido CodeIgniter 4 Support 7 1,877 02-13-2020, 04:50 AM
    Thread: Using session data within a model
Post: RE: Using session data within a model

(02-12-2020, 01:25 PM)InsiteFX Wrote: 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 take a...
Fido L Dido CodeIgniter 4 Support 7 1,877 02-13-2020, 04:47 AM
    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...
Fido L Dido CodeIgniter 4 Support 7 1,877 02-12-2020, 05:14 AM
    Thread: Creating a custom service/library
Post: RE: Creating a custom service/library

(02-05-2020, 04:07 PM)littlej Wrote: 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...). So I c...
Fido L Dido CodeIgniter 4 Support 5 3,062 02-06-2020, 08:10 AM
    Thread: Creating a custom service/library
Post: RE: Creating a custom service/library

(02-05-2020, 08:30 AM)x1250 Wrote: Assuming you define validationRules in the model, you need to use something like the following in your controller method: PHP Code:    if (!$th...
Fido L Dido CodeIgniter 4 Support 5 3,062 02-05-2020, 09:47 AM
    Thread: Creating a custom service/library
Post: Creating a custom service/library

Hi there, I'm a newbie to CI4 so please bear with me. I'm building a small project and am keen on keeping my controllers small so intend to carry out input validation within my project's models. It ...
Fido L Dido CodeIgniter 4 Support 5 3,062 02-05-2020, 06:37 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.