I have php based application currently written using CI. I want to integrate Cappuccino JS framework at my UI layer. Does anyone kn开发者_StackOverflowow how can one go about doing that?
Cappuccino is a JS framework that brings UI developerment style much like the one you'd have with Apple's Cocoa to the web. So instead of creating HTML pages and then using a templating system to inject variables, the UI is generated purely by Obj-J and Cappuccino (which is pretty cool). Since the UI is coded completely in Obj-J it would be best if calls to the backend were done via ajax (with JSON transport). This can be done the normal way AJAX/JSON is done in javascript since Obj-J is a superset of Javascript. You can find some tutorials about Cappuccino here.
Mind you Cappuccino isn't for the light hearted. Unless you know WHY you're using it, you probably shouldn't be.
You can find a short example of using JSON and cappuccino here:
http://www.nice-panorama.com/Programmation/cappuccino/Tutorial-Login-Step1.html
精彩评论