1
Hello, I still can’t use the afterFind, even following some posts on the net. Help me with the controller and model, please. I use beforeSave, but I can’t use afterFind.
I’ve already put Return false or true in the controller method, but it didn’t help.
Does anyone have any functional code with afterFind to send me?
controller Expenses
http://www.hastebin.com/uwawofupik.coffee
Appmodel
http://www.hastebin.com/tafewekayo.php
Model Despesa
Have you tried the one
exit()
in theafterFind()
to see if this passing by there?– Jeferson Assis
@Jeferson Assis the exite would be at the end of the method? And it would be like this: exite(); ?
– André Nascimento
I’ve analyzed your code better, you can test the answer below
– Jeferson Assis
you have completely changed your question, it is advisable to create a new question when the problem is different from the one quoted in this. Go back to the previous question and create a new one so I can help you.
– Jeferson Assis
Hello André, I recommend following the guidance of Jeferson and separate your questions in different topics and not change the context of your question mainly in cases where you have already answered it. If your other question is related to this one you can link it to give more context. Enjoy and make a [tour] to know better the functioning of the community.
– Math