Log message #4212555

# At Username Text
# Nov 6th 2019, 16:17 amanfulgence aide me please
# Nov 6th 2019, 16:16 amanfulgence i need to show this erros to my user
# Nov 6th 2019, 16:16 amanfulgence '[errors]' => [ 'email' => [ 'unique' => 'The provided value is invalid' ] ], '[invalid]' => [ 'email' => 'f.aman@hypertech.ci'
# Nov 6th 2019, 16:09 isvyas @dereuromark do you have any reference project that are using it? That would be great help.
# Nov 6th 2019, 16:07 isvyas No :slightly_smiling_face:
# Nov 6th 2019, 16:07 dereuromark or the advanced psr2r one which basically is the same + lots of useful things.
# Nov 6th 2019, 16:06 marek.sebera @isvyas like this? https://book.cakephp.org/2/en/contributing/cakephp-coding-conventions.html
# Nov 6th 2019, 16:06 dereuromark 1.x version
# Nov 6th 2019, 16:06 isvyas Is there Coding Standard rules specifically for Cakephp version 2?
# Nov 6th 2019, 16:06 marek.sebera ok, so the complicated, is it possible to run and interact with console/shells/tasks without having shell access at all?
# Nov 6th 2019, 16:04 dereuromark o_O
# Nov 6th 2019, 16:04 marek.sebera no, remote dev sincerelly
# Nov 6th 2019, 16:04 dereuromark we are talking about local dev here, right?
# Nov 6th 2019, 16:04 dereuromark there is simple and there is complicated :slightly_smiling_face:
# Nov 6th 2019, 16:04 marek.sebera that is usually disabled for standard webhosting
# Nov 6th 2019, 16:03 marek.sebera oh, but using exec()
# Nov 6th 2019, 16:03 dereuromark I shows all missing test classes in UI and you can click to generate the missing ones with simple mouse clicks for app or plugins: https://github.com/dereuromark/cakephp-test-helper - You can steal the code^^
# Nov 6th 2019, 16:03 dereuromark sure. I do that in my TestHelper plugin
# Nov 6th 2019, 16:03 marek.sebera Is it possible to use "bake" command/shell without shell access? like, for example, running it from controller?
# Nov 6th 2019, 16:02 dereuromark yeah, bad idea IMO
# Nov 6th 2019, 16:01 noel Oh ok thanks. The docs specifically say that unique should be domain validation – I wonder why that is?
# Nov 6th 2019, 16:00 dereuromark PS: I recommend first setting up normal validation rules, not domain rules. Especially also for Unique etc. Combined with other rules it would otherwise behave badly.
# Nov 6th 2019, 16:00 dereuromark check the docs here
# Nov 6th 2019, 16:00 dereuromark You might have to return the rules at the end?
# Nov 6th 2019, 15:57 slackebot1 Cake\ORM\Table->checkRules(Object(App\Model\Entity\Device), 'create', Object(ArrayObject)) #1 /Users/me/project/vendor/cakephp/cakephp/src/ORM/Table.php(1933): Cake\ORM\Table->_processSave(Object(App\Model\Entity\Device), Object(ArrayObject)) #2 /Users/me/project/vendor/cakephp/cakephp/src/ORM/Table.php(1638): Cake\ORM\Table->Cake\ORM\{closure}() ```
# Nov 6th 2019, 15:57 slackebot1 function buildRules(RulesChecker $rules) { $rules->add($rules->isUnique( ['name'], 'This device is already registered.' )); } } ``` Here's the error: ``` 2019-11-06 15:47:28 Error: [Error] Call to a member function check() on null (/Users/me/project/vendor/cakephp/cakephp/src/Datasource/RulesAwareTrait.php:65) #0 /Users/me/project/vendor/cakephp/cakephp/src/ORM/Table.php(1994):
# Nov 6th 2019, 15:57 noel Hi all. I'm trying to get started with 3.x validation and have run straight into a wall. I'm able to save from Postman when there's no validation. When I try to add in isunique validation then it breaks. Here's the table: ``` <?php namespace App\Model\Table; use Cake\ORM\Query; use Cake\ORM\RulesChecker; use Cake\ORM\Table; use Cake\Validation\Validator; use Cake\ORM\Rule\IsUnique; class DevicesTable extends Baked\DevicesTable { public
# Nov 6th 2019, 15:33 jotpe @amanfulgence https://startbootstrap.com/ has some good templates
# Nov 6th 2019, 14:14 mario_ thanks
# Nov 6th 2019, 14:07 dereuromark Follow the book/docs/tutorial and bake some code.
# Nov 6th 2019, 14:02 mario_ How learn conventions cakephp?
# Nov 6th 2019, 14:02 mario_ Hi
# Nov 6th 2019, 13:55 ricksaccous pidlo, what are you trying to do?
# Nov 6th 2019, 13:50 rochasmarcelo That's why auth plugins should be a minor issue in 9.next
# Nov 6th 2019, 13:48 rochasmarcelo Well 9.next is for CakePHP 4 only
# Nov 6th 2019, 13:45 rochasmarcelo You'll need to create a custom action for this.
# Nov 6th 2019, 13:40 pidlo i would like search something about setDefaultConnection and i get nothing..
# Nov 6th 2019, 13:38 admad http://google.com
# Nov 6th 2019, 13:38 amanfulgence please give me link where i coul obtain
# Nov 6th 2019, 13:37 admad you want link to google?
# Nov 6th 2019, 13:37 amanfulgence please give me a link