Log message #4160283

# At Username Text
# Jul 18th 2018, 15:52 flavius added `$routes->setExtensions(['json']);` in your `routes.php`
# Jul 18th 2018, 15:51 flavius what am i missing that the request returns forbidden?
# Jul 18th 2018, 15:48 dereuromark or russian
# Jul 18th 2018, 15:47 admad 403 forbidden is enough, I wouldn't bother reading the rest even if it was in English :)
# Jul 18th 2018, 15:47 flavius File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBS36PYNL/image.png / https://slack-files.com/T053DPNCM-FBS36PYNL-977c5ab98b - there's also some routing extension missing? .json?
# Jul 18th 2018, 15:41 flavius File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBSL4NE2F/image.png / https://slack-files.com/T053DPNCM-FBSL4NE2F-8edc93c14b - this is how i speak german :smile:
# Jul 18th 2018, 15:41 dereuromark hey, you speak german, dont you? :slightly_smiling_face:
# Jul 18th 2018, 15:40 flavius File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBSL37Y11/image.png / https://slack-files.com/T053DPNCM-FBSL37Y11-12aa95ece9 - <@U052SF4V6> oh dear, the plugin needs some i18n love as well :slightly_smiling_face:
# Jul 18th 2018, 15:34 Diego_ anyone familiar with Footprint plugin? im tryto figureout why its setting the colunm modified_by to 0. Debugg shows FootprintListener with the correct key _currentUser set to logged in user entity
# Jul 18th 2018, 15:28 josbeir if something doesn't save, debugging errors is always your first step.
# Jul 18th 2018, 15:27 josbeir :slightly_smiling_face:
# Jul 18th 2018, 15:27 josbeir no problemo
# Jul 18th 2018, 15:27 mr.mjsm anyway i really thank you. didn't know about the getError, really helped me
# Jul 18th 2018, 15:27 mr.mjsm @josbeir dude i am so tilted right now. the error was i am assigning 'is_primary' true. so i assigned it to '1' and it worked !! even though in the model it says 'bool'
# Jul 18th 2018, 15:22 flavius a helper is more elegant :P
# Jul 18th 2018, 15:22 dereuromark back to the roots
# Jul 18th 2018, 15:22 flavius i guess you could do that from the controller too :P
# Jul 18th 2018, 15:21 flavius you still need a place to overwrite the default layout
# Jul 18th 2018, 15:21 dereuromark cake plugins and routing/controller/frontend/assets are usually always creating a bit of hazzle
# Jul 18th 2018, 15:20 josbeir $this->viewBuilder()->setClassName('TestHelper.TestHelper');
# Jul 18th 2018, 15:19 josbeir i'm not seeing the problem to just include a TestHelperView and use that in the test helper controllers
# Jul 18th 2018, 15:19 flavius ``` public function beforeRender(Event $event, $viewFile) { $this->getView()->setLayout('......'); } ```
# Jul 18th 2018, 15:19 flavius and in that helper you can also overwrite the layout
# Jul 18th 2018, 15:19 flavius and we can load it with ``` if($this->request->getParam('plugin') == 'TestHelper') $this->loadHelper('.....'); ```
# Jul 18th 2018, 15:18 flavius you can make your custom helper in that plugin
# Jul 18th 2018, 15:18 flavius File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBSKJ75MH/image.png / https://slack-files.com/T053DPNCM-FBSKJ75MH-d26bdd617e - this is appview.php from the main project
# Jul 18th 2018, 15:18 josbeir :)
# Jul 18th 2018, 15:18 josbeir too much @dereuromark ecosphere already.
# Jul 18th 2018, 15:17 dereuromark maybe you should have used the local sandbox for a test run :P less issues
# Jul 18th 2018, 15:17 flavius the way i did it was like this
# Jul 18th 2018, 15:17 dereuromark easy to fix then, yeah. for now it can be in $helpers in controllers
# Jul 18th 2018, 15:17 flavius File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBSG8LUCC/image.png / https://slack-files.com/T053DPNCM-FBSG8LUCC-3a96800596 - there's also this that <@UAG1HNWKT> mentioned
# Jul 18th 2018, 15:16 dereuromark lets make testing great again
# Jul 18th 2018, 15:15 josbeir yeah saw that one too, i didn't agree so no mention :)
# Jul 18th 2018, 15:15 flavius point stands, i have one fine body at least :P
# Jul 18th 2018, 15:14 dereuromark agreed
# Jul 18th 2018, 15:14 josbeir i think a proper default theme would be the best aproach for this plugin
# Jul 18th 2018, 15:14 dereuromark bundling frontend and assets into php stuff is not that easy
# Jul 18th 2018, 15:14 dereuromark sry, did only test with the apps that seem to have those built in
# Jul 18th 2018, 15:13 dereuromark yeah I guess those are pulled in the main layout assets.
# Jul 18th 2018, 15:13 flavius well you didn't include any of that in your plugin