Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: File upload validation fails for uploaded rule
Post: RE: File upload validation fails for uploaded rule

ozornick Wrote: (11-23-2022, 10:00 PM) -- PHP Code: -- $files = $this->request->getFiles() ; -- Dump this $files and read manual, get real error exception message https://codeigniter4.github.io/Code...
250 Views
2 Replies
11-29-2022, 12:57 PM
josh2112o
    Thread: File upload validation fails for uploaded rule
Post: File upload validation fails for uploaded rule

Hi everyone. I am having some problems getting the uploaded validation rule to work with file attachment uploads using the form helper too. Code: -- -- Here is the form I am using in my view fil...
250 Views
2 Replies
11-23-2022, 01:55 PM
josh2112o
    Thread: Create MySQL Tables without using Database Forge Class
Post: RE: Create MySQL Tables without using Database For...

includebeer Wrote: (10-28-2021, 03:17 PM) -- Or just run a .sql file in your database instead of doing it in php. -- Yes, that is always an option. Thank you for the suggestion.
1,930 Views
6 Replies
10-28-2021, 03:31 PM
josh2112o
    Thread: Create MySQL Tables without using Database Forge Class
Post: RE: Create MySQL Tables without using Database For...

ikesela Wrote: (10-28-2021, 01:02 AM) -- use forge for migration is alot easier and good practise. in case we need to pass our project to next person. -- Thank you for the information. That is great ...
1,930 Views
6 Replies
10-28-2021, 02:48 AM
josh2112o
    Thread: Create MySQL Tables without using Database Forge Class
Post: RE: Create MySQL Tables without using Database For...

josh2112o Wrote: (10-27-2021, 01:40 PM) -- Hi, I am wondering is it possible to execute the raw MySQL CREATE TABLE commands with all columns and accompanying definitions in CodeIgniter 4 instead of ...
1,930 Views
6 Replies
10-27-2021, 02:46 PM
josh2112o
    Thread: Create MySQL Tables without using Database Forge Class
Post: Create MySQL Tables without using Database Forge C...

Hi, I am wondering is it possible to execute the raw MySQL CREATE TABLE commands with all columns and accompanying definitions in CodeIgniter 4 instead of using the Database Forge Class? I am parsin...
1,930 Views
6 Replies
10-27-2021, 01:40 PM
josh2112o
    Thread: CodeIgniter 4 Entity Business Logic Questions
Post: RE: CodeIgniter 4 Entity Business Logic Questions

Hi iRedds, Thank you for the example code and great explanation. I have better understanding now of what the Entity setter and getter are used for.
1,297 Views
3 Replies
09-12-2021, 08:12 AM
josh2112o
    Thread: CodeIgniter 4 Entity Business Logic Questions
Post: CodeIgniter 4 Entity Business Logic Questions

I am trying to use and understand the Entity Class in CodeIgniter 4. I am wondering how to access other (same) Entity properties within the setSomeProperty() methods if I want to enforce some business...
1,297 Views
3 Replies
09-11-2021, 09:15 AM
josh2112o
    Thread: Custom Validation Rule in Model
Post: RE: Custom Validation Rule in Model

iRedds Wrote: (01-22-2021, 09:24 PM) -- josh2112o Wrote: (01-22-2021, 05:54 PM) -- Hi, Thanks for the links... So I have this code in my model for validation: PHP Code: -- protected $validationR...
2,275 Views
6 Replies
01-23-2021, 03:16 AM
josh2112o
    Thread: Custom Validation Rule in Model
Post: RE: Custom Validation Rule in Model

iRedds Wrote: (01-22-2021, 05:26 PM) -- josh2112o Wrote: (01-22-2021, 04:08 PM) -- I was hoping to use the validation functionality in the model itself instead of the Controller. I have written some...
2,275 Views
6 Replies
01-22-2021, 05:54 PM
josh2112o
    Thread: Custom Validation Rule in Model
