# |
Jun 28th 2017, 12:45 |
jarard |
how do I ensure that my home index page isn't locked out. I am looking at previous prjects that use TinyAuth and I can't see that Pages/view is in the allowed list |
# |
Jun 28th 2017, 12:32 |
jarard |
dereuromark - I can' tever imagine not using it now |
# |
Jun 28th 2017, 12:21 |
cleptric |
:slightly_smiling_face: |
# |
Jun 28th 2017, 12:20 |
dereuromark |
@cleptric Much appreciated |
# |
Jun 28th 2017, 12:18 |
cleptric |
Ok, nvm then ^^ |
# |
Jun 28th 2017, 12:18 |
jotpe |
it's cake 2.x |
# |
Jun 28th 2017, 12:18 |
cleptric |
Cake 3 don’t has a `getDataSource` function |
# |
Jun 28th 2017, 12:16 |
jotpe |
What could be the problem, if $this->getDataSource(); is null? |
# |
Jun 28th 2017, 12:15 |
cleptric |
@dereuromark Someones said something nice about one of your plugins ;) |
# |
Jun 28th 2017, 12:15 |
laahudra |
HEy Cake\View\FormEntityContext Line 464 $method = 'default'; if (is_string($this->_context['validator'])) { $method = $this->_context['validator']; } elseif (isset($this->_context['validator'][$alias])) { $method = $this->_context['validator'][$alias]; } Where I can set method diffrent then default, I need it before dorm is submit |
# |
Jun 28th 2017, 12:12 |
jarard |
Just have to say how amazing the TinyAuth plugi is :) |
# |
Jun 28th 2017, 12:07 |
adriencs |
according to the examples, your 2nd snippet seem right |
# |
Jun 28th 2017, 12:06 |
stefanvangastel |
Reference: https://book.cakephp.org/3.0/en/orm/database-basics.html#configuration |
# |
Jun 28th 2017, 11:36 |
slackebot |
no example): ``` ConnectionManager::config('default', [ 'url' => '<mysql://my_app:sekret@localhost/my_app?encoding=utf8andtimezone=UTCandcacheMetadata=trueandssl_key=/path/to/ssl_keyandssl_cert=/path/to/ssl_cert' ]); ``` |
# |
Jun 28th 2017, 11:36 |
stefanvangastel |
Hi all, I was wondering, we want to switch some of our MySQL db configurations to DSN's but we also have SSL config, is the following a valid (and working) config: ``` ConnectionManager::config('default', [ 'url' => 'mysql://my_app:sekret@localhost/my_app?encoding=utf8andtimezone=UTCandcacheMetadata=true>', 'ssl_key' => '/path/to/ssl_key', 'ssl_cert' => '/path/to/ssl_cert' ]); ``` Or should it be something like this (accordi |
# |
Jun 28th 2017, 11:25 |
jotpe |
$this->validationErrors does not throw any errors |
# |
Jun 28th 2017, 11:24 |
jotpe |
$this->_beginTransaction(); $this->create(); if (!$this->save($newTransaction)) { $this->_rollbackTransaction(); return false; } |
# |
Jun 28th 2017, 11:24 |
jotpe |
I have following code, but save() does seems to be false |
# |
Jun 28th 2017, 11:23 |
jotpe |
is there any way to debug the save process? |
# |
Jun 28th 2017, 11:23 |
jotpe |
hey everybody |
# |
Jun 28th 2017, 11:21 |
laahudra |
Ok cool, thanks for info |
# |
Jun 28th 2017, 11:20 |
neon1024 |
Then you can share the code with everyone and someone might have a better insight than I do :slightly_smiling_face: |
# |
Jun 28th 2017, 11:20 |
neon1024 |
Try out a paste service like pastebin, hastebin or gist :slightly_smiling_face: |
# |
Jun 28th 2017, 11:20 |
laahudra |
no more questions, thanks |
# |
Jun 28th 2017, 11:19 |
laahudra |
ok |
# |
Jun 28th 2017, 11:19 |
neon1024 |
Hey @laahudra please can you stop spamming me with code in pm, thanks |
# |
Jun 28th 2017, 11:18 |
neon1024 |
Maybe for associations, but then they’re validated in their own class |
# |
Jun 28th 2017, 11:18 |
neon1024 |
Although I don’t see why you couldn’t extend the Validator class, and just inside validationDefault, have something like $validator = new MyValidator() |
# |
Jun 28th 2017, 11:16 |
neon1024 |
You’ll probably find that some fields are required because they are not nullable in your database |
# |
Jun 28th 2017, 11:16 |
neon1024 |
https://book.cakephp.org/3.0/en/core-libraries/validation.html#adding-validation-providers |
# |
Jun 28th 2017, 11:16 |
neon1024 |
Why can’t you just use your custom validation class? |
# |
Jun 28th 2017, 11:15 |
neon1024 |
Why would you need to alias it? |
# |
Jun 28th 2017, 11:13 |
laahudra |
Hello m8's Question: Can I use diffrent validation then "validationDefault(Validator $validator)"? For example "validationCustom(Validator $validator)" Alliased as custom I need it because Form Helper set required field base on validationDefault rules. |
# |
Jun 28th 2017, 10:56 |
tariquesani |
:wave: |
# |
Jun 28th 2017, 10:53 |
vix |
M getting the option value in select but not text |
# |
Jun 28th 2017, 10:52 |
boriskanjer |
hello |
# |
Jun 28th 2017, 10:50 |
tariquesani |
@cakephp721 don't bother with a helper for charts. Supply data via an API and keep your code clean |
# |
Jun 28th 2017, 10:48 |
vix |
neon1024: Hey tried the same, unfortunately didn't work for me. Could you pls help me out on teamviewer |
# |
Jun 28th 2017, 10:47 |
marcobimbati-cakephp |
Just wanted you to know that I tried a way more complex 'contain' => ['Predictions' => ['Matches' => ['Teams','Competitions','Seasons']]] and works like a charm. Thank you again. |
# |
Jun 28th 2017, 10:44 |
neon1024 |
I do the same thing for user dropdowns where I want user_id => first_name + last_name |
# |
Jun 28th 2017, 10:43 |
neon1024 |
Then your virtual field can be your three things concatenated with a hyphen |