I am looking to implement a 5 star rating using jQuery Ajax in CakePHP. I came across a few plugins but they seem to be for 1.x version only.
Has any one implemented the same in the 2.2 version of CakePHP
Older versions:
http://bakery.cakephp.org/articles/infest696/2011/05/21/star_rating_helper_with_jquery
http://bakery.cakephp.org/articles/schneimi/2010/08/19/ajax-star-rating-plugin-1
https://github.com/cakedc/ratings
The documentation (readme.md) has everything you need. I just implemented it in one of my personal projects im working on - with AJAX - and it is easy to set up and works fine.
Related
I am working on a AngularJS 1.6.6, it's NOT the Angular2/Angular4, project. I am curious if I get a license for KendoUI, will it work smoothly with AngularJS classic?
It will work. You can refer the section Supported AngularJS Versions in their documentation for more details.
If you want to verify these for yourself before purchasing the license, you can update one of their demos with the exact version of AngularJS you wish to use and try it out.
I am very new to Angular 2 and would like to know if Angular 1 plugins can be used in Angular 2. I have used ng-knob in ionic 1 app. Some suggested to use jQuery knob instead but I really want to use ng-knob as it has many more options.
Is it possible to use ng-knob in angular 2? Even if there is a harder way I would not hesitate to try it but I really wan't to use ng-knob.
Any help with sample code is greatly appreciated.
As Angular2 framework is different from Angular1 framework, I'm afraid to say that you can't use Angular1 plugin(s) for Angular2.
Angular2 is a new framework and recently became stable. So, if you are looking for Angular2 plugin(s), its very hard to find them(as of now) as community is still developing Angular2 plugin(s).
Check out the Upgrading with The Upgrade Adapter section in angular.io - point 2 and other sections till 8.
https://angular.io/docs/ts/latest/guide/upgrade.html
Use angular.umd.js file instead of angular.dev.js or angular.js for 2.x. It supports both angular1 application and angular2 application to run side by side. This way you can use 1.x plugin with angular 1.x application and still run angular 2.x application side by side. You can use Zone.js to merge two way binding between angular 1.x application and 2.x application.
But this can be complex and if you are not comfortable with advanced hacks, you should take the answer of using 1.x plugins in 2.x versions. Unless you are ready to port your 1.x plugin to 2.x plugin yourself.
Zone.js intro - https://www.youtube.com/watch?v=V9Bbp6Hh2YE Good resource from Misko.
I've been trying to develop a glossary app in Ionic 2 and when I got to using the http service, it all went to hell. Angular 2 tutorials were changed, the mock server couldn't be set up, and Ionic 2 documentation wasn't of much help. I tried updating dependencies to latest versions, to try to build things according to the newest tutorials, but I couldn't make that work either because some of the classes required throughout the code just weren't getting exported anywhere.
Would you recommend waiting until everyone catches up with one another, or just trying to continue the development with older versions? How am I supposed to make all this work?
Since Ionic 2 builds upon Angular 2 it seems viable to suggest to just wait for Ionic 2 to integrate the final version of Angular 2, if youre not working on a production app right now.
The latest beta of Ionic uses Rc4 of Angular 2,but rumors say the RC version of Ionic is just around the corner with AngularConnect event.
I would like to develop applications using Ionic 2, but now I am working with angularJS1 with Ionic1.
I feel that AngularJs 1 is comfortable for me but not AngularJS 2, so is there any way to work with Ionic 2 and AngularJS 1?
Unfortunately, no.
Ionic 2 is based on the new 2.x (and higher) version of AngularJS, and comes with many significant performance, usability, and feature improvements.
Ionic (1) at a very high-level is essentially just a wrapper & directive/component library for AngularJS (1). In that same regard, Ionic 2 is built in the same way, utilizing all the benefits of Angular 2+.
So basically, everything must be upgraded in order to get the benefits of Ionic 2. If everything you have is working, and performance isn't sluggish, there really is no reason to upgrade it, maybe if you were starting a new project (or the current project you have is small and it would be easy)
Ionic 2 breaks away from being tied to the DOM in the browser, by using angular 2 which is the reason for the massive change between ionic 1.x and ionic 2.x. ( Angular 2.x architecture is not tied down to the DOM unlike the Angular 1.x ).
Although that means having to relearn and unlearn a lot of angular 1.x stuff, but this is a fundamental change that the ionic team has taken up in order to break away from the performance issues that has plagued ionic 1 and certainly well worth it. Now that the ionic 2 platform is stable well almost and certainly far better in performance to ionic 1, migrating is certainly a recommended option.
You can use Angular js 2 and Ionic 2 RC for your development.
https://scotch.io/tutorials/build-a-mobile-app-with-angular-2-and-ionic-2
Scotch
Build a Mobile App with Angular 2 and Ionic 2
Update (September 30, 2016): Update article to recent ionic RC.0 releaseThis article has been updated to use Ionic 2 RC.0 ReleaseThe Ionic Framework... (33KB)
Since Ionic 2 RC will be forward compatible with Ionic 2 official release
Most of the time Enterprise will wait till an official release comes out
but RnD developers use RC packages also
you dnt have to worry..
Im working with cakephp for few months and recently I came across croogo, a cakephp cms system. I've tried it and I should say its an awesome system.
Is it possible to use it as a plugin in my main site. I want to use it just for the admin part and rest of my application unattached to it. Ive tried loading its bootstrap file from my main app and also by linking routes to it. I always get errors.
Can someone have any idea if croogo is meant to be used like a plugin or does it have to be used seperately?
"Beginning version 1.6.x, Croogo has been updated to be installed as a vendor package"
=> So yes, it is possible to use it in your code - just not as plugin, but vendor.
See
https://github.com/croogo/croogo/tree/3.0#installation-using-git