Post: RE: Custom Validation Rule in Model

iRedds Wrote: (01-22-2021, 02:23 PM) -- I didn't fully understand your problem. You can override the validate() method of the model to include your library. Or add a method with your library to th...
2,275 Views
6 Replies
01-22-2021, 04:08 PM
josh2112o
    Thread: Custom Validation Rule in Model
Post: Custom Validation Rule in Model

I know we can have custom validation rules in the controller, by adding more rule sets to the /Config/Validation.php file but how do we add them to the model when performing validation there. Somethi...
2,275 Views
6 Replies
01-22-2021, 03:28 AM
josh2112o
    Thread: Validation in the Model not working
Post: RE: Validation in the Model not working

neoneeco Wrote: (01-18-2021, 11:06 AM) -- Sorry i dont really understand, Do you mean that the error is here : protected $table      = 'walking_stats'; protected $primaryKey = 'day_walked'; prot...
2,123 Views
6 Replies
01-18-2021, 02:18 PM
josh2112o
    Thread: Validation in the Model not working
Post: RE: Validation in the Model not working

iRedds Wrote: (01-17-2021, 11:32 AM) -- josh2112o Wrote: (01-17-2021, 06:13 AM) -- Hi all, I am trying to perform data validation in my Model class, following along with the instruction/practices m...
2,123 Views
6 Replies
01-17-2021, 11:41 AM
josh2112o
    Thread: Validation in the Model not working
Post: RE: Validation in the Model not working

Corsari Wrote: (01-17-2021, 08:55 AM) -- Hello friends I have found the solution The problem for me was to make the right use of alias for columns Easy task for experienced coders ... but I'...
2,123 Views
6 Replies
01-17-2021, 10:57 AM
josh2112o
    Thread: Validation in the Model not working
Post: Validation in the Model not working

Hi all, I am trying to perform data validation in my Model class, following along with the instruction/practices mentioned in the docs here (https://codeigniter4.github.io/userguide/models/model.html...
2,123 Views
6 Replies
01-17-2021, 06:13 AM
josh2112o
    Thread: CodeIgniter 4 Model Callbacks not hashing password before insert
Post: RE: CodeIgniter 4 Model Callbacks not hashing pass...

InsiteFX Wrote: (01-02-2021, 09:45 PM) -- Also keep in mind that password_hash is expecting a string parameter, may cause problems passing arrays. -- Thank you for the information and best practices ...
3,006 Views
7 Replies
01-03-2021, 06:49 AM
josh2112o
    Thread: CodeIgniter 4 Model Callbacks not hashing password before insert
Post: RE: CodeIgniter 4 Model Callbacks not hashing pass...

iRedds Wrote: (01-02-2021, 09:24 PM) -- josh2112o Wrote: (01-02-2021, 11:15 AM) -- Hi and thanks for the response. So, when you say the event triggers need to be called manually, does that mean I ne...
3,006 Views
7 Replies
01-03-2021, 06:47 AM
josh2112o
    Thread: CodeIgniter 4 Model Callbacks not hashing password before insert
Post: RE: CodeIgniter 4 Model Callbacks not hashing pass...

iRedds Wrote: (01-02-2021, 09:41 AM) -- At first, the $allowCallbacks model property is enabled by default.  For events to work, you need to use defined methods like insert / update / save / etc. ...
3,006 Views
7 Replies
01-02-2021, 11:15 AM
josh2112o
    Thread: CodeIgniter 4 Model Callbacks not hashing password before insert
Post: CodeIgniter 4 Model Callbacks not hashing password...

Hi, I am totally new to CI4 but do have some experience with PHP. I having trouble getting the Model class callback functions to work when inserting a new user row. Here is the Controller: Code: -...
3,006 Views
7 Replies
01-02-2021, 06:56 AM
josh2112o

Theme © iAndrew 2016 - Forum software by © MyBB