# |
Jul 11th 2018, 08:11 |
saeideng |
OK , I should go now , by |
# |
Jul 11th 2018, 08:11 |
neon1024 |
@saeideng No. |
# |
Jul 11th 2018, 08:10 |
saeideng |
``` firstMatch([ 'user.name' => 'Mark', 'active' => true ]); ``` |
# |
Jul 11th 2018, 08:10 |
neon1024 |
I want to find an id in a nested entity, which hasMany arrays of entities as associations. |
# |
Jul 11th 2018, 08:10 |
saeideng |
yes |
# |
Jul 11th 2018, 08:10 |
saeideng |
yet it supports |
# |
Jul 11th 2018, 08:10 |
josbeir |
@neon1024 you mean [ 'foo' => [ 'bar, 'bar' ] ] ? |
# |
Jul 11th 2018, 08:09 |
saeideng |
yes `leech` :slightly_smiling_face: |
# |
Jul 11th 2018, 08:05 |
lorenzo |
what are you trying to do? |
# |
Jul 11th 2018, 07:59 |
neon1024 |
Does `firstMatch()` support arrays? I can’t seem to get that to work, https://book.cakephp.org/3.0/en/core-libraries/collections.html#Cake\Collection\Collection::firstMatch |
# |
Jul 11th 2018, 07:46 |
neon1024 |
It would be ‘leech’ like the creature in this context :slightly_smiling_face: |
# |
Jul 11th 2018, 07:41 |
saeideng |
aha you need to leach a file |
# |
Jul 11th 2018, 07:41 |
neon1024 |
If it’s local, just use `rename()` |
# |
Jul 11th 2018, 07:40 |
neon1024 |
Download a file would make me think it’s remote |
# |
Jul 11th 2018, 07:40 |
saeideng |
there is a method in request object for downloading file |
# |
Jul 11th 2018, 07:39 |
saeideng |
why save to tmpfile? |
# |
Jul 11th 2018, 07:37 |
magiq |
How to download file by url with the help of Cake\Filesystem\File and save it to tmpfile ? |
# |
Jul 11th 2018, 07:25 |
romanovich095 |
Morning @neon1024 |
# |
Jul 11th 2018, 07:24 |
neon1024 |
Morning all |
# |
Jul 11th 2018, 07:24 |
prasanna.venkat |
@admad please help |
# |
Jul 11th 2018, 07:17 |
designskiller |
@admad Thank you! |
# |
Jul 11th 2018, 07:13 |
prasanna.venkat |
pagination links are showing as scrapbookingpages for all routes |
# |
Jul 11th 2018, 07:12 |
romanovich095 |
At least words must be separated and divided by `-`. For example `my-class` |
# |
Jul 11th 2018, 07:11 |
prasanna.venkat |
@romanovich095 what am i doing wrong |
# |
Jul 11th 2018, 07:10 |
prasanna.venkat |
@admad is this routing correct one in cake2 |
# |
Jul 11th 2018, 07:10 |
romanovich095 |
Well, @prasanna.venkat - really poor pages namings |
# |
Jul 11th 2018, 07:09 |
slackebot4 |
array(‘controller’ => ‘user_created_pages’, ‘action’ => ‘allpages’), array(‘defaultRoute’ => true)); }` |
# |
Jul 11th 2018, 07:09 |
prasanna.venkat |
`$pages = array(‘scrapbookingpages’, ‘comicpages’, ‘addtoscenepages’, ‘colouringpages’, ‘gamepages’, ‘parentpage’); foreach ($pages as $page) { Router::connect(‘/’.$page, array(‘controller’ => ‘allpages’, ‘action’ => ‘index’), array(‘defaultRoute’ => true)); Router::connect(‘/’.$page.‘/:action/*’, array(‘controller’ => ‘allpages’), array(‘defaultRoute’ => t |
# |
Jul 11th 2018, 07:08 |
admad |
just don't load it for API requests |
# |
Jul 11th 2018, 07:07 |
designskiller |
@admad ok. It's showing in cakephp\/src\/Http\/Middleware\/CsrfProtectionMiddleware.php. Any suggestion how can I get rid of that error? |
# |
Jul 11th 2018, 07:05 |
saeideng |
site : https://book.cakephp.org/3.0/en/tutorials-and-examples.html |
# |
Jul 11th 2018, 07:05 |
saeideng |
yes , if you are reading from pdf |
# |
Jul 11th 2018, 07:03 |
mr.mjsm |
File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBN7RGABW/pasted_image_at_2018_07_11_10_03_am.png / https://slack-files.com/T053DPNCM-FBN7RGABW-0595daa4c4 - This one ? |
# |
Jul 11th 2018, 07:02 |
admad |
@mr.mjsm you can start with the tutorials on the manual |
# |
Jul 11th 2018, 07:02 |
saeideng |
you can start from cms education |
# |
Jul 11th 2018, 07:01 |
admad |
@designskiller it's because of either the CSRF component or CSRF middleware in Application class |
# |
Jul 11th 2018, 07:01 |
mr.mjsm |
thanks @romanovich095 @saeideng, i just noticed they have a large book ~ 900 pages. i think i will start from there |
# |
Jul 11th 2018, 06:57 |
saeideng |
+ https://training.cakephp.org/ |
# |
Jul 11th 2018, 06:57 |
saeideng |
documentation |
# |
Jul 11th 2018, 06:52 |
romanovich095 |
Hi @mr.mjsm. Well, actually itself documentation is great enough |
# |
Jul 11th 2018, 06:52 |
mr.mjsm |
Hello everyone, I have no experience with CakePHP, and would like to ask for a good resource to learn. |