Just starting with Trongate, building my first project.
I created a new Module with 4 fields all defined as an integer.
When trying to have a look in the browser I got the red error page.
It looks like the function manage() in the controller is unhappy that the $params[] did not get initialized because non of the fields is searchable (by default - because INTs) - at least that is my interpretation.
I can circumvent this by making one of the fields searchable, but I can imagine that there could be an addition in the code to prevent this.
Or maybe I am wrong and did something stupid (can't be ruled out), and for that I might want to apologize.
I think I found a little error
3 years ago
3 years ago
#1
3 years ago
#2
Hello and Welcome,
Can you post your controller code?
Use Square Brackets with code at the beginning and /code at the end inside the brackets.
Dan
Can you post your controller code?
Use Square Brackets with code at the beginning and /code at the end inside the brackets.
Dan
3 years ago
#3
Hi Dan,
Thank you for your reply. I think I found what caused my confusion. Sometimes my Windows VM gets a life of its own and start inserting characters at the spot where my pointer happens to be. Although I could not replicate the "error" that bothered me, I noticed something similar when a "ae"-character was spontaneously inserted in the filename of the 'view-file'-variable. Obviously this causes the 404-page. Turns out it is not the manage() function in the controller, but it is VSCode that is complaining about the $params[] not being initialized, but I was wrong assuming VSCode was right.
So the 'error' was all mine. So please excuse me and thanks again.
Thank you for your reply. I think I found what caused my confusion. Sometimes my Windows VM gets a life of its own and start inserting characters at the spot where my pointer happens to be. Although I could not replicate the "error" that bothered me, I noticed something similar when a "ae"-character was spontaneously inserted in the filename of the 'view-file'-variable. Obviously this causes the 404-page. Turns out it is not the manage() function in the controller, but it is VSCode that is complaining about the $params[] not being initialized, but I was wrong assuming VSCode was right.
So the 'error' was all mine. So please excuse me and thanks again.
3 years ago
#4
Thanks Jot, would you mind closing the post.