Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: What's the best way to limit pagination to 5 pages?
Post: What's the best way to limit pagination to 5 pages...

Hey I have a page where I use pagination, 20 records per page, but I would like to limit max to 5 pages / 100 records out of the thousands I have in the table. I've read the documentation but I ca...
133 Views
1 Replies
05-14-2022, 02:19 AM
nneves
    Thread: CSRF only in one page
Post: RE: CSRF only in one page

manager Wrote: (09-08-2021, 09:46 PM) -- nneves Wrote: (09-08-2021, 07:56 PM) -- Hi What's the best approach to use CSRF only in one page without using the Filter? I need to remove all cookies for...
934 Views
3 Replies
09-09-2021, 01:06 AM
nneves
    Thread: CSRF only in one page
Post: CSRF only in one page

Hi What's the best approach to use CSRF only in one page without using the Filter? I need to remove all cookies for cache propose. Thanks
934 Views
3 Replies
09-08-2021, 07:56 PM
nneves
    Thread: updated_at is not updating
Post: RE: updated_at is not updating

Yes, I've disable useTimestamps and just update the fields manually until a stable solution. Even so, there is an insert query that updates updated_at with useTimestamps = false.
2,402 Views
11 Replies
08-19-2021, 01:43 PM
nneves
    Thread: updated_at is not updating
Post: RE: updated_at is not updating

ikesela Wrote: (08-19-2021, 04:12 AM) -- this the problem, when you set to false, not working with updated_at (for auto update datetime). $builder->set('views', 'views+1', false); * this maybe ...
2,402 Views
11 Replies
08-19-2021, 05:25 AM
nneves
    Thread: updated_at is not updating
Post: RE: updated_at is not updating

Hi No, but does not change the behavior. In debug mode I can see that the insert query adds both created and updated dates, but when updating, the updated_at filed is not added. I've tested executin...
2,402 Views
11 Replies
08-19-2021, 02:21 AM
nneves
    Thread: updated_at is not updating
Post: updated_at is not updating

Hi In my model I have this settings and when I insert a record, both created_at and updated_at are updated Code: -- protected $table = 'strings'; protected $useSoftDeletes = true; protected $allowe...
2,402 Views
11 Replies
08-18-2021, 04:50 PM
nneves
    Thread: Form field name localization
Post: RE: Form field name localization

Just an update about this if anyone need it, the file name is translated with Validation Labels: https://codeigniter.com/user_guide/libraries/validation.html#translation-of-messages-and-validation-lab...
805 Views
3 Replies
08-18-2021, 05:08 AM
nneves
    Thread: Form field name localization
Post: RE: Form field name localization

Hi I already have all localization working, the only thing I can't find a way to do is the translation of the form field name. I don't find any reference in the documentation to do this. I'm us...
805 Views
3 Replies
08-14-2021, 01:54 AM
nneves
    Thread: Form field name localization
Post: Form field name localization

Hi How can I set the form field name localization to match the user language? The textarea form field name is "comment" and has a min length of 10 characters set in the validationRules Englis...
805 Views
3 Replies
08-13-2021, 03:39 AM
nneves
    Thread: Pass data to a partial inside a loop
Post: RE: Pass data to a partial inside a loop

Hi @Digital_Wolf Thanks for your feedback. The interaction works when everything is inside the main template and stop working when I place the variable inside a partial template. I think that l...
2,572 Views
5 Replies
06-22-2020, 01:32 AM
nneves
    Thread: Pass data to a partial inside a loop
Post: Pass data to a partial inside a loop

Hi This is the first time I'm using CI and I have a questiona about getting data inside a partial within a loop. On the controller I call the view with an array of data: PHP Code: -- return ...
2,572 Views
5 Replies
06-21-2020, 04:46 AM
nneves

Theme © iAndrew 2016 - Forum software by © MyBB