# |
Jun 6th 2021, 14:02 |
fresnel.brieuc |
Or does vue maybe does that automatically? |
# |
Jun 6th 2021, 14:01 |
fresnel.brieuc |
@isvyas Sorry to bother you again but I have a question concerning the repo you sent me yesterday https://github.com/ishanvyas22/cakephpvue-spa, does the config compile components css/scss ? How does it work ? (Not talking about the resources/css directory you made, talking about the css inside vue component files) |
# |
Jun 5th 2021, 19:24 |
etibor |
i think i made a fault by, adding a ```if($this->request->is('post')){ }else{//no form submit }``` |
# |
Jun 5th 2021, 19:18 |
kevin.pfeifer |
so your paginated table was only built when you click on a button which submits a form? |
# |
Jun 5th 2021, 19:08 |
etibor |
i haven properly definied the Form |
# |
Jun 5th 2021, 19:07 |
etibor |
the issue is similiar: ```The reason why the error did not occur when you submit the form is because the $_POST variables exist in the server but if you click the page button IE <a href="search?page=2">2</a> the $_POST will gone That's why this occurs Notice (8): Undefined index: to [APP/Controller/Admin/ScheduleController.php, line 257] to fix that change your method to GET``` |
# |
Jun 5th 2021, 18:56 |
kevin.pfeifer |
so it does happen on page=1 but not on page=2? |
# |
Jun 5th 2021, 18:55 |
etibor |
the issue is probably related to a form filter |
# |
Jun 5th 2021, 18:41 |
etibor |
after the first post it does render the 30 record |
# |
Jun 5th 2021, 18:40 |
etibor |
hm, interestingly it happened when click on the page number |
# |
Jun 5th 2021, 18:26 |
kevin.pfeifer |
well does the array change when you go into your template |
# |
Jun 5th 2021, 18:26 |
etibor |
so it may passed for the view |
# |
Jun 5th 2021, 18:26 |
etibor |
$documents->toArray() shows the 30 record |
# |
Jun 5th 2021, 18:23 |
kevin.pfeifer |
`->count()` is the whole query without limit but `$douments->toArray()` is actually the array whicht gets passed to your view |
# |
Jun 5th 2021, 18:23 |
etibor |
```LIMIT 30 OFFSET 30``` |
# |
Jun 5th 2021, 18:23 |
etibor |
yes you are right @kevin.pfeifer it does got the : ```LIMIT 30 OFFSET 0``` on the first page, while on the second |
# |
Jun 5th 2021, 18:22 |
kevin.pfeifer |
otherwise you result object only has one entry in there? |
# |
Jun 5th 2021, 18:20 |
kevin.pfeifer |
after doing the `->paginate()` function on your query object it should have the limit inside the `->sql()` function |
# |
Jun 5th 2021, 18:17 |
etibor |
thank you @kevin.pfeifer |
# |
Jun 5th 2021, 18:16 |
etibor |
$documents->count() returns 1210 |
# |
Jun 5th 2021, 18:15 |
etibor |
i checked $documents->sql() it does not contain any limit or offset |
# |
Jun 5th 2021, 18:12 |
kevin.pfeifer |
when you check the sql query with debugkit does it say limit 30? |
# |
Jun 5th 2021, 18:06 |
etibor |
and debug($this->paginate); shows limit 30 record / page |
# |
Jun 5th 2021, 18:05 |
etibor |
i dont know whats the reason why pagination return only one record per page, because at the bottom of the page its shows 30 record/page |
# |
Jun 5th 2021, 18:04 |
etibor |
Hello everyone |
# |
Jun 5th 2021, 15:47 |
admad |
Regardless I approve of the tweet for Linkin Park reference :) |
# |
Jun 5th 2021, 15:43 |
ndm |
Not really into crypto either, but yeah, it looks like the game is still on :) |
# |
Jun 5th 2021, 15:42 |
admad |
Oh he did another tweet yesterday :,) |
# |
Jun 5th 2021, 15:39 |
admad |
@ndm I would like to have BS based "official" skeleton but as we have seen that's not achievable with just template changes. |
# |
Jun 5th 2021, 15:37 |
admad |
Not into the crypto scene, the blood bath post Elon shenagins continues? |
# |
Jun 5th 2021, 15:36 |
ndm |
People contemplation with self-deletion after checking their bitcoin wallets? |
# |
Jun 5th 2021, 15:35 |
admad |
I agree |
# |
Jun 5th 2021, 15:28 |
kevin.pfeifer |
looking at https://packagist.org/packages/cakephp/cakephp/stats i wonder what happened last month :thinking_face: |
# |
Jun 5th 2021, 15:03 |
ndm |
I know, but the shipped defaults are just for prototyping anyways... I'd personally would've rather seen the framework's userbase increase by giving the kinds the hip stuff. |
# |
Jun 5th 2021, 15:02 |
kevin.pfeifer |
not only classes but some DOM changes too I guess |
# |
Jun 5th 2021, 15:02 |
dereuromark |
Less easy to move away from again |
# |
Jun 5th 2021, 15:02 |
dereuromark |
The idea Was minimal overhead on the default HTML. Bootstrap requires more class adding ootb |
# |
Jun 5th 2021, 15:00 |
kevin.pfeifer |
I can imagine that this was definitely not an easy decision back then but as you said it wouldn’t matter that much any more I remember the “old” cake 3 default styling was even more “oldstyle” than the current milligram variant in my opinion :) |
# |
Jun 5th 2021, 14:57 |
ndm |
Doesn't really matter anymore now though, that horse is already in a tube of glue. It would've mattered back then, but now, I don't think Bootstrap would attract many new users. |
# |
Jun 5th 2021, 14:55 |
ndm |
and foundation, yeah... which is less esoteric, but still not even closely as popular as bootstrap, at least that was the case back then, not sure how it's nowadays. |
# |
Jun 5th 2021, 14:53 |
kevin.pfeifer |
you mean miligram as esoteric? |