Welcome Guest, Not a member yet? Register   Sign In
custom validation rule(s)
#3

(This post was last modified: 03-22-2024, 01:55 AM by bobw.)

(03-21-2024, 11:42 PM)luckmoshy Wrote: Ok do you have an understanding of the PHP and CI namespace please

I'd say "somewhat" which is why I used the existing namespace rules as a guide. I suspect that the user guide at https://www.codeigniter.com/user_guide/l...stom-rules assumes you know what to do with regard to namespaces.

Thanks @luckmoshy, I was over specifying the namespaces. I just needed
PHP Code:
<?php
namespace Config;

class 
ClubRules

In my new class file and just update the $ruleSets array with:
PHP Code:
ClubRules::class, 

So I'd say that for clarity the user guide is missing that "namespace XXX;" line from its example.
Reply


Messages In This Thread
custom validation rule(s) - by bobw - 03-21-2024, 02:33 PM
RE: custom validation rule(s) - by luckmoshy - 03-21-2024, 11:42 PM
RE: custom validation rule(s) - by bobw - 03-22-2024, 01:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB