Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: An efficient system to trim form data
Post: RE: An efficient system to trim form data

So why can’t I just use trim()? See this thread (also commented on by InsiteFX)  https://forum.codeigniter.com/thread-75543.html
motownphilippe CodeIgniter 4 Support 3 318 05-02-2021, 01:43 AM
    Thread: An efficient system to trim form data
Post: An efficient system to trim form data

The Codeigniter 3 Validation class was able to trim data. This was an efficient. The validation class in CI4 does not offer preformatting like this (despite the documentation "Pre-format the data if n...
motownphilippe CodeIgniter 4 Support 3 318 05-01-2021, 06:06 PM
    Thread: Problem with validation and 'trim'
Post: RE: Problem with validation and 'trim'

The introduction to the CI 4 validation library states: 4. Pre-format the data if needed (Does the data need to be trimmed? HTML encoded? Etc.) The bottom of the same page sates: You can also use a...
motownphilippe CodeIgniter 4 Support 5 1,871 04-11-2021, 12:26 PM
    Thread: What happened to dbutil->backup() for database backup?
Post: RE: What happened to dbutil->backup() for database...

(03-15-2021, 04:36 AM)InsiteFX Wrote: You can use this. myphp-backupThanks, I’ll have a look. what does everyone else use?
motownphilippe General Help 2 299 03-15-2021, 04:45 AM
    Thread: What happened to dbutil->backup() for database backup?
Post: What happened to dbutil->backup() for database bac...

Am I going mad?  PHP Code:dbutil->backup() ... was very useful in CI3. Why hasn't this been replicated in CI4?  I'm pretty sure database backup hasn't gone out of fashion.  What is the new wa...
motownphilippe General Help 2 299 03-15-2021, 03:07 AM
    Thread: Naming database columns and form inputs
Post: RE: Naming database columns and form inputs

Thanks.  following these conventions leads to a conflict with CI4 entities.  Say I have a database with a field name called "some_category"  Say I then instantiate an entity representing a row from th...
motownphilippe Best Practices 2 693 03-13-2021, 08:09 PM
    Thread: Myth:Auth $allowRemembering on a per user basis
Post: RE: Myth:Auth $allowRemembering on a per user basi...

thank you.
motownphilippe General Help 4 399 03-13-2021, 03:33 PM
    Thread: Myth Auth LoginFilter Problem
Post: RE: Myth Auth LoginFilter Problem

@paulbalandan I have edited the composer.json entry in the root of my site and then tried to update Myth/Auth. It asked for GitHub token which I gave it then I get this error: Code:Install of myth/...
motownphilippe CodeIgniter 4 Support 15 4,517 03-13-2021, 01:55 PM
    Thread: Myth:Auth $allowRemembering on a per user basis
Post: RE: Myth:Auth $allowRemembering on a per user basi...

The 'Remember Me' checkbox on the login form is displayed before the the user has logged in so I can't check their permissions to decide whether or not to display the checkbox. I could check their pe...
motownphilippe General Help 4 399 03-13-2021, 01:33 PM
    Thread: Myth Auth LoginFilter Problem
Post: RE: Myth Auth LoginFilter Problem

I am getting the same 'ErrorException #64' Codeigniter version 4.1.1 (fresh install) PHP 7.4.12 Myth/Auth 1.0-beta.3 I have the filter aliases. I am just trying the simplest implementation: added 'lo...
motownphilippe CodeIgniter 4 Support 15 4,517 03-13-2021, 11:08 AM
    Thread: Naming database columns and form inputs
Post: Naming database columns and form inputs

Examples in the CI4 documentation use snake_case for database column names. Indeed the default values 'created_at', 'updated_at' and 'deleted_at' support this convention.  CI4 entities promote using ...
motownphilippe Best Practices 2 693 03-13-2021, 10:29 AM
    Thread: Myth:Auth $allowRemembering on a per user basis
Post: Myth:Auth $allowRemembering on a per user basis

Most of my users will not have access to any sensitive data in my web app. A few users will have access to very sensitive data. I want the convenience of 'remember-me' fo most of my users but not the ...
motownphilippe General Help 4 399 03-13-2021, 09:31 AM
    Thread: Redirecting with $_POST
Post: RE: Redirecting with $_POST

How silly of me, I can just use PHP Code:set_value('var-name')  for some reason I thought I can only use set_value() in a view. Works fine in my controllers and classes. Case closed.
motownphilippe CodeIgniter 4 Support 1 298 03-09-2021, 01:05 AM
    Thread: Redirecting with $_POST
Post: Redirecting with $_POST

I would like to pass $_POST data on successful completion of a form.  This will place my form data into $_SESSION as an array  PHP Code:redirect()->route('education')->with('report',&n...
motownphilippe CodeIgniter 4 Support 1 298 03-08-2021, 11:52 PM
    Thread: Is possible to create logs in another file and folder?
Post: RE: Is possible to create logs in another file and...

Could you please describe exactly how you achieved this. I am trying to group messages of a similar kind into a separate file. I can’t work out how to change log path at run time.
motownphilippe CodeIgniter 4 Support 5 784 03-04-2021, 06:05 AM
    Thread: Dynamic Database
Post: RE: Dynamic Database

I think you can dynamically change the database from your model or other class with $db->setDatabase($database2_name); See https://codeigniter.com/user_guide/datab...cting.html
motownphilippe CodeIgniter 4 Support 1 682 02-27-2021, 08:18 AM
    Thread: Validation failing on empty fields even when not required
Post: RE: Validation failing on empty fields even when n...

Ah, just found 'permit_empty' rule which achieves the behavior I'm after. So, 'required' is not necessary on when many of the other rules are set. I think this is a change from Code Igniter 3.
motownphilippe General Help 2 437 02-19-2021, 07:09 PM
    Thread: Validation failing on empty fields even when not required
Post: Validation failing on empty fields even when not r...

I keep my validation rules in App/Config/Validation I have one of my rules set as: PHP Code:'topic' => [            'rules' => 'alpha_numeric_p...
motownphilippe General Help 2 437 02-19-2021, 06:45 PM
  Big Grin Thread: getCustomResultObject() bypasses my custom __set() method
Post: RE: getCustomResultObject() bypasses my custom __s...

Thank you so much!  I finally understand.  You have saved me from my madness.  Thank you.
motownphilippe General Help 4 452 01-31-2021, 10:32 PM
    Thread: getCustomResultObject() bypasses my custom __set() method
Post: RE: getCustomResultObject() bypasses my custom __s...

Thanks for your input. I don't understand your explanation. I have set a __set() method in my custom class, just as it was in the user guide example (see code above).  Do you have any suggestions fo...
motownphilippe General Help 4 452 01-31-2021, 06:22 PM

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