public function actionList($type, $term)
    {
    	$tags = Tag::find()->where('type = :type AND LOWER(name) LIKE :term AND status<>"deleted"', [':type' => $type, ':term' => '%' . strtolower($term) . '%'])->all();
    	$response = [];
    	foreach($tags as $tag) {
    		$response[] = ["id" => $tag->id, "label" => $tag->name, "value" => $tag->name];
    	}
        Yii::$app->response->format = 'json';
        return $response;
    }
public function actionList($type, $term)
    {
    	$tags = Tag::find()->where('type = :type AND LOWER(name) LIKE :term AND status<>"deleted"', [':type' => $type, ':term' => '%' . strtolower($term) . '%'])->all();
    	$response = [];
    	foreach($tags as $tag) {
    		$response[] = ["id" => $tag->id, "label" => $tag->name, "value" => $tag->name];
    	}
        Yii::$app->response->format = 'json';
        return $response;
    }
public function actionList ( $ type , $ term ) { $ tags = Tag :: find ( ) -> where ( 'type = :type AND LOWER(name) LIKE :term AND status<>"deleted"' , [ ':type' => $ type , ':term' => '%' . strtolower ( $ term ) . '%' ] ) -> all ( ) ; $ response = [ ] ; foreach ( $ tags as $ tag ) { $ response [ ] = [ "id" => $ tag -> id , "label" => $ tag -> name , "value" => $ tag -> name ] ; } Yii :: $ app -> response -> format = 'json' ; return $ response ; }
Updates the prices of a product
If update is successful, the browser will be redirected to the 'view' page.
@param integer $id
@return mixed
Updates the prices of a product If update is successful the browser will be redirected to the view page .