# |
Jun 14th 2021, 06:41 |
alamnaryab |
admin inside language |
# |
Jun 14th 2021, 06:40 |
alamnaryab |
I tried many things, with that version problem is with admin |
# |
Jun 14th 2021, 06:40 |
filipecamargo10 |
the problem is on admin routes |
# |
Jun 14th 2021, 06:38 |
alamnaryab |
waiting since last week |
# |
Jun 14th 2021, 06:37 |
alamnaryab |
https://discourse.cakephp.org/t/cakephp-4-admin-prefix-routing-with-i18n-language-parameter/9431 |
# |
Jun 14th 2021, 06:37 |
filipecamargo10 |
right |
# |
Jun 14th 2021, 06:37 |
alamnaryab |
https://stackoverflow.com/questions/67888105/cakephp-4-admin-prefix-routing-with-i18n-language-parameter |
# |
Jun 14th 2021, 06:37 |
alamnaryab |
localization and admin prefix routing |
# |
Jun 14th 2021, 06:37 |
filipecamargo10 |
what u need ? |
# |
Jun 14th 2021, 06:36 |
alamnaryab |
I am having issue with cakephp4 routing, can I get help here? |
# |
Jun 14th 2021, 06:36 |
conehead |
hello |
# |
Jun 14th 2021, 06:36 |
alamnaryab |
hello all |
# |
Jun 14th 2021, 06:35 |
johncakeboss |
irc is so nostalgic |
# |
Jun 14th 2021, 06:27 |
conehead |
@y.teruyacookie as you are using two custom finder methods that we do not know, this is very much possible that this is true. The name of the finder is not part of the object, so if the content of the finders is the same, but the name differs, it still can be true. did you try debug($cancels) and debug($reserves) and compare them by hand? Do they differ? debug($query->find() === $query->find('list')) is false for me |
# |
Jun 14th 2021, 06:11 |
other |
hi |
# |
Jun 14th 2021, 05:43 |
alamnaryab |
https://stackoverflow.com/questions/67888105/cakephp-4-admin-prefix-routing-with-i18n-language-parameter |
# |
Jun 14th 2021, 05:43 |
alamnaryab |
I am facing problem with cakephp4 i18n and admin routing since last week, hopefully here someone will help me. |
# |
Jun 14th 2021, 05:40 |
alamnaryab |
Good morning |
# |
Jun 14th 2021, 05:40 |
alamnaryab |
hi |
# |
Jun 14th 2021, 01:03 |
y.teruyacookie |
When I run the following DEBUG, it returns true, but I wonder why. ```$reserves = $query->find('Reserve', $options); $cancels = $query->find('Cancel', $options); debug($cancels === $reserves); // true is returned``` |
# |
Jun 13th 2021, 15:18 |
kiril.zvezdakoski |
just joined. regards to everyone here :) |
# |
Jun 13th 2021, 13:23 |
admad |
@angelxmoreno Crud plugin doesn't have much to do with routes. It comes into picture after the URL has already parsed into controller - action based on routes you set. |
# |
Jun 13th 2021, 13:20 |
admad |
@dereuromark yes, but that's for people to figure out for themselves :P |
# |
Jun 13th 2021, 12:49 |
dereuromark |
@admad Isnt there a long answer, like you could configure an additional lookup path and so on .. :) ? |
# |
Jun 13th 2021, 12:13 |
angelxmoreno |
greetings bakers! does the Crud Plugin support routes like `/rooms/123/members` using CakePHP 3.x and CrudPlugin 5.x ? |
# |
Jun 13th 2021, 11:51 |
kevin.pfeifer |
blobo, I would guess there is either • a notice or warning being outputted before the pdf is rendered (check your log directory) or • you unintentionally echo some string before the pdf is being rendered |
# |
Jun 13th 2021, 11:49 |
admad |
No. |
# |
Jun 13th 2021, 11:14 |
david |
is it possible to load an element out of the default "Element" location? |
# |
Jun 13th 2021, 11:13 |
david |
morning |
# |
Jun 13th 2021, 08:45 |
blobo |
help would be much appreciated |
# |
Jun 13th 2021, 08:45 |
blobo |
: Cannot modify header information - headers already sent |
# |
Jun 13th 2021, 08:45 |
blobo |
hello, help needed. I generate pdf with errors: <b>Warning</b> (2)</a> |
# |
Jun 13th 2021, 07:37 |
kevin.pfeifer |
ah, good to know thx :) |
# |
Jun 13th 2021, 07:36 |
admad |
@kevin.pfeifer returning a response instance from the action automatically disables auto rendering, so doing so explicitly is redundant. |
# |
Jun 13th 2021, 07:35 |
admad |
More like black fungus in these covid times. |
# |
Jun 12th 2021, 22:39 |
ndm |
@davinci Never echo data from a controller and/or die in it, this completely breaks CakePHP's execution flow, it breaks headers, it can cause data to be cut off, it messes up the testing environment, etc. If you see someone doing that, make them aware that what they are doing is wrong, and that it will bring them 7 years of bad luck... and foot fungus! |
# |
Jun 12th 2021, 19:16 |
kevin.pfeifer |
well `$this->autoRender = false;` prevents the view from being rendering and therefore all your logic is just in the controller |
# |
Jun 12th 2021, 19:07 |
davinci |
ah, so no need to `echo ... exit();` - just return the response. That seems cleaner |
# |
Jun 12th 2021, 18:56 |
kevin.pfeifer |
if its better/worse or something else I have no idea |
# |
Jun 12th 2021, 18:56 |
kevin.pfeifer |
I like doing that ```$response = $this->getResponse(); $this->autoRender = false; return $response->withType( 'application/json' ) ->withStringBody( json_encode( $results ) );``` |
# |
Jun 12th 2021, 18:54 |
davinci |
I've always used a view, but see someone using an exit, and thought... hmm, maybe that's faster? |