Yii Framework Forum: Embedded JS (AngularJS) Framework - Yii Framework Forum

Jump to content

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

Embedded JS (AngularJS) Framework

#1 User is offline   Eric Maicon 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 67
  • Joined: 19-December 11
  • Location:GoiĆ¢nia

Posted 21 August 2012 - 11:38 AM

Are there any JS FW included in YII 2.0?

Cause now a days everyone talk a lot about SEO, and YII has the bad costume to put JS in middle of the HTML...

why dont use AngularJS?

Thanks!

=)
ericmaicon.com.br
0

#2 User is offline   wisp 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 192
  • Joined: 04-February 11

Posted 22 August 2012 - 06:03 AM

There's a lot of happening in the JS MVC world.. backbone, spine, ember, etc. I don't think these things should be in the core.
0

#3 User is offline   Roman Solomatin 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 182
  • Joined: 21-October 10
  • Location:Tallinn, Estonia

Posted 23 August 2012 - 10:12 AM

I would like the embedded JS framework to be pluggable or interchangeable with your own JS files.

For example, if I wish to use my own jQuery libraries (version upgrades, bugfixes, my own modifications) instead of the framework's core JS files.
0

#4 User is offline   GoofyX 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 167
  • Joined: 15-April 09
  • Location:Thessaloniki, Greece

Posted 23 August 2012 - 04:26 PM

View PostRoman Solomatin, on 23 August 2012 - 10:12 AM, said:

I would like the embedded JS framework to be pluggable or interchangeable with your own JS files.

For example, if I wish to use my own jQuery libraries (version upgrades, bugfixes, my own modifications) instead of the framework's core JS files.


What's wrong with using the clientScript object to embed your own versions of JS files?


Regarding versions, each new Yii release always includes the latest stable jQuery and jQuery UI versions, the developers always take care of updating them.
... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain...
0

#5 User is offline   bennouna 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,166
  • Joined: 05-January 12
  • Location:Morocco

Posted 23 August 2012 - 04:51 PM

View PostRoman Solomatin, on 23 August 2012 - 10:12 AM, said:

I would like the embedded JS framework to be pluggable or interchangeable with your own JS files.

For example, if I wish to use my own jQuery libraries (version upgrades, bugfixes, my own modifications) instead of the framework's core JS files.


It's already feasible. Just put 'scriptMap'=>false for any script / css file you don't like, and include the files you want. You can even handle them in a parallel assets folder.
0

#6 User is offline   Jaggi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 90
  • Joined: 05-September 11

Posted 24 August 2012 - 10:16 AM

there's already been talk about moving the core JS into a package so it can be updated independently of yii.
See my development site @ www.CodeTheInter.net (BETA)

Posted Image Posted Image

Quote

If you make it idiot proof, they'll build a better idiot
1

#7 User is offline   Roman Solomatin 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 182
  • Joined: 21-October 10
  • Location:Tallinn, Estonia

Posted 24 August 2012 - 03:57 PM

View PostJaggi, on 24 August 2012 - 10:16 AM, said:

there's already been talk about moving the core JS into a package so it can be updated independently of yii.

Ah, yes, this is very good news. Thank you.
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