# |
Feb 20th 2020, 23:01 |
ricksaccous |
i gotta peace out and stuff, ciao |
# |
Feb 20th 2020, 23:00 |
ricksaccous |
Enjoy your funkadelic future, breh |
# |
Feb 20th 2020, 23:00 |
tomrwaller |
Oh man, I wish I'd seen that before. Thanks @ricksaccous - looks like that will do it! |
# |
Feb 20th 2020, 23:00 |
ricksaccous |
;) |
# |
Feb 20th 2020, 23:00 |
ricksaccous |
always reference the default ones |
# |
Feb 20th 2020, 23:00 |
ricksaccous |
in the template, like the default one has |
# |
Feb 20th 2020, 23:00 |
ricksaccous |
all you need is a [] after name |
# |
Feb 20th 2020, 22:59 |
ricksaccous |
https://github.com/cakephp/cakephp/blob/0cbace0fa29fda713f611f29135bdf7db443366d/src/View/Helper/FormHelper.php#L87 |
# |
Feb 20th 2020, 22:59 |
tomrwaller |
Do you happen to have a link? I've been searching but I've come up short so far. |
# |
Feb 20th 2020, 22:58 |
ricksaccous |
that would give you a good idea |
# |
Feb 20th 2020, 22:58 |
ricksaccous |
have you looked at the default templates? |
# |
Feb 20th 2020, 22:58 |
tomrwaller |
Guess I need to append [] to name={{name}} in my template but not sure where to do this. |
# |
Feb 20th 2020, 22:57 |
ricksaccous |
oh nice |
# |
Feb 20th 2020, 22:57 |
slackebot |
- `'selectMultiple' => '<select class="form-control" multiple="multiple" {{attrs}} name={{name}}>{{content}}</select>'` |
# |
Feb 20th 2020, 22:57 |
tomrwaller |
Anyone got any idea why when I use a form template the HTML name attribute for a select is different? I've narrowed down my issue and it is because I'm missing a set of braces... This code fails - `<select name="associated_technologies[_ids]" multiple="multiple" id="associated-technologies-ids">` This code works - `<select name="associated_technologies[_ids]*[]*" multiple="multiple" id="associated-technologies-ids">` This is the template |
# |
Feb 20th 2020, 22:57 |
ricksaccous |
oh mannnn |
# |
Feb 20th 2020, 22:55 |
slackebot |
<challgren> |
# |
Feb 20th 2020, 22:55 |
ricksaccous |
oh funkadelic what's up with ur forms, i'm sure you are about to tell us more |
# |
Feb 20th 2020, 22:49 |
ricksaccous |
ahahahhaa |
# |
Feb 20th 2020, 22:49 |
challgren |
@ricksaccous you sound like me! :P |
# |
Feb 20th 2020, 22:49 |
ricksaccous |
Croogo can have anything you want ;) if you program it to ;) |
# |
Feb 20th 2020, 22:48 |
jan-willem |
Doesn't Croogo have any import? |
# |
Feb 20th 2020, 22:48 |
dereuromark |
sounds like this https://github.com/FriendsOfCake/awesome-cakephp#cms-and-applications-built-on-cakephp Croogo a bit. Which basically can do that. |
# |
Feb 20th 2020, 22:47 |
dereuromark |
or the blogging part, with some role management :) |
# |
Feb 20th 2020, 22:46 |
ricksaccous |
i have no idea though |
# |
Feb 20th 2020, 22:46 |
ricksaccous |
it sounds like he might just want to transfer the membership portion over to the new CakePHP portal |
# |
Feb 20th 2020, 22:45 |
challgren |
There wouldnt really be a way to convert wordpress to cakephp, you’d have to redesign/code everything from anew |
# |
Feb 20th 2020, 22:45 |
challgren |
@info519 wordpress and cakephp are 2 different beasts |
# |
Feb 20th 2020, 22:31 |
info519 |
Has anyone ever managed to convert a Wordpress/Buddypress membership based site to CakePHP ? if any experience, please share your ideas |
# |
Feb 20th 2020, 22:01 |
tomrwaller |
Flipping heck - been staring at this for hours and wondered why it worked fine in a clean test project - was my form template all along, screwing up the HTML. Now to unpick that hot mess... |
# |
Feb 20th 2020, 21:51 |
tomrwaller |
Hi all - any idea why this line would be generating a count of items selected instead of an array of ID's in my add.php? `echo $this->Form->control('associated_technologies._ids', ['options' => $associatedTechnologies]);` |
# |
Feb 20th 2020, 21:45 |
jan-willem |
Thank you! |
# |
Feb 20th 2020, 21:43 |
jan-willem |
Just noticed. Working. Perfect! |
# |
Feb 20th 2020, 21:40 |
dereuromark |
Locally I cannot reproduce for some reason... |
# |
Feb 20th 2020, 21:39 |
dereuromark |
Also exists there ;) |
# |
Feb 20th 2020, 21:35 |
jan-willem |
But will look to it. thnx |
# |
Feb 20th 2020, 21:35 |
jan-willem |
I suppose this one was for me? :P I'm already on CakePHP 4 |
# |
Feb 20th 2020, 21:28 |
wizardfix |
Reading now @challgren thanks :) |
# |
Feb 20th 2020, 21:27 |
challgren |
@wizardfix see https://www.dereuromark.de/2020/02/06/virtual-query-fields-in-cakephp/ |
# |
Feb 20th 2020, 21:27 |
dereuromark |
@hawk dot syntax is not supported by has afaik. I use here normally https://github.com/dereuromark/cakephp-shim/blob/master/src/Model/Entity/ReadTrait.php - which then supports paths. |
# |
Feb 20th 2020, 21:26 |
wizardfix |
From the book (3.8): > Control which Fields Used for Ordering¶ > By default sorting can be done on any non-virtual column a table has. Does this mean the Paginator can no way sort on virtual fields? :thinking_face: |