Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Arrayed Inputs Validation
Post: RE: Arrayed Inputs Validation

I've submitted a pull request (https://github.com/codeigniter4/CodeIgniter4/pull/8414) for this. Looking into the code of how validated data is retrieved I see that Codeigniter4/system/Validation/DotA...
817 Views
1 Replies
01-15-2024, 01:25 PM
grimpirate
    Thread: Arrayed Inputs Validation
Post: Arrayed Inputs Validation

Running into a strange issue with code validation of name="somename[]" inputs. I'll do my best to explain. I have a form in which inputs are added/removed by the user. I am also adding/removing rules ...
817 Views
1 Replies
01-14-2024, 10:11 AM
grimpirate
    Thread: in_unique Validation Rule Help
Post: RE: in_unique Validation Rule Help

This example https://codeigniter4.github.io/userguide/libraries/validation.html#validation-placeholders shows exactly what you're attempting to achieve. The only possible difference I see is that your...
729 Views
2 Replies
11-29-2023, 01:39 PM
grimpirate
    Thread: Model $afterDelete and propagation
Post: Model $afterDelete and propagation

My setup is as follows in terms of a simplified database structure: table1, table2, table3, table4, table5. table1, table2 and table3 are independent tables. table4 has foreign keys to the primary key...
181 Views
0 Replies
11-29-2023, 11:55 AM
grimpirate
    Thread: Filter Interface
Post: RE: Filter Interface

The likeliest culprit is a typo given what you're showing there. Technically, the statement should be: Code: -- use CodeIgniter\Filters\FilterInterface; -- Wherever it is you chose to implement your...
737 Views
1 Replies
11-24-2023, 07:38 AM
grimpirate
    Thread: [SOLVED] SQLite3 Error
Post: RE: SQLite3 Error

The offending SQL statement that is generated for the insertBatch statement is Code: -- INSERT INTO `formula` () VALUES (1,1,1,1,1), (2,2,1,2,1), () -- as output by an inserted die($sql) statemen...
585 Views
3 Replies
11-20-2023, 01:57 PM
grimpirate
    Thread: [SOLVED] SQLite3 Error
Post: [SOLVED] SQLite3 Error

Code: -- /var/www/localhost/htdocs/sub # php spark db:seed FormulaSeeder CodeIgniter v4.4.3 Command Line Tool - Server Time: 2023-11-20 12:55:59 UTC-05:00 [CodeIgniter\Database\Exceptions\Dat...
585 Views
3 Replies
11-20-2023, 11:01 AM
grimpirate
    Thread: [SOLVED] Shield getPermissions returns an empty array
Post: RE: Shield getPermissions returns an empty array

@"datamweb" and @"kenjis" thank you both very much for explaining the nuance, that wasn't immediately apparent to me when I read through the documentation.
2,346 Views
6 Replies
04-22-2023, 08:22 AM
grimpirate
    Thread: [SOLVED] Shield getPermissions returns an empty array
Post: RE: Shield getPermissions returns an empty array

It's my understanding that the AuthGroups configuration file provides a default set of permissions for the groups under the matrix property (https://codeigniter4.github.io/shield/authorization/#assign...
2,346 Views
6 Replies
04-21-2023, 01:10 PM
grimpirate
    Thread: [SOLVED] Shield getPermissions returns an empty array
Post: [SOLVED] Shield getPermissions returns an empty ar...

I'm using the following spark command to create three default users for testing purposes: PHP Code: --
2,346 Views
6 Replies
04-21-2023, 08:23 AM
grimpirate
    Thread: [SOLVED] Multi-Select or Arrayed Values Validation
Post: RE: Multi-Select or Arrayed Values Validation

Thank you kenjis, I completely overlooked this section.
833 Views
2 Replies
04-21-2023, 08:04 AM
grimpirate
    Thread: Library to generate API tokens without database
Post: RE: Library to generate API tokens without databas...

You might not have access to a full-fledged database but you could always try using a sqlite backend. Store all of your tokens inside a table in the sqlite file. Use spark command line to manipulate t...
793 Views
2 Replies
04-19-2023, 03:59 PM
grimpirate
    Thread: [SOLVED] Multi-Select or Arrayed Values Validation
Post: [SOLVED] Multi-Select or Arrayed Values Validation

I've tried the following two pieces of code (I've hardcoded the "passed" values into the run method for the sake of clarity): PHP Code: -- $validation = \Config\Services::validation(); $validation-...
833 Views
2 Replies
04-19-2023, 10:00 AM
grimpirate
    Thread: remove "index.php" from CodeIgniter's URL
Post: RE: remove "index.php" from CodeIgniter's URL

Also read here on Removing the index.php file (https://codeigniter.com/user_guide/general/urls.html?highlight=index%20php#removing-the-index-php-file) in the documentation
1,737 Views
3 Replies
03-01-2023, 12:31 PM
grimpirate
    Thread: How to run a single seeder during unit test?
Post: RE: How to run a single seeder during unit test?

If you're placing your file into app/Database/Seeds then your namespace is incorrect when you attempt to run it. Code: -- Currently: namespace Tests\Support\Database\Seeds; Should be: namespace App\...
1,665 Views
5 Replies
02-25-2023, 08:56 AM
grimpirate
    Thread: Google Two-Factor Authentication Module for Shield
Post: RE: Google Two-Factor Authentication Module for Sh...

datamweb Wrote: (02-24-2023, 01:54 AM) -- Also, I disagree with your opinion that if someone installs Halberd, they must use it, if this is true, then if the user installs the Shield, he must have ma...
7,520 Views
11 Replies
02-24-2023, 11:24 AM
grimpirate
    Thread: Google Two-Factor Authentication Module for Shield
Post: RE: Google Two-Factor Authentication Module for Sh...

@"datamweb" thank you for the callouts regarding namespace and the helper functions. However, I fail to see the benefit of setting the actions manually. If the person elected to use Halberd, it follo...
7,520 Views
11 Replies
02-23-2023, 02:47 PM
grimpirate
    Thread: Google Two-Factor Authentication Module for Shield
Post: RE: Google Two-Factor Authentication Module for Sh...

I've imported and renamed the repository to unfork it, that way the contributions to the project remain.
7,520 Views
11 Replies
02-23-2023, 12:37 PM
grimpirate
    Thread: Shield: access of a page for one user
Post: RE: Shield: access of a page for one user

If what you're referring to is specifically a profile page, what you would do is exclude public pages from your 'session' filter as explained here (https://github.com/codeigniter4/shield/blob/develop/...
6,644 Views
10 Replies
02-22-2023, 05:32 PM
grimpirate
    Thread: Google Two-Factor Authentication Module for Shield
Post: RE: Google Two-Factor Authentication Module for Sh...

@"datamweb" I forked it from Shield because the Actions that I created are modifications of the Email Actions provided by default by shield. So as a matter of complying with the MIT license I left the...
7,520 Views
11 Replies
02-22-2023, 09:28 AM
grimpirate

Theme © iAndrew 2016 - Forum software by © MyBB