Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Critical error in system/Common.php - realpath
Post: RE: Critical error in system/Common.php - realpath

Gary Wrote: (02-26-2023, 11:09 AM) -- Yes... it looks like it can't understand some of your path. What is the "base" directory you have CI running out of? ... the *** part of "/***/codeigniter4...
699 Views
5 Replies
02-26-2023, 01:14 PM
groovebird
    Thread: Critical error in system/Common.php - realpath
Post: RE: Critical error in system/Common.php - realpath

What i don't understand, the parameter should be a string with a path name, but in the error log a serialized string is shown
699 Views
5 Replies
02-26-2023, 10:43 AM
groovebird
    Thread: Critical error in system/Common.php - realpath
Post: Critical error in system/Common.php - realpath

Hi, after loading the homepage i got an 500 error with the following error message in the logfile. Code: -- CRITICAL - 2023-02-24 14:26:45 --> Uncaught ValueError: realpath(): Argument #1 ($path) ...
699 Views
5 Replies
02-26-2023, 05:17 AM
groovebird
    Thread: Customize the redirect if not logged in
Post: Customize the redirect if not logged in

Hi, if the user is not logged in and calls a protected route then the redirect goes to the /login route. How can i change this route to a custom url? Doing a check with PHP Code: -- if au...
1,034 Views
1 Replies
01-25-2023, 07:26 AM
groovebird
    Thread: Form reload - post array is empty
Post: Form reload - post array is empty

Hi, if the form was submitted and i reload the form then i get the message that all post data are sent again. this is the normal behaviour. If i reload the form again, then codeigniter redirects to...
3,094 Views
2 Replies
01-24-2023, 10:00 AM
groovebird
    Thread: Shield table auth_identities - fill column name
Post: RE: Shield table auth_identities - fill column nam...

@kenjis ah ok. Does it mean this is not really the column i can use for a name if not using the tokens? Do i have to add another column as you recommended in your first post? EDIT: now i see you alr...
2,026 Views
7 Replies
01-19-2023, 01:56 AM
groovebird
    Thread: Shield table auth_identities - fill column name
Post: RE: Shield table auth_identities - fill column nam...

InsiteFX Wrote: (01-19-2023, 12:23 AM) -- @"kenjis", I think he needs to add the name field he added to the $allowedFields[] array. -- @InsiteFX, the field is already there. This is the code from t...
2,026 Views
7 Replies
01-19-2023, 12:45 AM
groovebird
    Thread: Shield table auth_identities - fill column name
Post: RE: Shield table auth_identities - fill column nam...

kenjis Wrote: (01-18-2023, 06:01 PM) -- Do you mean you want to add column "name" in the user table? See https://github.com/codeigniter4/shield/discussions/333 -- No. The table auth_identites alre...
2,026 Views
7 Replies
01-19-2023, 12:08 AM
groovebird
    Thread: Shield table auth_identities - fill column name
Post: Shield table auth_identities - fill column name

Hi, how can i fill the column "name" if a new user will be registered or updated? I added the column in the array of user data but the column will not be filled. How can i solve this?
2,026 Views
7 Replies
01-18-2023, 01:13 PM
groovebird
    Thread: Shield: access of a page for one user
Post: RE: Shield: access of a page for one user

InsiteFX Wrote: (12-30-2022, 12:17 AM) -- No you can create Groups and give the Groups Permission access rules. -- Yes, but a "group" only consists of one user, because only one user has access to ...
3,396 Views
10 Replies
12-30-2022, 06:02 AM
groovebird
    Thread: Shield: access of a page for one user
Post: RE: Shield: access of a page for one user

Ok and does it mean for 100 users and 100 pages i have to set 100 permissions in the permissions array? Is it better to store the user id in a database table which contains the page and the user id?
3,396 Views
10 Replies
12-29-2022, 10:17 AM
groovebird
    Thread: Shield: access of a page for one user
Post: RE: Shield: access of a page for one user

superior Wrote: (12-27-2022, 10:02 AM) -- Using permissions, you can set a permission per group or per user, so user A has access to Permission A and user B has access to Permission B -- OK, can i ...
3,396 Views
10 Replies
12-27-2022, 10:25 AM
groovebird
    Thread: Shield: access of a page for one user
Post: Shield: access of a page for one user

Hi, how can i do the following scenario? I have page A and page B. User A has only access to page A and user B has only access to page B. Do i have to check a user id in the controller or is th...
3,396 Views
10 Replies
12-27-2022, 08:21 AM
groovebird
    Thread: Model with joined tables
Post: RE: Model with joined tables

What are nested models? Why not creating additional models? Then you can use the save method for every model. Unfortunately CI has no option for using relations in models.
704 Views
6 Replies
12-15-2022, 02:40 AM
groovebird
    Thread: Bug? Form Validation and fields with brackets
Post: Bug? Form Validation and fields with brackets

Hi, i have a textfield and radiobutton with [] in the name to validate. The rules are PHP Code: -- public $group1 = [         'textfield.*' => [             'label' => '...',            ...
238 Views
0 Replies
12-13-2022, 10:21 AM
groovebird
    Thread: Format Date in a foreign language
Post: RE: Format Date in a foreign language

InsiteFX Wrote: (12-11-2022, 01:54 AM) -- You can also use IntlDateFormatter::format PHP.NET - IntlDateFormatter::format (https://www.php.net/manual/en/intldateformatter.format.php) -- I think CI us...
657 Views
4 Replies
12-11-2022, 04:42 AM
groovebird
    Thread: Format Date in a foreign language
Post: RE: Format Date in a foreign language

Mni.day Wrote: (12-10-2022, 03:58 PM) -- PHP Code: -- $time->toLocalizedString('D. d.m.Y'); -- -- This is not working, because the date format string is another one. but i will try it. Then i have...
657 Views
4 Replies
12-10-2022, 04:02 PM
groovebird
    Thread: Format Date in a foreign language
Post: Format Date in a foreign language

Hi, i need the weekday in german and want to use the CI4 Time library. PHP Code: -- use CodeIgniter\I18n\Time; $time = Time::parse('2022-12-10'); echo $time->format('D. d.m.Y'); -- Th...
657 Views
4 Replies
12-10-2022, 08:30 AM
groovebird
    Thread: Problem with submit a form and redirect
Post: Problem with submit a form and redirect

Hi, this is the controller function with some simplified code: PHP Code: -- public function index() { return view('layout', ['contactform' => $this->getContactform]); } public functi...
257 Views
0 Replies
11-17-2022, 09:39 AM
groovebird
    Thread: How to use redis?
Post: RE: How to use redis?

InsiteFX Wrote: (10-31-2022, 12:27 AM) -- This is for CodeIgniter 3 but should be easy to transfer over to CodeIgniter 4 Predis (https://github.com/predis/predis) -- This is all from the documentat...
1,584 Views
2 Replies
10-31-2022, 03:03 AM
groovebird

Theme © iAndrew 2016 - Forum software by © MyBB