# |
Oct 5th 2016, 19:56 |
backstageel |
The ideia is to Throw Exception on validation error... i want to catch the exceptions on the controllers |
# |
Oct 5th 2016, 19:55 |
dereuromark |
yeah me too often times |
# |
Oct 5th 2016, 19:55 |
backstageel |
I use this code whenever i want to save data to database: if (!$this->save($data)) { throw new DataNotSavedException($this->validationErrors); } |
# |
Oct 5th 2016, 19:53 |
backstageel |
Hello Everyone |
# |
Oct 5th 2016, 19:43 |
dereuromark |
@lorenzo yeah but weird that it worked for mysql |
# |
Oct 5th 2016, 18:57 |
xymanek |
:+1: |
# |
Oct 5th 2016, 18:56 |
cleptric |
:thumbsup: |
# |
Oct 5th 2016, 18:56 |
cleptric |
Yep, sth. like that was the problem Now it also works in the app routes |
# |
Oct 5th 2016, 18:56 |
xymanek |
eg. `Router::plugin('DebugKit', /* ... */)` in both `routes.php`? |
# |
Oct 5th 2016, 18:55 |
xymanek |
are you sure there was no overlap? |
# |
Oct 5th 2016, 18:55 |
xymanek |
@cleptric really? it's ofc better to put plugin routes in plugin's `routes.php` but it should work in app's `routes.php` too |
# |
Oct 5th 2016, 18:54 |
cleptric |
@xymanek Thank you :slightly_smiling_face: I also had to do this in the routes.php of the plugin. Tried it the the app routes... |
# |
Oct 5th 2016, 18:50 |
xymanek |
http://book.cakephp.org/3.0/en/development/routing.html#Cake\Routing\Router::plugin second example |
# |
Oct 5th 2016, 18:49 |
cleptric |
I thought about sth like that ``` $routes->connect('/api/*', ['plugin' => 'Api/V1']); ``` |
# |
Oct 5th 2016, 18:47 |
cleptric |
I want to redirect all /api/* requests to a new Plugin called Api/V1. Is there a generic way to do this? |
# |
Oct 5th 2016, 18:23 |
NeoThermic |
dereuromark: I think I did it \o/ |
# |
Oct 5th 2016, 18:09 |
lorenzo |
since fixtures are run inside a transaction, then the rest of the fixtures are aborted until the transaction is closed |
# |
Oct 5th 2016, 18:09 |
lorenzo |
it means that one of your fixtures has an error @dereuromark |
# |
Oct 5th 2016, 18:08 |
NeoThermic |
lets give that a try then |
# |
Oct 5th 2016, 18:08 |
dereuromark |
@lorenzo The tests for posgres in https://github.com/dereuromark/CakePHP-DatabaseLog/pulls |
# |
Oct 5th 2016, 18:08 |
dereuromark |
there are tuts |
# |
Oct 5th 2016, 18:08 |
dereuromark |
via git bash that is easy, with git rebase -i |
# |
Oct 5th 2016, 18:07 |
NeoThermic |
dereuromark: I have no idea how to squash commits. I do know that github's UI allows you to squash the commits before you merge the branch in with the big green button |
# |
Oct 5th 2016, 17:56 |
keith |
The training on the 19th of October, is it possible to buy the recording, Iâ??ll be on a flight during the actual time? |
# |
Oct 5th 2016, 17:49 |
lorenzo |
can you please link again to the problem? |
# |
Oct 5th 2016, 17:49 |
lorenzo |
no, I was at a conference and I could barely use internet |
# |
Oct 5th 2016, 17:48 |
dereuromark |
I wanted to take another step tomorrow otherwise |
# |
Oct 5th 2016, 17:47 |
dereuromark |
lorenzo Did you have a change to look into the postgres issue, didnt see if you replied already. It works for Mysql so far just fine. |
# |
Oct 5th 2016, 17:45 |
Unfaiir |
I checked out the migration guide a bit, I didn't see anything about the webroot, I guess I missed it |
# |
Oct 5th 2016, 17:42 |
dereuromark |
Unfaiir: You can also look into existing apps and plugins, see the awesome list |
# |
Oct 5th 2016, 17:42 |
lorenzo |
that explains some of the bigger changes |
# |
Oct 5th 2016, 17:42 |
lorenzo |
Unfaiir did you read the migration guide? |
# |
Oct 5th 2016, 17:41 |
lorenzo |
ok |
# |
Oct 5th 2016, 17:41 |
keith |
Thanks @dereuromark Iâ??ll look into it |
# |
Oct 5th 2016, 17:41 |
Unfaiir |
lorenzo: I'm on 2.x still, just tyring to understand the folder changes in 3.x |
# |
Oct 5th 2016, 17:39 |
dereuromark |
keith: my tools plugin provides tokens which I use for this |
# |
Oct 5th 2016, 17:33 |
lorenzo |
bu what are you looking at? |
# |
Oct 5th 2016, 17:33 |
lorenzo |
the webroot is now outside `src` |
# |
Oct 5th 2016, 17:33 |
Unfaiir |
lorenzo: Inside the src folder I don't see the webroot folder, where has that gone? |
# |
Oct 5th 2016, 17:32 |
keith |
3.3.5 |
# |
Oct 5th 2016, 17:32 |
keith |
Is anyone aware of a forgotten password plugin for 3.5? |