# |
Dec 11th 2017, 09:51 |
slackebot |
!source |
# |
Dec 11th 2017, 09:51 |
slackebot |
Command sent from Slack by neon1024: |
# |
Dec 11th 2017, 09:51 |
neon1024 |
`$entity->get('foo.bar.0.baz')` ? |
# |
Dec 11th 2017, 09:50 |
neon1024 |
The entity get method takes a dot notation right? |
# |
Dec 11th 2017, 09:36 |
dereuromark |
Yes that sounds about right. I also started migrating the last 2.x app now this winter, and we can collect all some more feedback/tips e.g. @ https://github.com/dereuromark/upgrade/wiki |
# |
Dec 11th 2017, 09:32 |
jotpe |
hey everybody! is there somewhere a good workflow description of migrating a cake2 -> cake3 app? Otherwise i would use the upgrade tool, copy the content from the app dir to the project root, install cake3 via composer, change all the config files, use the upgrade tool for the plugins and the migration tool for the db. is that more or less correct? |
# |
Dec 11th 2017, 09:10 |
braeden |
Mornin' |
# |
Dec 11th 2017, 09:01 |
neon1024 |
Morning all |
# |
Dec 11th 2017, 07:57 |
danishkhan3621 |
Can i pass result returned from previous search query- $product_List = $this->Products->find('all',array('conditions'=>array('category_id IN'=>$get_all_categories['category_id']))); where $get_all_categories is result returned from previous query it contains category_id and category_name index. |
# |
Dec 11th 2017, 07:39 |
ra7bi |
At the end i want start_date input => `YYYY-mm-dd H:i:s` |
# |
Dec 11th 2017, 07:37 |
ra7bi |
i checked the debug info , it shows that datetime posted as Array , is there any ready function to convert that array into string or i have to do it ? |
# |
Dec 11th 2017, 07:36 |
ra7bi |
i'v ` $this->Form->input('start_date', array('class' => 'form-control')); ` of type datetime , how i can parse it as string when form submitted ? not working , |
# |
Dec 11th 2017, 07:34 |
jkpatel291289 |
@yadav.manu36 try restarting apache and php |
# |
Dec 11th 2017, 07:21 |
yadav.manu36 |
File uploaded https://cakesf.slack.com/files/U83JZGBTR/F8CHMJHKL/cakephp.png / https://slack-files.com/T053DPNCM-F8CHMJHKL-b74f5f3429 - Today I have faced Fatal error. i am only refresh page then the fatal error auto coming. what the reason of this error. please let me know about this error |
# |
Dec 11th 2017, 06:22 |
ra7bi |
how i can convert `$this->request->data['start_date']` Array to `string` |
# |
Dec 11th 2017, 03:28 |
night_wulfe |
Nevermind. I literally just saw I have to specify it in the scope() statement. |
# |
Dec 11th 2017, 03:26 |
night_wulfe |
No takers? |
# |
Dec 11th 2017, 01:14 |
night_wulfe |
I'm looking for something like $routes->resources('Picklists', [ 'plugin' => 'MyPlugin' ]) |
# |
Dec 11th 2017, 01:14 |
night_wulfe |
The only way I can see to do it is to rebuild all six routes using the map option and specify the plugin name there. |
# |
Dec 11th 2017, 01:14 |
night_wulfe |
Hello. I'm trying to create a route from a plugin. The plugin is meant to provide a JSON REST API to my application. I'm trying to use $route->resources(). Using route shell, I can see the routes get generated, but I can't figure out how to easily tell resources that the routes should be handled by the api plugin. |
# |
Dec 11th 2017, 00:23 |
joopm |
write a small filescan and type by self its could be the same time :) |
# |
Dec 11th 2017, 00:23 |
dereuromark |
Or you can steal the IdeHelpers method to retrieve list of controllers :slightly_smiling_face: |
# |
Dec 11th 2017, 00:23 |
dereuromark |
App class might have some convenience methods here though |
# |
Dec 11th 2017, 00:22 |
dereuromark |
and why not just doing the filescan then? small shell to write. |
# |
Dec 11th 2017, 00:22 |
joopm |
about |
# |
Dec 11th 2017, 00:22 |
joopm |
i need to write a description aver the cakeproject |
# |
Dec 11th 2017, 00:21 |
dereuromark |
why is that relevant? |
# |
Dec 11th 2017, 00:20 |
joopm |
cake console |
# |
Dec 11th 2017, 00:20 |
joopm |
is there a way to listall controllers without making a filescan and additional substr commands |
# |
Dec 11th 2017, 00:18 |
joopm |
hello there |
# |
Dec 10th 2017, 22:56 |
dereuromark |
I guess it is just the search bot after all which made up all kind of things. |
# |
Dec 10th 2017, 22:51 |
dereuromark |
I always wondered why my logs show so much 404s in a 2.x app. Does anyone else have this bug that if someone requests /index.php directly, that all links have some prefix /page/... ? Thus search engines then try to follow those invalid ones? |
# |
Dec 10th 2017, 22:14 |
dereuromark |
If we introduce a new method here it could even be sth for 3.6. Seems like the easiest way |
# |
Dec 10th 2017, 22:06 |
saeideng |
https://github.com/cakephp/cakephp/issues/11524 |
# |
Dec 10th 2017, 22:05 |
saeideng |
can you give me opened issue related to this ? |
# |
Dec 10th 2017, 21:55 |
dereuromark |
Did anyone keep the old syntax via config and had some good or better experience with it? |
# |
Dec 10th 2017, 21:54 |
dereuromark |
Now you have to duplicate some, since a few use sprintf() and others __() inside code |
# |
Dec 10th 2017, 21:54 |
dereuromark |
Does anyone else think it was a bad idea to move from %s to {0...n} placeholders for i18n? |
# |
Dec 10th 2017, 18:59 |
dereuromark |
basic server 1:1 |
# |
Dec 10th 2017, 18:59 |
dereuromark |
guest: you need to also restart php and apache/nginx etc |
# |
Dec 10th 2017, 18:32 |
bravo-kernel |
Has the .env check in bootstrap been turned of for performance reasons? I found it odd .env did not work directly, overlooked the comment. |