-
I'm trying Phalcon 5.0.0RC4.
I think Tag::textField() does the same process internally, but there is no problem if you add the 'id' key at the beginning. select_static() requires that the first argument (which will be the id value) be a string without a key, and if you want to clearly indicate the id with a key, you need to put a dummy string at the beginning. Was it designed as a specification? By the way, "Fatal error: Allowed memory size of ~" every time an error occurs, is xDebug setting wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The third line results in an error because the method cannot find the first element in the array you are passing. The syntax is: $id = $parameters[0]; You are correct, the first element has to be key-less. Now you know why we want to move to the TagFactory/helper. ;) We are not there yet, still work to be done especially for select/checkbox/radio but we are getting there As for the Fatal error etc. I am really not sure. It could very well be something with xDebug internally. I have seen many cases in the past where xDebug will crash Phalcon... |
Beta Was this translation helpful? Give feedback.
The third line results in an error because the method cannot find the first element in the array you are passing. The syntax is:
You are correct, the first element has to be key-less.
Now you know why we want to move to the TagFactory/helper. ;) We are not there yet, still work to be done especially for select/checkbox/radio but we are getting there
As for the Fatal error etc. I am really not sure. It could very well be something with xDebug internally. I have seen many cases in the past where xDebug will crash Phalcon...