# |
Jan 6th 2020, 10:29 |
challgren |
@muas199 try https://github.com/bcrowe/cakephp-encrypted-type |
# |
Jan 6th 2020, 10:28 |
muas199 |
Having issues using custom databases types. Can save encrypted data but can't retrieve it |
# |
Jan 6th 2020, 10:17 |
dsar |
Some algorithms are called queue scheduling algorithms, however I agree that it is often used for other purposes |
# |
Jan 6th 2020, 10:14 |
dereuromark |
At least in my cases so far. Scheduling is more cronjob/crontab based with timing patterns for me. |
# |
Jan 6th 2020, 10:14 |
dereuromark |
Diego: A queue is not a scheduler IMO. that word implies a specific execution time, which queues usually have not (most are just basic first in first out immediate exec). |
# |
Jan 6th 2020, 10:06 |
challgren |
SchedyMcScheduleFace |
# |
Jan 6th 2020, 09:50 |
dsar |
Why not Scheduler? |
# |
Jan 6th 2020, 09:38 |
challgren |
You’d hope not! |
# |
Jan 6th 2020, 09:29 |
dereuromark |
You would never use them at the same time, though. |
# |
Jan 6th 2020, 09:24 |
challgren |
Esp since @dereuromark has been using that name for a long time |
# |
Jan 6th 2020, 09:24 |
challgren |
I could see a lot of confusion with that plugin name |
# |
Jan 6th 2020, 09:06 |
conehead |
Or call it SteveJobs |
# |
Jan 6th 2020, 09:04 |
conehead |
@admad TaskDispatcher |
# |
Jan 6th 2020, 08:40 |
admad |
who here loves naming things? :) https://github.com/cakephp/queue/issues/9 |
# |
Jan 6th 2020, 08:38 |
conehead |
Hellow |
# |
Jan 6th 2020, 08:21 |
alexdd55976 |
morning el duderinos |
# |
Jan 6th 2020, 05:41 |
conehead |
Good morning everyone |
# |
Jan 5th 2020, 15:10 |
d.lisiecki93 |
thank You good sir @racmiroslav |
# |
Jan 5th 2020, 15:05 |
racmiroslav |
+ https://discourse.cakephp.org/t/sending-errors-as-emails/1176/2 |
# |
Jan 5th 2020, 15:03 |
racmiroslav |
@d.lisiecki93 you could create your own log adapter, if nothing already exists on github https://book.cakephp.org/3/en/core-libraries/logging.html#creating-log-adapters |
# |
Jan 5th 2020, 14:59 |
d.lisiecki93 |
Hi guys, is there a way to somehow catch everything what goes into error.log and do something with prepared by cake message? i would like to have email notification about every cake error / exception / anything what goes wrong with my app |
# |
Jan 5th 2020, 14:46 |
racmiroslav |
Adding this to middleware queue seems to resolve my problem ```->add(function (ServerRequestInterface $request, ResponseInterface $response, $next) { $request = $request->withHeader('Accept', 'application/json'); return $next($request, $response); })``` |
# |
Jan 5th 2020, 14:45 |
racmiroslav |
Yep but I am in a bit different situation. I am building a json REST API (so no other format than json is in the game) and I do not want to require extension, because actually a clients may set their own extension because I have endpoint `PUT /files/{custom-value}` for upload and another endpoint `GET /files/{custom-value}` .. `custom-value` may or may not contain an extension |
# |
Jan 5th 2020, 14:33 |
challgren |
$this->set(‘_serialize’, compact(‘myVar’, ‘otherVar’) is needed in the controller too |
# |
Jan 5th 2020, 14:32 |
challgren |
In my apps I force them to use .json instead of forcing the output. That way if they do get an error it does respond as json |
# |
Jan 5th 2020, 14:32 |
challgren |
Plus if your throwing a not found the response is not considered successful so the client should catch it and just show 404 or make the correct request |
# |
Jan 5th 2020, 14:30 |
challgren |
I do checks in the controller and throw NotFoundException |
# |
Jan 5th 2020, 14:27 |
racmiroslav |
maybe by setting the accept header for every request somewhere in middleware? |
# |
Jan 5th 2020, 14:26 |
racmiroslav |
I have some specific requirement. Is there a way to force cake to handle my request as if extension or header was set to json? But I do not want client to have a control over it. |
# |
Jan 5th 2020, 14:24 |
challgren |
Its best not to force rendering, use the extensions and http headers |
# |
Jan 5th 2020, 14:23 |
racmiroslav |
@challgren thank you! |
# |
Jan 5th 2020, 14:23 |
challgren |
https://book.cakephp.org/3/en/development/routing.html#Cake\Routing\Router::extensions |
# |
Jan 5th 2020, 14:21 |
challgren |
add extension .json or when requesting add Accept: application/json |
# |
Jan 5th 2020, 14:19 |
racmiroslav |
Hello guys. I use ```$this->RequestHandler->renderAs($this, 'json');``` to force json responses. It works just fine, however, errors are rendered as HTML, eg. for ```throw new NotFoundException();``` I expect to get some json with “error” properties. I do get regular HTML error. (error400.ctp) |
# |
Jan 5th 2020, 11:56 |
admad |
geoffo: submit a issue on the cakephp/upgrade repo |
# |
Jan 5th 2020, 01:00 |
geoffo |
anybody run into this exception when trying to use the 4.0 upgrader (from 3.8)? `fatal: source directory is empty, source=templates/Layout/Email, destination=templates/Layout/email_` ? |
# |
Jan 4th 2020, 23:32 |
luizcmarin |
I did not rename the table. But it excludes everything bake generated for forma_pgtos and people, and then I generated it again. It worked like that. thanks for the tip |
# |
Jan 4th 2020, 22:41 |
d.lisiecki93 |
@luizcmarin from what i know cake durring bake checks schema and table classes generally and will throw an error if there's something wrong, from what i see you have naming conflict - in database you have table called "forma_pgtos" and somewhere in table class u declared table name as "formapgtos" |
# |
Jan 4th 2020, 22:31 |
luizcmarin |
I tried with other tables. The same thing ! Locked in this thankless table. Buffer? cache? I will restart the machine |
# |
Jan 4th 2020, 22:27 |
luizcmarin |
I have a table called 'forma_pgtos', but not linked to 'people' . I'm trying to understand what connection cake makes |
# |
Jan 4th 2020, 22:26 |
slackebot |
<luizcmarin> |