Hello …
I install yii2-fancybox without composer because I’m behind a proxy and composer still give me some problems to connect…
I’m using the yii2-advanced and this is what i did…
1- download the yii2-fancybox and put in to
vendor/newerton/fancybox
2- add into vendor/bower/fancybox the file FancyBoxAsset.php
3- download the fancybox source code from fancybox.com/fancybox and put content of the the source folder into
vendor/bower/fancybox/source
4- add this code to the common/config/main.php
(…)
‘extensions’=>array_merge(require(DIR.’/../../vendor/yiisoft/extensions.php’),[
'newerton/fancybox' => [
'name'=>'newerton/fancybox',
'version'=>'dev-master',
'alias'=>[
'@newerton/fancybox'=>_DIR_.'/../../vendor/newerton/fancybox,
],
],
]),
(…)
and that’s how far i get…
If you don’t use the lasted version of fancybox source code you will have some bugs like:
1- $.browser is undefined from source/jquery.fancybox.js
2- F.helpers is undefined from source/helpers/jquery.fancybox-buttons.js
3- F.helpers is undefined from source/helpers/jquery.fancybox-media.js
4- F.helpers is undefined from source/helpers/jquery.fancybox-thumbs.js
5- JQuery(…).fancybox is not a function…
all this bugs are from the code files of the fancybox plugin.
thanks