Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Asynchronous function
Post: Asynchronous function

My web app receives an image upload, saves the original and resizes a copy. To make the app more responsive I would like to do the resizing after I have validated the file and returned a thanks for t...
1,170 Views
2 Replies
10-17-2022, 09:03 PM
motownphilippe
    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()? [hr] See this thread (also commented on by InsiteFX)  https://forum.codeigniter.com/thread-75543.html
1,992 Views
4 Replies
05-02-2021, 01:43 AM
motownphilippe
    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...
1,992 Views
4 Replies
05-01-2021, 06:06 PM
motownphilippe
    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...
8,012 Views
7 Replies
04-11-2021, 12:26 PM
motownphilippe
    Thread: What happened to dbutil->backup() for database backup?
Post: RE: What happened to dbutil->backup() for database...

InsiteFX Wrote: (03-15-2021, 04:36 AM) -- You can use this. myphp-backup (https://github.com/daniloaz/myphp-backup) -- Thanks, I’ll have a look. what does everyone else use?
2,202 Views
3 Replies
03-15-2021, 04:45 AM
motownphilippe
    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 ne...
2,202 Views
3 Replies
03-15-2021, 03:07 AM
motownphilippe
    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...
2,958 Views
2 Replies
03-13-2021, 08:09 PM
motownphilippe
    Thread: Myth:Auth $allowRemembering on a per user basis
Post: RE: Myth:Auth $allowRemembering on a per user basi...

thank you.
1,900 Views
4 Replies
03-13-2021, 03:33 PM
motownphilippe
    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...
16,269 Views
16 Replies
03-13-2021, 01:55 PM
motownphilippe
    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 ...
1,900 Views
4 Replies
03-13-2021, 01:33 PM
motownphilippe
    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: adde...
16,269 Views
16 Replies
03-13-2021, 11:08 AM
motownphilippe
    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 usin...
2,958 Views
2 Replies
03-13-2021, 10:29 AM
motownphilippe
    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 ...
1,900 Views
4 Replies
03-13-2021, 09:31 AM
motownphilippe
    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.
1,037 Views
1 Replies
03-09-2021, 01:05 AM
motownphilippe
    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', 'Sessi...
1,037 Views
1 Replies
03-08-2021, 11:52 PM
motownphilippe
    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.
5,244 Views
5 Replies
03-04-2021, 06:05 AM
motownphilippe
    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/database/connecting.html
1,567 Views
1 Replies
02-27-2021, 08:18 AM
motownphilippe
    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.
2,745 Views
2 Replies
02-19-2021, 07:09 PM
motownphilippe
    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_punct',         ], -- When the 'topic' field...
2,745 Views
2 Replies
02-19-2021, 06:45 PM
motownphilippe
  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.
1,881 Views
4 Replies
01-31-2021, 10:32 PM
motownphilippe

Theme © iAndrew 2016 - Forum software by © MyBB