# |
Jun 25th 2019, 22:54 |
ricksaccous |
because if you are and you haven't changed the templates significantly |
# |
Jun 25th 2019, 22:53 |
ricksaccous |
FormHelper |
# |
Jun 25th 2019, 22:53 |
ricksaccous |
the cake way is to let the field spit them out, are you using formHelper |
# |
Jun 25th 2019, 22:53 |
rightscoreanalysis |
is the cake way to use the validation messages on the field? |
# |
Jun 25th 2019, 22:51 |
ricksaccous |
if you aren't doing things the cake way you'll have to figure it out yourself |
# |
Jun 25th 2019, 22:51 |
ricksaccous |
if you do things the cake way cake will spit the errors out for you |
# |
Jun 25th 2019, 22:50 |
rightscoreanalysis |
the format is not standard |
# |
Jun 25th 2019, 22:50 |
rightscoreanalysis |
how can I work with that? |
# |
Jun 25th 2019, 22:50 |
slackebot |
<rightscoreanalysis> |
# |
Jun 25th 2019, 22:50 |
rightscoreanalysis |
but this is an array with 2 index with the messages found in indexes which are different |
# |
Jun 25th 2019, 22:49 |
rightscoreanalysis |
another question - when validation fails I can see my vlaidation messages in: $user->errors() |
# |
Jun 25th 2019, 22:48 |
rightscoreanalysis |
ok thanks think it is working now |
# |
Jun 25th 2019, 22:47 |
ricksaccous |
@rightscoreanalysis the logs will help you figure it out |
# |
Jun 25th 2019, 22:47 |
ricksaccous |
or i think php fatal error |
# |
Jun 25th 2019, 22:47 |
ricksaccous |
@rightscoreanalysis sounds like it could be an apache error or nginx error? |
# |
Jun 25th 2019, 22:36 |
rightscoreanalysis |
but when i load a page which as an error I just have: Error An Internal Error Has Occurred |
# |
Jun 25th 2019, 22:36 |
rightscoreanalysis |
'debug' => true |
# |
Jun 25th 2019, 22:36 |
rightscoreanalysis |
why would my debugging not be working, in my app.php |
# |
Jun 25th 2019, 22:18 |
ricksaccous |
is that possible? |
# |
Jun 25th 2019, 22:18 |
ricksaccous |
they are using the same class but different settings |
# |
Jun 25th 2019, 22:17 |
ricksaccous |
how do you load multiple identifiers? |
# |
Jun 25th 2019, 19:25 |
Demeter |
Hello |
# |
Jun 25th 2019, 18:17 |
ricksaccous |
@phpraven no problem, glad i helped out by taking a stab in the dark, lol |
# |
Jun 25th 2019, 18:16 |
phpraven |
@ricksaccous just like you said, the association was wrong (plugin name). Thanks |
# |
Jun 25th 2019, 17:24 |
phpraven |
ok |
# |
Jun 25th 2019, 17:24 |
ricksaccous |
and it's finding the table |
# |
Jun 25th 2019, 17:24 |
ricksaccous |
@phpraven make sure you can do $this->Users->Profiles->find() to make sure the association is fine |
# |
Jun 25th 2019, 17:19 |
phpraven |
What is weird I can go only to 2 levels deep, $this->Users->Profiles->find() works, but $this->Users->Profiles->Genders->find() not. But when I try this in Profiles controller $this->Profiles->Genders->find() it works. |
# |
Jun 25th 2019, 17:10 |
phpraven |
both users and roles are in the same plugin. In my users controller everything works but when I try to get Roles in Profile plugin i see this message. |
# |
Jun 25th 2019, 17:07 |
phpraven |
plugins/User/src/Model/Table |
# |
Jun 25th 2019, 17:06 |
phpraven |
let me check first |
# |
Jun 25th 2019, 17:06 |
ricksaccous |
or User/src/Model/Table I mean |
# |
Jun 25th 2019, 17:06 |
phpraven |
yes |
# |
Jun 25th 2019, 17:06 |
ricksaccous |
@phpraven are your files in Users/src/Model/Table folder? |
# |
Jun 25th 2019, 17:06 |
phpraven |
maybe I made a mistake somewhere to polish |
# |
Jun 25th 2019, 17:05 |
phpraven |
@ricksaccous I think so |
# |
Jun 25th 2019, 17:04 |
ricksaccous |
of the usersTable class? |
# |
Jun 25th 2019, 17:04 |
ricksaccous |
@phpraven did you define the relationship in initialize? |
# |
Jun 25th 2019, 16:34 |
nucc1 |
slackebot: if you're using PHP7+, you can create your arrays simply by using ['User-Agent' => 'TEST']. No need for array( ). |
# |
Jun 25th 2019, 16:15 |
phpraven |
Hello, I'm getting this error message: The Roles association is not defined on Users. I need user role, how can I contain role in this query |
# |
Jun 25th 2019, 16:06 |
nucc1 |
like, i've already set function add() for handling the Adding, if i wanted a REST method of doing something, i suppose i have to create something like function restAdd() ? |