Skip to content

htmlspecialchars() expects parameter 1 to be string, array given #18

Description

@larry-tx

I'm trying to implement Taggable following the available instructions. I've made the changes to the model and controller. However, when I add <?php echo $form->textField($model, 'tags'); ?> to my _form.php, it returns an error: htmlspecialchars() expects parameter 1 to be string, array given. This error is coming from CHtml.php.

Can you tell me how to correct this so that I don't get the error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions