Log message #4102435

# At Username Text
# Dec 11th 2017, 10:11 stoykovnet Hey cake!
# Dec 11th 2017, 10:09 saeideng I no access to pastebin.com now :slightly_smiling_face:
# Dec 11th 2017, 10:09 neon1024 https://book.cakephp.org/3.0/en/controllers/components/authentication.html#authorization
# Dec 11th 2017, 10:09 neon1024 johan, Well you’ve told CakePHP to authorize users using the controller, and then you’ve not implemented the method. Which is why CakePHP thinks it’s missing, because it is
# Dec 11th 2017, 10:07 johnwayne I am getting problem using cake\bake, I have installed plugin and it is loaded but I am still getting info Exception: Shell class for "Bake" could not be found. (in \src\Console\ShellDispatcher.php, line 324])
# Dec 11th 2017, 10:07 johan12 what wrong i am doing?
# Dec 11th 2017, 10:06 johan12 https://pastebin.com/d47UZpE7 my app controller and https://pastebin.com/4PVDsdqj my ReviewRattings Controller <neon1024> <saeideng>
# Dec 11th 2017, 10:06 johan12 https://pastebin.com/4PVDsdqj my ReviewRattings Controller
# Dec 11th 2017, 10:06 jkpatel291289 does beforefind() apply on association ? $consignors = $consignees = $this->Lorryreceipts->Trucks->find('list', ['limit' => 200]); in my trucksTable class I have behavior that filter all find operation and return only trucks from current company.Which is working properly and i always get only current company's truck however when i fetch them for lorryreceipts that returns my unfiltered data from whole table.
# Dec 11th 2017, 10:04 johan12 https://pastebin.com/d47UZpE7 my app controller
# Dec 11th 2017, 10:03 saeideng ``` $this->loadComponent('Auth', [ 'authorize' => [ 'controller', ```
# Dec 11th 2017, 10:02 saeideng AuthComponent config ....
# Dec 11th 2017, 10:01 neon1024 Sounds to me like your controllers beforeFilter is not calling the parent
# Dec 11th 2017, 10:00 johan12 Error " App\Controller\ReviewRatingsController does not implement an isAuthorized() method. " Why ?
# Dec 11th 2017, 09:59 johan12 Whay i am getting App\Controller\ReviewRatingsController does not implement an isAuthorized() method. ?
# Dec 11th 2017, 09:53 saeideng `$entity->get` do you expect data from DB ?
# Dec 11th 2017, 09:53 slackebot Myformhelper as in AppController, or is it ok to just tell the custom helper to use FormHelper?
# Dec 11th 2017, 09:53 vemavir Hello everyone! I´m creating a custom helper, which is about to use another helper from the application, called MyformHelper, which extends the usual FormHelper. AppController is configured to use the MyformHelper-class via "Form"-key, IE I can call everything necessary with $this->Form->relevantFunction();. How should I configure my custom helper in order to keep this behavior? CakePhp version is 2.9-ish. Should I declare the used
# Dec 11th 2017, 09:52 jotpe @dereuromark sounds good; I'll document my steps and contribute it
# Dec 11th 2017, 09:52 neon1024 Hm, no, doesn’t seem to support it
# Dec 11th 2017, 09:51 saeideng looks right
# 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.