Hi, I have a problem that when I run this
$result = $this->validation_helper->run();
It redircets from http://localhost/demo/attendance to this url: http://localhost/demo/.
which is undesired.
Validation helper redirects back to : http://localhost/
2 years ago
2 years ago
#1
2 years ago
#2
Need more info... What are you validating? What's in the form? What version of Trongate? Code example...
2 years ago
#3
* Trongate *
* Version: 1.3.3049
form part:
controller:
* Version: 1.3.3049
form part:
controller:
2 years ago
#4
in the latest trongate it says: This page isn’t workinglocalhost is currently unable to handle this request.
HTTP ERROR 500
HTTP ERROR 500
2 years ago
#5
I'll try to get to your request over the weekend. I am busy with a few things at the moment. Yes, I have seen that server error too, and will let DC know or try to solve it if I get the time.
2 years ago
#6
OK, a few things are going on here
- firstly, you need to ensure the validation rules match the form element "inputContact" so the corresponding rules should be:
- secondly, the reason you are being redirected is because of CSRF.
Add to your form.
- firstly, you need to ensure the validation rules match the form element "inputContact" so the corresponding rules should be:
- secondly, the reason you are being redirected is because of CSRF.
Add to your form.
2 years ago
#7
still same with the above proposed methods.
2 years ago
#8
I think the problem could be your form location.
2 years ago
#9
That's fine DC - it works fine for me - here is the code I created based on the above:
The PHP 500 error you posted on 9th May is something completely different to the first issue you were seeing...
The PHP 500 error you posted on 9th May is something completely different to the first issue you were seeing...
2 years ago
#10
redirecting back to the url:
was in the older trongate version. when I download latest trongate app builder, then it says:
was in the older trongate version. when I download latest trongate app builder, then it says: