Creating An Extension

Hi, everyone. I want to develop an extension.Can I use the Jquery of other person and implement it in my extension as YII extension?? Do I need Copyright? What If I used his JS? Please suggest me.Thanks

Hi,

if you devlope in yii extresion please see it…

http://tariffstreet.com/yii/2012/01/yii-extensions-where-to-put-site-wide-functions/

hope it will be help

Hey Thanks for the reply but I didn’t mean where to put my functions of the extension.

I just want to use JS of another person.Can I do that or not?? Thanks.

The answer is that it depends on the 3rd person’s JS license type. [size=2]You’d have to take the time to dig a bit on the internet about licenses, and probably be focused on open source licenses. [/size]

[size=2]Do a little search on Google for ‘open source licenses’, search on good resources the license that the JS library was licensed with and try to figure if you can bundle it in your code. Most chances is that if your code is going to be open sourced then probably if the JS code is licensed with any ‘standard’ open source license - you’ll be good. But, beware that this is all theoretical talking and “IANAL” (I am not a lawyer…).[/size]

[size=2]

[/size]

[size=2]About licensing your code, I guess that after you’ve researched the topic a bit you could start to sense if you want to limit your code usage or not. I typically license my code with a ‘BSD v2’ (IIRC about its name) which allow for commercial usage of my code. This is in contrast to the GPL family of licenses. I’m not an expert on these. I researched the topic back then and the information is somewhat blurred in my memory at the moment. [/size]

[size=2]

[/size]

[size=2]Good luck with it![/size]

Thank you very much ! I got what you mean and I’m not publishing that extension and only use for my learning.

For your learning? and you’re going to make no direct profit on it? So its either that officially you could use that JS code with no problem (but I remind that IANAL…) or, you could use it and no one will ever know about it or have a reason to investigate it, so why bother even checking this?

Haha :lol: yeah.You’re right.Thanks so much.