# |
Dec 17th 2017, 19:19 |
saeideng |
this not works for me |
# |
Dec 17th 2017, 19:19 |
saeideng |
``` // In a controller. $articles = TableRegistry::get('Articles'); $list = $articles->find('popular')->toArray(); $patched = $articles->patchEntities($list, $this->request->getData()); foreach ($patched as $entity) { $articles->save($entity); } ``` |
# |
Dec 17th 2017, 18:44 |
saeideng |
:loudspeaker: |
# |
Dec 17th 2017, 18:39 |
saeideng |
has any sample for form ? |
# |
Dec 17th 2017, 18:39 |
saeideng |
I want to update multi entity at one time |
# |
Dec 17th 2017, 18:33 |
saeideng |
hi |
# |
Dec 17th 2017, 17:43 |
godfath3r |
Hello. I changed my Sqlite DB's "time" field from datetime to timestamp (int), and now cakephp3 renders integers everywhere? How can I fix that to show the local time using my locale? |
# |
Dec 17th 2017, 12:15 |
josexato |
thanks man (y) |
# |
Dec 17th 2017, 12:14 |
admad |
And fetch('script') at bottom of your layout |
# |
Dec 17th 2017, 12:13 |
admad |
@josexato Html->script () with block = true |
# |
Dec 17th 2017, 12:09 |
josexato |
Good morning, whats the best way to add an script (lets say jquery) to a specific view? |
# |
Dec 17th 2017, 10:03 |
rudy1976s |
I have just configure a fresh installation of cake latest, adding Crud,CrudView and Users plugin: my question is: could both Crud and Users plugin works together ? |
# |
Dec 17th 2017, 10:02 |
rudy1976s |
Good morning to all |
# |
Dec 16th 2017, 23:01 |
braeden |
For a Table that is using the TreeBehavior, are there any callbacks/events for when a parent is deleted that has children? It seems only the parent is handled in 'afterDelete'/'beforeDelete' |
# |
Dec 16th 2017, 22:24 |
josexato |
hello in which version of cake 3 the middleware for cors was introduced? |
# |
Dec 16th 2017, 22:10 |
spencdev |
So I got Events up and running, and the event actually consumes an API and doesn't need to receive a response, to the user it wouldn't even matter if it failed, the only thing it would need to do is log it. So to speed it up, and not have the user hang for a second or two, would it be alright to consume the API through cakephp's shell service and just fire an exec? |
# |
Dec 16th 2017, 21:29 |
joopm |
whats wrong with it |
# |
Dec 16th 2017, 21:29 |
joopm |
and i try to save $repositoryReviews |
# |
Dec 16th 2017, 21:29 |
joopm |
$repositoryReviews = $this->RepositoryReviews->patchEntities($repositoryReview, $this->request->getData()); |
# |
Dec 16th 2017, 21:28 |
joopm |
editing many association does not update the id-s insted of create news for them |
# |
Dec 16th 2017, 20:25 |
inoas |
https://gist.github.com/inoas/b8a47dfe532b739ef51d12d36358b618 |
# |
Dec 16th 2017, 20:25 |
inoas |
anyone with pro apache skills - I want to programatically set Content Security Policy headers in .htaccess for the requested domain and all subdomains |
# |
Dec 16th 2017, 17:06 |
dereuromark |
That sounds like a server misconfig, that is a php issue of some sorts then. You could see if you can use any other uuid, e.g.: https://github.com/ramsey/uuid |
# |
Dec 16th 2017, 16:43 |
furqan |
is there any alternate to this method cakeText::uuid() ,that would not take this long |
# |
Dec 16th 2017, 16:42 |
furqan |
any one !!! |
# |
Dec 16th 2017, 16:41 |
furqan |
I know that the uuid ,has to do with the network address of the box ,and it behind the corporate box will have to do with it probably... |
# |
Dec 16th 2017, 16:39 |
furqan |
I logged every line ,and this is the one which is taking 20 seconds to generate a uuid on my office machine -behind corporate proxy ,and the sane code runs on my machine in milli seconds |
# |
Dec 16th 2017, 16:38 |
furqan |
The beforeValidate methods has a uuid generation function CakeText::uuid() |
# |
Dec 16th 2017, 16:37 |
furqan |
On investigating further ,i deduced it was not actually an ORM isssue ,but had to do with beforevalidate method invoked before save is triggered |
# |
Dec 16th 2017, 16:36 |
furqan |
3 days ago ,i ran into an issue where inserting / writing to database through cake ORM ,as per me took 20 seconds where in raw sql was in milli seconds |
# |
Dec 16th 2017, 16:35 |
furqan |
Hi every one @hmic ,hi |
# |
Dec 16th 2017, 13:39 |
saeideng |
if you use DB for strore menu items ... use Cell |
# |
Dec 16th 2017, 13:38 |
saeideng |
`Template/Element/main-menu.ctp ` |
# |
Dec 16th 2017, 12:35 |
maneken |
Hello. I have a variable $menu where I define my site's main menu structure, and then I use it in Template/Element/main-menu.ctp to render the menu markup. What would be the best place to define the $menu array? |
# |
Dec 16th 2017, 12:34 |
jason001 |
hi cake - I'm using cake 3.5 - I'm looking through the docs but can't find an example for joining two queries. so let's say I have 2 subqueries that both contain a matching column, and I wanted to join the 2 - how would I do that in cakephp? |
# |
Dec 16th 2017, 11:55 |
joopm |
just found the reason |
# |
Dec 16th 2017, 11:50 |
joopm |
between this there is nothing happen which can reduce the elements |
# |
Dec 16th 2017, 11:49 |
joopm |
i made a query,pass the view by compact |
# |
Dec 16th 2017, 11:49 |
joopm |
but without the debug only the first element of the hasmany appear in the first input |
# |
Dec 16th 2017, 11:48 |
joopm |
now if i debug the query all the datas appear nice in the inputs |
# |
Dec 16th 2017, 11:48 |
joopm |
i have an edit form for editing hasmany datas |