# |
Mar 5th 2019, 17:11 |
jeremyharris |
It’s possible, but depends on your queue system. My queue system, for example, executes events within the application. However I have commands that are used by cron in the background as well, such as bin/cake backup |
# |
Mar 5th 2019, 17:09 |
daniel.upshaw |
It's kind of a hot topic sometimes |
# |
Mar 5th 2019, 17:09 |
daniel.upshaw |
In PHP, it's possible to run background processes using CLI syntax |
# |
Mar 5th 2019, 17:09 |
birdy247 |
but both together and it brings back records with hello OR world in the title |
# |
Mar 5th 2019, 17:09 |
manthan.budheliya |
ok let me check |
# |
Mar 5th 2019, 17:09 |
birdy247 |
or "world" |
# |
Mar 5th 2019, 17:09 |
jeremyharris |
you can unlock the action @manthan.budheliya, see the SecurityComponent docs |
# |
Mar 5th 2019, 17:09 |
birdy247 |
it currently works with just "hello" |
# |
Mar 5th 2019, 17:08 |
birdy247 |
This would then find any records that are not LIKE hello OR world |
# |
Mar 5th 2019, 17:08 |
manthan.budheliya |
So what should I do? |
# |
Mar 5th 2019, 17:08 |
birdy247 |
I am wanting to type in a search box something like: "hello world" |
# |
Mar 5th 2019, 17:08 |
slackebot1 |
<birdy247> |
# |
Mar 5th 2019, 17:08 |
jeremyharris |
csrf is for accepting/denying requests from outside sources |
# |
Mar 5th 2019, 17:08 |
jeremyharris |
@manthan.budheliya token is related to the Security component, used to protect from form tampering |
# |
Mar 5th 2019, 17:08 |
birdy247 |
I am using the FOC search plugin (aweseom!) |
# |
Mar 5th 2019, 17:07 |
birdy247 |
Hi! :slightly_smiling_face: |
# |
Mar 5th 2019, 17:07 |
daniel.upshaw |
Perhaps |
# |
Mar 5th 2019, 17:07 |
daniel.upshaw |
It appears to be the CommandRunner |
# |
Mar 5th 2019, 17:07 |
daniel.upshaw |
@jeremyharris Thank you |
# |
Mar 5th 2019, 17:07 |
manthan.budheliya |
Buut now I am getting error '_Token' was not found in request data.' |
# |
Mar 5th 2019, 17:07 |
jeremyharris |
for running them in the background, you will need a queue system or use cron to run the command |
# |
Mar 5th 2019, 17:07 |
manthan.budheliya |
but havin problem with CSRF token mismatch so I removed that component from Application.php file |
# |
Mar 5th 2019, 17:07 |
manthan.budheliya |
Hello guys I am creating an endpoint for posting data through ajax |
# |
Mar 5th 2019, 17:07 |
jeremyharris |
check out this: https://book.cakephp.org/3.0/en/console-and-shells/commands.html |
# |
Mar 5th 2019, 17:06 |
daniel.upshaw |
This appears mostly about creating new commands rather than running other commands: https://book.cakephp.org/3.0/en/console-and-shells.html |
# |
Mar 5th 2019, 17:05 |
daniel.upshaw |
It is hard to determine from the docs... There may be a "Cake way" to run a background process / external command line program |
# |
Mar 5th 2019, 15:46 |
neon1024 |
..but the readme says it doesn’t need routes in the addPlugin |
# |
Mar 5th 2019, 15:46 |
neon1024 |
I mean, sure my default is `DashedRoute`, perhaps it needs routing true |
# |
Mar 5th 2019, 15:45 |
neon1024 |
Not sure how this is happening |
# |
Mar 5th 2019, 15:45 |
neon1024 |
`Error: Your routing resulted in Debug-kit as a controller name.` |
# |
Mar 5th 2019, 15:03 |
grossolive4 |
Yes, And I can't delete folder when deleting the entity. => deleteCallback webroot{DS}uploads{DS}{table}{DS}{field}{DS}{field-value:uuid}{DS} https://github.com/FriendsOfCake/cakephp-upload/issues/459 https://cakephp-upload.readthedocs.io/en/latest/examples.html#advanced-example Any new suggestions? |
# |
Mar 5th 2019, 14:49 |
rudy1976s |
I need some example to how correctly write a select field using full text search with query builder |
# |
Mar 5th 2019, 14:48 |
neon1024 |
Would you mind opening a ticket for that? Perhaps the documentation needs updating :slightly_smiling_face: |
# |
Mar 5th 2019, 14:45 |
grossolive4 |
for example, the path primaryKey they removed, but it is still on the document |
# |
Mar 5th 2019, 14:43 |
neon1024 |
Upload plugins don’t really change much once they’ve achieved their feature set, as there often isn’t really much to update |
# |
Mar 5th 2019, 14:42 |
neon1024 |
What made you think it was abandoned? |
# |
Mar 5th 2019, 14:42 |
neon1024 |
@grossolive4 It is developed :slightly_smiling_face: |
# |
Mar 5th 2019, 14:40 |
grossolive4 |
Any new suggestions? |
# |
Mar 5th 2019, 14:38 |
grossolive4 |
I'm using https://github.com/FriendsOfCake/cakephp-upload It seems that it is no longer developed ? |
# |
Mar 5th 2019, 14:34 |
neon1024 |
Oh yeah, the new and very strange allowEmpty(false) |
# |
Mar 5th 2019, 14:33 |
neon1024 |
Not sure why it doesn’t update the validation though :man-shrugging: |