Yii Framework Forum: Yii And Javascript Frameworks? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii And Javascript Frameworks? Rate Topic: -----

#1 User is offline   voidcontext 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 20-March 12
  • Location:Hungary

Posted 27 September 2012 - 05:14 AM

Hi,

Have you used any javascript framework (ember.js, angular.js,backbone.js, etc...) with Yii?

If yes, what was the reason to apply a js framework with Yii?
Are there real benefits to use them, if yes what are these?
Sorry for my english...
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,616
  • Joined: 17-January 09
  • Location:Russia

Posted 27 September 2012 - 06:39 AM

Used backbone because of the app was too complex to handle it with just jQuery.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#3 User is offline   voidcontext 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 20-March 12
  • Location:Hungary

Posted 27 September 2012 - 10:51 AM

View Postsamdark, on 27 September 2012 - 06:39 AM, said:

Used backbone because of the app was too complex to handle it with just jQuery.


Why Backbone and not the others? Which one would you choose if you were just starting to use/know a js framework?
Sorry for my english...
0

#4 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,694
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 27 September 2012 - 12:13 PM

I use knockout heavily.
Also used angular and JSRender/JSViews.

I have had to start using js frameworks because of complex client-side logic.
God is real unless declared as integer
0

#5 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,616
  • Joined: 17-January 09
  • Location:Russia

Posted 28 September 2012 - 04:17 AM

voidcontext
Choice that time was quite random and it worked well. Not sure which one I'd choose today. There are many new frameworks out there.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#6 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 28 September 2012 - 09:20 AM

I like Knockout for its views and Backbone for its models - and can't make up my mind as for which to use - but today I stumbled upon Knockback which seems to bring these two together. :D

I think the general idea is to create rest application using Yii and then a separate client application using a js framework ?
"Less noise - more signal"
0

#7 User is offline   rAWTAZ 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 102
  • Joined: 08-January 10

Posted 28 September 2012 - 05:58 PM

FWIW, I'm reading this article right now: http://blog.stevensa...one-of-js-2012/

I can't say how accurate it is, but it sure seems to discuss things in a structured and relevant way. Probably worth reading.
0

#8 User is offline   voidcontext 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 20-March 12
  • Location:Hungary

Posted 06 October 2012 - 07:25 AM

Thanks for everyone!

After reading some blog posts about this subject, I've decided to use KnockoutJS. I think that was a good choice, this framework/library has amazing features, the JS code can be clean and clear (unlike plain jQuery), and the documentation is good.

Now I'm thinking to implement Yii's CGridView with Knockout as a Yii extension.
Sorry for my english...
0

#9 User is offline   dubby 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 144
  • Joined: 10-February 09
  • Location:Melbourne, Australia

Posted 17 April 2013 - 07:21 PM

Hi voidcontext,

If you do create an extension can you update this thread so I'm notified. I'd love to try it.
0

#10 User is offline   voidcontext 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 20-March 12
  • Location:Hungary

Posted 18 April 2013 - 01:42 PM

View Postdubby, on 17 April 2013 - 07:21 PM, said:

Hi voidcontext,

If you do create an extension can you update this thread so I'm notified. I'd love to try it.


Hi,

There were performance issues on large lists, and I didn't have enough time for it, so I've dropped this idea... Sorry...
Sorry for my english...
0

#11 User is offline   Urkman 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 44
  • Joined: 29-April 09
  • Location:Anrath/Germany

Posted 25 April 2013 - 03:10 AM

Nobody uses ExtJS here?
0

#12 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 25 April 2013 - 05:54 AM

What do you mean 'nobody uses it' ?
There is an extension for it.

I am not using it, though, because of the license.
ExtJS is probably great if you are after a desktop like development environment for the web.
And have a load of money to throw after it.

If I wanted a fuller js api, then I'd probably go with Angular or Ember.

But, nowadays, I'd probably use Backbone - or rather: Chaplin.
Thorax is also a great option.
For me.

There's just too many choices out there. :)
"Less noise - more signal"
0

#13 User is offline   sazedul 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 06-March 13

Posted 08 June 2013 - 01:57 PM

Hi every one.
Before came to this topic i did some research about good js Framework where i selected AngularJs after check all the pros and cons. But now as you guys are talked lot about knockout JS.so again i did another research on comparing "Knockout js" and "AngularJs" I found AngularJs to use for yii.

AS I am new to yii and you guys are experienced in yii.I need your response

Thanks :)
0

#14 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,616
  • Joined: 17-January 09
  • Location:Russia

Posted 09 June 2013 - 07:33 AM

Well, Angular is no doubt impressive. The only thing that worries me is that it's not easy to understand how exactly all this magic works :)
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#15 User is offline   bettor 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 752
  • Joined: 02-February 09

Posted 10 June 2013 - 05:12 AM

View Postsamdark, on 09 June 2013 - 07:33 AM, said:

Well, Angular is no doubt impressive. The only thing that worries me is that it's not easy to understand how exactly all this magic works :)


That doesn't mean you can't successfully use it ;)

I just had a look at the presentation videos they have and it does look impressive. I've only used Backbone.js and used it for mobile development project. It provides good model and collection structure.

One more point angular is Google. With this in mind the knife has two edges. They are very good at making a technology a standard and very good at dumping technologies with no obvious reason for the users!
0

#16 User is offline   sazedul 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 06-March 13

Posted 15 June 2013 - 01:32 PM

View Postbettor, on 10 June 2013 - 05:12 AM, said:

That doesn't mean you can't successfully use it ;)

I just had a look at the presentation videos they have and it does look impressive. I've only used Backbone.js and used it for mobile development project. It provides good model and collection structure.

One more point angular is Google. With this in mind the knife has two edges. They are very good at making a technology a standard and very good at dumping technologies with no obvious reason for the users!



So what i got from your point of view is its better to avoid AngularJs?

:)
0

#17 User is offline   aleksdj 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 51
  • Joined: 05-April 10

Posted 15 June 2013 - 02:18 PM

Very good thread, I was looking for some javascript MVC, MVVM, framework and the better options for me (not really using them by now) are Knockout and Backbone. In summary Knockout let you do clean and easy code using html attributes (html5 style) and separating javascript code from html with an orentation to ModelViewModel, and on the other hand backbone let you write code with more flexibility but less cleaner code, with more orentation to ModelViewController philosophy, you have to incorporate some 3rd plugin to bind data using html5 style coding.

Good thread here: http://stackoverflow...-vs-backbone-js


Otherwise I would like to see some kind of integration with yii in an extension or module or even in core. :D
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users