Skip to content

Cannot specify id value in select_static() #16093

Answered by niden
s-ohnishi asked this question in Q&A
Discussion options

You must be logged in to vote

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...

Replies: 1 comment 1 reply

Comment options

niden
Sep 12, 2022
Maintainer Sponsor

You must be logged in to vote
1 reply
@s-ohnishi
Comment options

Answer selected by s-ohnishi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants