Yii Framework Forum: [Resolvido] Problema Com Extensões - Yii Framework Forum

Jump to content

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

[Resolvido] Problema Com Extensões Rate Topic: -----

#1 User is offline   lucas rocha br 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 19-November 12

Posted 29 November 2012 - 08:14 AM

Estou tentando usar o fancybox baixado aqui mesmo no site do yii...
Fiz como o indicado e extrai a pasta fancybox para /protected/extensions/, mas na hora de usar:

$this->widget('não.sei.que.merda.escrever.aqui', array(
            'target'=>'a#fancy-link',
            'config'=>array(),));


Já tentei 'ext.fancybox.EFancyBox', 'extensions.fancybox.EFancyBox', 'application.extensions.fancybox.EFancyBox', 'fancybox.EFancyBox'
e sempre recebo erros do tipo:
O alias "ext.fancybox.EFancyBox" é inválido. Assegure-se de que ele aponta para um arquivo PHP existente.
0

#2 User is offline   Allan Freitas 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 08-November 12
  • Location:Guarapari-ES - Brazil

Posted 29 November 2012 - 08:49 AM

Lucas, se colocou dentro de "protected/extensions"
deveria ser "application.extensions.fancybox.EFancyBox"

O caminho:
"application.extensions.fancybox.EFancyBox"
é traduzido pelo Yii assim:
"protected/extensions/fancybox/EFancyBox.php"

Qual a versão do Yii e do Plugin "http://www.yiiframework.com/extension/fancybox/"
você está usando?
0

#3 User is offline   lucas rocha br 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 19-November 12

Posted 29 November 2012 - 09:05 AM

View PostAllan Freitas, on 29 November 2012 - 08:49 AM, said:

Lucas, se colocou dentro de "protected/extensions"
deveria ser "application.extensions.fancybox.EFancyBox"

O caminho:
"application.extensions.fancybox.EFancyBox"
é traduzido pelo Yii assim:
"protected/extensions/fancybox/EFancyBox.php"

Qual a versão do Yii e do Plugin "http://www.yiiframework.com/extension/fancybox/"
você está usando?


Acabei de baixar o plugin e o Yii é 1.1.12, baixei o yii-bootstrap e tá dando o mesmo problema:

O alias "application.extensions.bootstrap.components.Bootstrap" é inválido. Assegure-se de que ele aponta para um arquivo PHP existente.


minha pasta extensions:
lucas@debian:~$ ls -R /var/www/atelier9/protected/extensions/
/var/www/atelier9/protected/extensions/:
bootstrap  fancybox

/var/www/atelier9/protected/extensions/bootstrap:
assets  components  gii  lib  LICENSE.txt  widgets

/var/www/atelier9/protected/extensions/bootstrap/assets:
css  img  js  less

/var/www/atelier9/protected/extensions/bootstrap/assets/css:
bootstrap.css      bootstrap-responsive.css      bootstrap-yii.css
bootstrap.min.css  bootstrap-responsive.min.css

/var/www/atelier9/protected/extensions/bootstrap/assets/img:
glyphicons-halflings.png  glyphicons-halflings-white.png  loading.gif

/var/www/atelier9/protected/extensions/bootstrap/assets/js:
bootstrap.js  bootstrap.min.js

/var/www/atelier9/protected/extensions/bootstrap/assets/less:
bootstrap-yii.less

/var/www/atelier9/protected/extensions/bootstrap/components:
Bootstrap.php

/var/www/atelier9/protected/extensions/bootstrap/gii:
bootstrap

/var/www/atelier9/protected/extensions/bootstrap/gii/bootstrap:
BootstrapCode.php  BootstrapGenerator.php  templates  views

/var/www/atelier9/protected/extensions/bootstrap/gii/bootstrap/templates:
default

/var/www/atelier9/protected/extensions/bootstrap/gii/bootstrap/templates/default:
admin.php       create.php  index.php    update.php  view.php
controller.php  _form.php   _search.php  _view.php

/var/www/atelier9/protected/extensions/bootstrap/gii/bootstrap/views:
index.php

/var/www/atelier9/protected/extensions/bootstrap/lib:
bootstrap

/var/www/atelier9/protected/extensions/bootstrap/lib/bootstrap:
img  js  less  LICENSE  README.md

/var/www/atelier9/protected/extensions/bootstrap/lib/bootstrap/img:
glyphicons-halflings.png  glyphicons-halflings-white.png

/var/www/atelier9/protected/extensions/bootstrap/lib/bootstrap/js:
bootstrap-affix.js     bootstrap-dropdown.js   bootstrap-tooltip.js
bootstrap-alert.js     bootstrap-modal.js      bootstrap-transition.js
bootstrap-button.js    bootstrap-popover.js    bootstrap-typeahead.js
bootstrap-carousel.js  bootstrap-scrollspy.js  tests
bootstrap-collapse.js  bootstrap-tab.js

/var/www/atelier9/protected/extensions/bootstrap/lib/bootstrap/js/tests:
index.html  phantom.js  server.js  unit  vendor

/var/www/atelier9/protected/extensions/bootstrap/lib/bootstrap/js/tests/unit:
bootstrap-affix.js     bootstrap-dropdown.js   bootstrap-tab.js
bootstrap-alert.js     bootstrap-modal.js      bootstrap-tooltip.js
bootstrap-button.js    bootstrap-phantom.js    bootstrap-transition.js
bootstrap-carousel.js  bootstrap-popover.js    bootstrap-typeahead.js
bootstrap-collapse.js  bootstrap-scrollspy.js

/var/www/atelier9/protected/extensions/bootstrap/lib/bootstrap/js/tests/vendor:
jquery.js  qunit.css  qunit.js

/var/www/atelier9/protected/extensions/bootstrap/lib/bootstrap/less:
accordion.less             pager.less
alerts.less                pagination.less
bootstrap.less             popovers.less
breadcrumbs.less           progress-bars.less
button-groups.less         reset.less
buttons.less               responsive-1200px-min.less
carousel.less              responsive-767px-max.less
close.less                 responsive-768px-979px.less
code.less                  responsive.less
component-animations.less  responsive-navbar.less
dropdowns.less             responsive-utilities.less
forms.less                 scaffolding.less
grid.less                  sprites.less
hero-unit.less             tables.less
labels-badges.less         tests
layouts.less               thumbnails.less
media.less                 tooltip.less
mixins.less                type.less
modals.less                utilities.less
navbar.less                variables.less
navs.less                  wells.less

/var/www/atelier9/protected/extensions/bootstrap/lib/bootstrap/less/tests:
buttons.html   css-tests.html  forms-responsive.html  navbar.html
css-tests.css  forms.html      navbar-fixed-top.html  navbar-static-top.html

/var/www/atelier9/protected/extensions/bootstrap/widgets:
input               TbButtonGroup.php  TbGridView.php  TbPager.php
TbActiveForm.php    TbButton.php       TbHeroUnit.php  TbProgress.php
TbAlert.php         TbCarousel.php     TbLabel.php     TbScrollSpy.php
TbBadge.php         TbCollapse.php     TbListView.php  TbTabs.php
TbBaseMenu.php      TbDataColumn.php   TbMenu.php      TbThumbnails.php
TbBreadcrumbs.php   TbDetailView.php   TbModal.php     TbTypeahead.php
TbButtonColumn.php  TbDropdown.php     TbNavbar.php

/var/www/atelier9/protected/extensions/bootstrap/widgets/input:
TbInputHorizontal.php  TbInput.php        TbInputVertical.php
TbInputInline.php      TbInputSearch.php

/var/www/atelier9/protected/extensions/fancybox:
assets  EFancyBox.php  _notes

/var/www/atelier9/protected/extensions/fancybox/assets:
blank.gif            fancy_shadow_ne.png   fancy_title_over.png
fancybox.png         fancy_shadow_n.png    fancy_title_right.png
fancybox-x.png       fancy_shadow_nw.png   jquery.easing-1.3.pack.js
fancybox-y.png       fancy_shadow_se.png   jquery.fancybox-1.3.4.css
fancy_close.png      fancy_shadow_s.png    jquery.fancybox-1.3.4.js
fancy_loading.png    fancy_shadow_sw.png   jquery.fancybox-1.3.4.pack.js
fancy_nav_left.png   fancy_shadow_w.png    jquery.mousewheel-3.0.4.pack.js
fancy_nav_right.png  fancy_title_left.png  _notes
fancy_shadow_e.png   fancy_title_main.png

/var/www/atelier9/protected/extensions/fancybox/assets/_notes:
dwsync.xml

/var/www/atelier9/protected/extensions/fancybox/_notes:
dwsync.xml


0

#4 User is offline   Allan Freitas 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 08-November 12
  • Location:Guarapari-ES - Brazil

Posted 29 November 2012 - 10:50 AM

como está no linux, tenta dar um chmod 777 na pasta de extensões só para ver se não é nada relacionado à permissões :D

Já tive problemas, não com o Yii, mas com outras bibliotecas por isso, não encontra porque o "processo" não tem permissão para ver o arquivo ou abrir que seja.

Fica a Dica...
1

#5 User is offline   lucas rocha br 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 19-November 12

Posted 29 November 2012 - 11:17 AM

View PostAllan Freitas, on 29 November 2012 - 10:50 AM, said:

como está no linux, tenta dar um chmod 777 na pasta de extensões só para ver se não é nada relacionado à permissões :D

Já tive problemas, não com o Yii, mas com outras bibliotecas por isso, não encontra porque o "processo" não tem permissão para ver o arquivo ou abrir que seja.

Fica a Dica...



Na mosca! muito obrigado Allan!
1

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