-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Jquery dependency #9525
Comments
I got your point, but yes. Yii comes with various widgets wich are jquery dependants. EDIT: I should really answered "Yes, it is." but it would look as a joke. |
That's already in a list of ides for 2.1. |
So release it very fast. Do it today. That's really not acceptable. If what @ricardofiorani said is true, move all that to some sort of default application. A php framework should never provide or depend on "jquery code". |
You're welcome to provide a pull request to speed things up ;) |
Yii has several core features that require jquery, not just some widgets. For example, |
Well, it could be improved i.e. all this functionality could be moved to an extension which is required from application template's It's not a huge thing though since Yii deals well with lazy loading classes so if it's not used in particular app it won't ever be autoloaded. So the issue is more about formal correctness and maybe simplifying core framework by moving clientside part into optional package. |
The whole section in the guide about RESTful services is needless if it is not possible to |
Is there a tracking issue for this? For example, it would be nice if one could use only the ActiveRecord of Yii. |
The requirement of jQuery is just a couple of files which are never touched if you're developing REST service only. Should not be huge issue considering storage sizes nowadays. Still worth fixing, of course. There's no plan to decouple AR functionality from the core. At least at this stage. |
@samdark The problem is not file size. The problem is that composer fails to install yii if I don't have bower-asset installed globally. Which means I have to explain my project lead that to deploy the REST API, they have to install bower-asset via composer first, so it can download jQuery, so it can install Yii. |
Yeah. It's already planned to change it. btw., project lead who's not aware about framework used for the project is kinda weird situation. |
there is a workaround btw: #8709 (comment) |
Merged into #8452 |
Do you really think is a good idea to have a asset as dependency of a PHP FRAMEWORK?
Do you really need this bower-asset/jquery thing? Can you explain how it is used by php?
The text was updated successfully, but these errors were encountered: