Closed nkovacs closed 9 years ago
Will need to check on this... and update.
Select2's tags option may contain user input. I can't Html encode them, because select2 expects them to not be encoded, so they have to be Json::htmlEncode-ed to be correctly passed to select2.
Resolved via latest commit.
hi, i finish to implement upgrade 2.0.2 to 2.0.5 last version, so then i paste the new vendor version in my project and install again the kartik nav navx and now i have this error in one page
PHP Fatal Error – yii\base\ErrorException
Call to undefined method yii\helpers\Json::htmlEncode()
help please.
finally i installed the new version in a new project, all widgets again, create the modules migrate the models, controllers, views and assets. This fix mi problem. thx
Yes you must install via composer... and not manually copy paste files... else you will get errors because of package dependencies.
you say upgrade yii 2.0.2 to 2.0.5 via composer? is posible this? I not found any code to do this
I was talking about updating this extension.
But yes you can also update yii via composer using composer update
. Refer composer docs to configure your composer.json if you are unclear.
Ok. Thank you again Kartik
You should use
Json::htmlEncode
instead ofJson::encode
when the result is inserted into html.For example, here: https://github.com/kartik-v/yii2-krajee-base/blob/master/WidgetTrait.php#L71
More info: http://www.yiiframework.com/news/86/yii-2-0-4-is-released/