# |
Apr 17th 2018, 08:47 |
portilloster |
Hi @neon1024!! These below are class properties right? I want to create a rule for one of them and I need the other one for comparign :slightly_smiling_face: $validator ->date('FechaBajaSolicitud') ->notEmpty('FechaBajaSolicitud'); $validator ->date('FechaAltaReclamacion') ->notEmpty('FechaAltaReclamacion'); |
# |
Apr 17th 2018, 08:38 |
sonu_nk |
domain.com/auth?state=91andcode=4/kPAobhARwQntv0qucokyBwvgAM60OhpTcypoLZc i have this in browser, when i am trying to access query params then it saying blank array.. with$_REQUEST or $_GET even its not wokring.. |
# |
Apr 17th 2018, 08:37 |
sonu_nk |
hi here |
# |
Apr 17th 2018, 08:19 |
neon1024 |
If it’s a class property, you can pass it into your function with a use `function ($foo) use ($bar) {` |
# |
Apr 17th 2018, 08:18 |
neon1024 |
If it’s request data, the second param of $context will have the data you need |
# |
Apr 17th 2018, 08:18 |
neon1024 |
Is it part of the data being validated, or is it a class property? |
# |
Apr 17th 2018, 08:18 |
neon1024 |
Can you define what an attribute is? |
# |
Apr 17th 2018, 07:07 |
portilloster |
Morning everyone! I need to make a validating function on the Model/Table, and I need to send it two attributes from that Table. I know how to do it with one attribute creating the rule for it, but how do I pass the second attribute to the function? |
# |
Apr 17th 2018, 06:51 |
wyrihaximus |
hey @joshualuckers :wave: |
# |
Apr 17th 2018, 06:50 |
joshualuckers |
hi @wyrihaximus :D |
# |
Apr 17th 2018, 02:17 |
genellern |
@jarreddurant14 Why would you say that ? |
# |
Apr 17th 2018, 01:25 |
jarreddurant14 |
Alright, I replaced it with this: ``` Configure::load('users', 'default'); Plugin::load('CakeDC/Users', ['routes' => true, 'bootstrap' => true]);``` and it's not throwing an exception - but it doesn't seem to be loading the new configuration |
# |
Apr 17th 2018, 00:58 |
slackebot2 |
the plugin was working before I tried to use my own custom controller with it. Please @ me if you have anything to say! Thanks! :D |
# |
Apr 17th 2018, 00:58 |
jarreddurant14 |
Hi all! :wave: I'm having some issues configuring my own custom settings on the CakeDC/Users plugin on Cake 3.6. Here's what I have currently: ```Configure::load('CakeDC/Users.config', 'default'); Plugin::load('CakeDC/Users', ['routes' => true, 'bootstrap' => true]);``` and I have `config/users.php` in my config folder. I'm getting `Exception: Plugin CakeDC/Users could not be found.` when I've already required it with Composer, and |
# |
Apr 16th 2018, 22:11 |
dwms |
I found the problem, in a specific place I did the correct change, thank you |
# |
Apr 16th 2018, 22:03 |
itmpls |
hmm is Usuarios model missing something? |
# |
Apr 16th 2018, 22:02 |
dwms |
I did, it was after I changed the name of the Users to Usuarios model that the problem happened |
# |
Apr 16th 2018, 21:58 |
itmpls |
try re-doing that whoel tutorial |
# |
Apr 16th 2018, 21:57 |
dwms |
File uploaded https://cakesf.slack.com/files/UA71ZN1PS/FA8SE59FH/usuarioscontroller_php.php / https://slack-files.com/T053DPNCM-FA8SE59FH-780bd1c462 |
# |
Apr 16th 2018, 21:56 |
dwms |
File uploaded https://cakesf.slack.com/files/UA71ZN1PS/FA8MSRWT0/-.php / https://slack-files.com/T053DPNCM-FA8MSRWT0-911af13829 |
# |
Apr 16th 2018, 21:21 |
itmpls |
anymore besides the first file you sent? |
# |
Apr 16th 2018, 21:21 |
itmpls |
config settings for auth? |
# |
Apr 16th 2018, 21:21 |
itmpls |
what are your settings |
# |
Apr 16th 2018, 20:53 |
dwms |
can anyone tell the reason for the redirect to the index after the add event is executed? |
# |
Apr 16th 2018, 20:50 |
dwms |
libera dinovo |
# |
Apr 16th 2018, 20:48 |
dwms |
? |
# |
Apr 16th 2018, 20:38 |
dwms |
for some reason it is redirecting to the action 'index' of the controllers 'users' and there it is giving the access problem |
# |
Apr 16th 2018, 20:26 |
itmpls |
i did this last week, but I can't remember the specifics |
# |
Apr 16th 2018, 20:26 |
itmpls |
that might be why you are not authorized to access that location |
# |
Apr 16th 2018, 20:26 |
dwms |
no |
# |
Apr 16th 2018, 20:24 |
itmpls |
did you setup the authorization part? |
# |
Apr 16th 2018, 20:17 |
dwms |
understood the problem? |
# |
Apr 16th 2018, 20:11 |
dwms |
File uploaded https://cakesf.slack.com/files/UA71ZN1PS/FA773U8RF/-.java / https://slack-files.com/T053DPNCM-FA773U8RF-7da07631b1 |
# |
Apr 16th 2018, 20:09 |
dwms |
File uploaded https://cakesf.slack.com/files/UA71ZN1PS/FA72MLAN4/-.php / https://slack-files.com/T053DPNCM-FA72MLAN4-9135dd3194 |
# |
Apr 16th 2018, 20:08 |
dwms |
it adds the user, but returns the message that does not have access |
# |
Apr 16th 2018, 20:08 |
dwms |
already, and even then the message |
# |
Apr 16th 2018, 20:01 |
admad |
you need to set 'userModel' config for the plugin to 'Usuarios' |
# |
Apr 16th 2018, 19:59 |
dwms |
is there any configuration I need to do in the plugin? |
# |
Apr 16th 2018, 19:59 |
dwms |
excuse |
# |
Apr 16th 2018, 19:58 |
dwms |
from 'Users' para 'Usuarios' |
# |
Apr 16th 2018, 19:56 |
dwms |
The action is executed, in case the user is added, but I get this message quoted. |