New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client-side models for Backbone and Angular #1471
Comments
That's out of scope of core framework. |
I do not think it out of scope core framework. |
Shouldn't a gii template for JS models be enough? This could be created as an extension and later incorporated in the core if it meets the quality and other requirements. |
@sheo13666 all your examples are pointing to third party repositories, not core framework. If you're talking about REST, there is issue already filled for it: #303 |
@nineinchnick Yeah, I think gii suitable for this solutions. I would not want to see this issue with the label closed, perhaps someone interested in further improvement.Eg generation routers(to navigate the page without updating) and etc, all that with regards to complex and ajax applications. |
@samdark About Rest I have read and know. No I did not mean it. I said that many have not included it in the part of core, but I do not think it would be bad, if yii to do it first. |
Writing ui for working with models(most often it is required) on fornt-end: validation, changes in events and more is not very convenient on jquery(most often we get a lot of unstructured code). I understand that the creation of any Ajax application - it's hard work, but if it is possible to alleviate then why not? |
Well, it's different for each clientside library and there are many. We can't support them all in the core. |
I understand that, but sooner or later they will have to implement it. And it might be worth to explore and have a discussion that is better to use. Or if enough developers to develop their own. |
When someone will implement it and release as an extensions, others may contribute. We have no plan doing it currently. Too many other things to handle. |
Don't. Please. Please don't. 2013/12/10 Alexander Makarov notifications@github.com
|
actually, i working now with angular + yii2, and model for angular looks like:
of course there is must to be some ModelFactory and so on, but now i working on angular models which will works with websockets(just change transport :-) and maybe later will implement autoupdate). Maybe just need to create demo app, for showing how to use good practice, but what generate i don't see. @sheo13666, can you get more details what you want to see? |
@nizsheanez I think it would be good to create a demo. How about the other components(views, routing)? |
Routing
using module for versions is not good, but to push controllers in folder, like views - just layout. everything else on angular |
@nizsheanez thanks for your description. I'm developing a Yii2 app and running against the limitations of a static lay-out rendered on the server side. I have 2 questions for you:
thanks! |
Handlebars is good solution |
@docsolver
@sheo13666 |
@nizsheanez I was looking for a method of using grunt with yii, but did not find a recipe, I would like to know whether this is possible in a convenient way. |
@sheo13666 Actually what we need from Yii in this case? So, i think it's easy to create console wrapper over |
It would be really useful for Backbone and Angular apps to auto-generate models and validation for field of models(recently, a very developed full-ajax application and would like to yii also developed in this direction. Also use engine is a realtime model synchronization(example for nodejs is https://github.com/codeparty/racer). Implementing such a system will allow further development of complex applications comfortable.
The text was updated successfully, but these errors were encountered: