Assets compilation

Hi Guys…i have a question about YII.That Does it support Assets compilation like other frameworks.If yes, how do we do it.

Thanks to all

Regards

akaash

Not out of the box. There are two options:

  1. Use one of extensions.

  2. Use build script + packages.

Many Thanks for the reply…what are the extensions available for this.I am in a process to decide yii framework approach compared to ROR which supports assets compilation.

How do it do it with build script.

Thanks again

Akaash.

There’s no ready to use build script so it’s up to you to choose tools and run these.

What Yii does is mapping scripts to one or more files so when you’re registering scripts called A, B, C, D it will actually include ABCD. So build script should take A, B, C and D process these and put result into D.

As for extensions:

http://www.yiiframework.com/extension/minifyclientscript/

http://www.yiiframework.com/extension/escriptboost/

http://www.yiiframework.com/extension/mt-clientscript/

http://www.yiiframework.com/extension/extendedclientscript/

etc.

Thanks for the reply Sam…

Regards