Hi. I’m curious if there is any plan to include any frontend js framework like Vue or React in Yii 3.0? Just like how Laravel has integrated VueJs in their framework. Thanks.
Hi. I’m curious if there is any plan to include any frontend js framework like Vue or React in Yii 3.0? Just like how Laravel has integrated VueJs in their framework. Thanks.
No. There’s no need to do so. Vue, React, Angular… all work via REST API.
i agree with samdark
¿What are your opinion to support a query language for api like a GraphQL o Falcor in the ActiveController of the rest module? Thanks…
It has own uses but, in my experience, it’s not a simple task to implement proper permissions for GraphQL. Other than that it’s good when you have no idea what clients you’ll have.
I want to vuejs in my web application like jquery.
I need to create some vue components by using module bundler tools like webpack.
Laravel using mix to achieve this. we need a tool like that to work with modular javascript.
why do not you use Laravel instead of Yii?
yii is yii and laravel is laravel. I like yii.
I’m expecting the solution for managing modular javascript in yii way.
You are right.
It would be interesting to have our own recipe, making the most of all the resources of the framework.
i think
if Yii3 not adapted Vue or React as default JS framework
(this is for flexibility and unlock from JS framework)
then, we need to dev “Yii3 app template” that implement it
for examplle “Yii3-vue-app-template” project or “Yii3-react-app-template”
this app template make dev with Yii3 more rapid.
i’m implement ajax on Yii2 between create & update is more FAST ever hope Yii3 will concern about this
public function actionAjax($id)
{
if ($id) {
$model = $this->findModel($id);
} else {
$model = new Model();
}
return $this->renderAjax('_form', [
'model' => $model,
]);
}
Hi by the far far past!
Samdark, I like integrated ecosystem and Yii2 works well both as backend and frontend
But the last years requirements and specs became very complicated, without a serious FE library like ReactJS we cannot achieve a lot of dependent UI parts of a page even with native js or jQuery is not easy to handle large and complicated systems
At this moment I find out opiniated ways to integrate Yii2 and ReactJS without Rest API, but in unofficial way and not maintentable and robust way
I think it will be a big deal to integrate FE libraries like ReactJS, Vue, etc with Yii3. This will give more value to the Yii framework and its community
Even in case there is a plan to implement a FE library specify to match and integrated with Yii3 for example Yii3.Js will be valuable!
There is no plan to do any integration, since the proper way is to separate apps in this case. Frontend app is built with frontend framework, backend part is built with backend framework. Communication between the two is done via API. Yii3 provides a nice app-api template for this case. The plan is also to have Gii to generate code based on OpenAPI specification, but that would come later.