Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: count # logins
Post: RE: count # logins

muhammadrejeki Wrote: (06-13-2021, 03:40 PM) -- first, dont forget to check $allowedFields in your model. then, u can do this : Code: -- $model->where('bruker_id', $bruker['bruker_id'])          ...
1,007 Views
2 Replies
06-13-2021, 10:35 PM
bengtdg
    Thread: count # logins
Post: count # logins

Trying to have a track of how many times a user logges in. And there is a function in mysql increase a db value by a number. But how do i achieve this with use of codeigniter model? Have tried: PH...
1,007 Views
2 Replies
06-13-2021, 01:41 PM
bengtdg
    Thread: user control - Can this be done easy
Post: user control - Can this be done easy

Hi I'm creating a website, using sessions to tell wich type of users i have Its three levels: guest, user and admin if guest, noe session is set, if user og admin  session()->get('role') cont...
545 Views
0 Replies
06-02-2021, 02:51 AM
bengtdg
    Thread: problems validation image
Post: RE: problems validation image

InsiteFX Wrote: (05-26-2021, 09:13 PM) -- Read this. CodeIgniter 4 User Guide - Working with Uploaded Files (https://codeigniter.com/user_guide/libraries/uploaded_files.html) -- Thank you. I hav...
1,069 Views
4 Replies
05-26-2021, 10:46 PM
bengtdg
    Thread: problems validation image
Post: problems validation image

Having trouble with validation of an image upload... When "kategori" fails validation, it returns the error message... but when the image upload fail, i get no error message. so this is the val...
1,069 Views
4 Replies
05-26-2021, 04:00 PM
bengtdg
    Thread: Modal help
Post: RE: Modal help

InsiteFX Wrote: (05-21-2021, 02:44 AM) -- This my help you out. CRUD CodeIgniter 4 Tutorial with Bootstrap Modal (Complete Guide) (https://mfikri.com/en/blog/crud-codeigniter4-modal) -- Thanx :)
763 Views
2 Replies
05-21-2021, 03:09 AM
bengtdg
    Thread: Modal help
Post: Modal help

Not sure if i'm in the right place.. But i have a site using CI4 and trying to get a modal up and running...  The modal pops up, but contains no info... So if anyone could direct me to the right di...
763 Views
2 Replies
05-20-2021, 04:19 PM
bengtdg
    Thread: route cannot be found while reverse-routing.
Post: RE: route cannot be found while reverse-routing.

iRedds Wrote: (05-20-2021, 08:54 AM) -- Fix what? Everything works fine. I showed above how to get out of the situation in three ways. But if you want to change behavior, you can offer your PR. -...
3,804 Views
8 Replies
05-20-2021, 09:39 AM
bengtdg
    Thread: route cannot be found while reverse-routing.
Post: RE: route cannot be found while reverse-routing.

iRedds Wrote: (05-20-2021, 04:49 AM) -- Because the route is not 'admin/cat/edit/1', but 'admin/cat/edit/([0-9]+)' -- Not sure if I understand... Is there something i can do to fix it ?
3,804 Views
8 Replies
05-20-2021, 05:16 AM
bengtdg
    Thread: route cannot be found while reverse-routing.
Post: RE: route cannot be found while reverse-routing.

Just pussled with the fact that it works under function store() but not in update() in the same controller. Here is the full CatController.php Line 38: Works fine Line 91: Fails PHP Code: -...
3,804 Views
8 Replies
05-20-2021, 03:02 AM
bengtdg
    Thread: route cannot be found while reverse-routing.
Post: RE: route cannot be found while reverse-routing.

InsiteFX Wrote: (05-19-2021, 08:42 PM) -- You have no admin/cat/edit/ route did you mean 'cat/edit/'.$id -- the route is in a route group... PHP Code: -- // Admin routes $routes->group("admin"...
3,804 Views
8 Replies
05-19-2021, 11:21 PM
bengtdg
    Thread: route cannot be found while reverse-routing.
Post: route cannot be found while reverse-routing.

Hi.. i get the error mentioned in the title when i try to update a row in db. And the validation failes. Routes.php In a group admin Code: -- //Kategorier     $routes->get('cat/list', 'CatControll...
3,804 Views
8 Replies
05-19-2021, 02:15 PM
bengtdg

Theme © iAndrew 2016 - Forum software by © MyBB