# |
Jan 7th 2020, 16:20 |
ndm |
You provide a callback in which you connect the plugin routes via `connect()`, and there you can either use the `_host` option, or the `setHost()` method. https://book.cakephp.org/4/en/development/routing.html#plugin-routing |
# |
Jan 7th 2020, 16:17 |
damiano |
@ndm how can i set the host in $routes->plugin() ? |
# |
Jan 7th 2020, 16:10 |
ndm |
I fail to see the problem, you can generally set the host on any route you want |
# |
Jan 7th 2020, 16:09 |
damiano |
anyone? |
# |
Jan 7th 2020, 15:51 |
damiano |
how can i do that? should i add a ->connect()and then ->setHost() ? sounds verbose because {controller}/{action} is the default route |
# |
Jan 7th 2020, 15:50 |
damiano |
i know i can use setHost() but i busically have webhook.domain.com/{controller}/{action} |
# |
Jan 7th 2020, 15:50 |
damiano |
hey guys i have seen that cake 4.x has moved the plugin routes inside PLugin.php is it possible to set the _host in the $routes->plugin(..) ? |
# |
Jan 7th 2020, 15:39 |
ricksaccous |
i'm not sure |
# |
Jan 7th 2020, 15:39 |
ricksaccous |
I think list just kind of autocombines, but combine does it at the result level and list does it at the query level... |
# |
Jan 7th 2020, 15:37 |
val |
in 3.x what is the difference between `$this->MyModel->find()->combine(...)` and `$this->MyModel->find('list')->`? It looks that both return the same results, don't they? |
# |
Jan 7th 2020, 15:32 |
ricksaccous |
hohoho |
# |
Jan 7th 2020, 15:32 |
ricksaccous |
hohoho you do not zlike ze baguette? |
# |
Jan 7th 2020, 15:31 |
neon1024 |
:troll: |
# |
Jan 7th 2020, 15:31 |
neon1024 |
We don’t speak of “The French Framework” |
# |
Jan 7th 2020, 15:31 |
slackebot |
Action: neon1024 hisses |
# |
Jan 7th 2020, 15:30 |
alexdd55976 |
@ndm @ricksaccous thanks, using symphony now |
# |
Jan 7th 2020, 15:30 |
alexdd55976 |
@admad i do so... already in progress ;) |
# |
Jan 7th 2020, 15:29 |
neon1024 |
@admad Does your Glide plugin deal with the client side request signing for images? |
# |
Jan 7th 2020, 15:28 |
admad |
@alexdd55976 as others already suggested use one of those symphony packages. They are already pulled in for every app as an indirect dependency of plugin installer |
# |
Jan 7th 2020, 15:26 |
admad |
I know you you like it dirty |
# |
Jan 7th 2020, 15:14 |
ndm |
Giving yourself a berry sounds kinda dirty |
# |
Jan 7th 2020, 15:11 |
admad |
give yourself a berry and make a PR :) |
# |
Jan 7th 2020, 15:11 |
admad |
you have a plugin on that list? |
# |
Jan 7th 2020, 15:10 |
ndm |
Nobody gave me a berry, the list is rigged! |
# |
Jan 7th 2020, 15:09 |
admad |
but you can, just add "minimum-stablity": "beta" to your composer |
# |
Jan 7th 2020, 15:09 |
martin |
we are working on a new version of our project now, it will take a few months of development, so I think it is a good choice to upgrade to cake 4 in that branch asap :P |
# |
Jan 7th 2020, 15:08 |
martin |
I think crud is the only dependency for us to not able to upgrade to cake 4 yet :) |
# |
Jan 7th 2020, 15:04 |
admad |
;) |
# |
Jan 7th 2020, 15:04 |
martin |
haha good way to do that :) |
# |
Jan 7th 2020, 15:03 |
admad |
https://github.com/friendsofcake/awesome-cakephp all Cake 4 compatible ones have :strawberry: icon |
# |
Jan 7th 2020, 15:02 |
tibor.hajos |
@admad I'll definitely do that. I'm still running it on 3.x and it works like a charm |
# |
Jan 7th 2020, 15:02 |
martin |
ah ok :) |
# |
Jan 7th 2020, 15:01 |
admad |
@martin there's already a Cake 4 compatible beta release https://github.com/FriendsOfCake/crud/releases |
# |
Jan 7th 2020, 15:00 |
admad |
if you are using it and find any bugs submit issues or PRs :) |
# |
Jan 7th 2020, 14:59 |
admad |
@tibor.hajos there's nothing specific on the roadmap expect for Cake 4 compatibility which has already been achieved. |
# |
Jan 7th 2020, 14:56 |
tibor.hajos |
@martin Judging by the status page https://travis-ci.org/FriendsOfCake/crud/builds/629372089?utm_source=github_statusandutm_medium=notification I think it's in beta. I would also like to know what the roadmap for crud is. I'd love to help out, as I think crud is genius |
# |
Jan 7th 2020, 14:46 |
ndm |
And https://symfony.com/doc/current/components/finder.html for if you don't like to use PHP's native iterators directly. |
# |
Jan 7th 2020, 14:42 |
ricksaccous |
i just googled and found that |
# |
Jan 7th 2020, 14:42 |
ricksaccous |
https://symfony.com/doc/current/components/filesystem.html |
# |
Jan 7th 2020, 14:42 |
ricksaccous |
you can replace it with whatever |
# |
Jan 7th 2020, 14:41 |
alexdd55976 |
actually its zero fun and not working as expected |