Yii Framework Forum: Something Wrong With Fancybox ...... - Yii Framework Forum

Jump to content

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

Something Wrong With Fancybox ...... Rate Topic: -----

#1 User is offline   hawk 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 19-January 13

Posted 19 January 2013 - 07:50 AM

CException

Alias "application.modules.admin.extensions.fancybox.EFancyBox" is invalid. Make sure it points to an existing PHP file and the file is readable.

/usr/www/httpd/htdocs/yii/framework/YiiBase.php(316)

304 if($isClass && (class_exists($className,false) || interface_exists($className,false)))
305 return self::$_imports[$alias]=$className;
306
307 if(($path=self::getPathOfAlias($alias))!==false)
308 {
309 if($isClass)
310 {
311 if($forceInclude)
312 {
313 if(is_file($path.'.php'))
314 require($path.'.php');
315 else
316 throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable.',array('{alias}'=>$alias)));
317 self::$_imports[$alias]=$className;
318 }
319 else
320 self::$classMap[$className]=$path.'.php';
321 return $className;
322 }
323 else // a directory
324 {
325 if(self::$_includePaths===null)
326 {
327 self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));
328 if(($pos=array_search('.',self::$_includePaths,true))!==false)

Stack Trace
#0
+
/usr/www/httpd/htdocs/yii/framework/web/CWidgetFactory.php(146): YiiBase::import("application.modules.admin.extensions.fancybox.EFancyBox", true)
#1
+
/usr/www/httpd/htdocs/yii/framework/web/CBaseController.php(146): CWidgetFactory->createWidget(SiteController, "application.modules.admin.extensions.fancybox.EFancyBox", array("target" => "a#fancy-link", "config" => array()))
#2
+
/usr/www/httpd/htdocs/yii/framework/web/CBaseController.php(172): CBaseController->createWidget("application.modules.admin.extensions.fancybox.EFancyBox", array("target" => "a#fancy-link", "config" => array()))
#3

/usr/www/httpd/htdocs/yp/tom/protected/views/site/pages/about.php(22): CBaseController->widget("application.modules.admin.extensions.fancybox.EFancyBox", array("target" => "a#fancy-link", "config" => array()))

17 echo CHtml::link('link text goes here',"#data", array("id"=>"fancy-link"));
18
19 //put fancybox on page
20 $this->widget('application.modules.admin.extensions.fancybox.EFancyBox', array(
21 'target'=>'a#fancy-link',
22 'config'=>array(),));
23 ?>
24
25 //use nested div structure as below
26 <div style="display:none">
27 <div id="data">

#4
+
/usr/www/httpd/htdocs/yii/framework/web/CBaseController.php(126): require("/usr/www/httpd/htdocs/yp/tom/protected/views/site/pages/about.ph...")
#5
+
/usr/www/httpd/htdocs/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/usr/www/httpd/htdocs/yp/tom/protected/views/site/pages/about.ph...", null, true)
#6
+
/usr/www/httpd/htdocs/yii/framework/web/CController.php(869): CBaseController->renderFile("/usr/www/httpd/htdocs/yp/tom/protected/views/site/pages/about.ph...", null, true)
#7
+
/usr/www/httpd/htdocs/yii/framework/web/CController.php(782): CController->renderPartial("pages/about", null, true)
#8
+
/usr/www/httpd/htdocs/yii/framework/web/actions/CViewAction.php(140): CController->render("pages/about")
#9
+
/usr/www/httpd/htdocs/yii/framework/web/actions/CAction.php(76): CViewAction->run()
#10
+
/usr/www/httpd/htdocs/yii/framework/web/CController.php(308): CAction->runWithParams(array("r" => "site/page", "view" => "about"))
#11
+
/usr/www/httpd/htdocs/yii/framework/web/CController.php(286): CController->runAction(CViewAction)
#12
+
/usr/www/httpd/htdocs/yii/framework/web/CController.php(265): CController->runActionWithFilters(CViewAction, array())
#13
+
/usr/www/httpd/htdocs/yii/framework/web/CWebApplication.php(282): CController->run("page")
#14
+
/usr/www/httpd/htdocs/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("site/page")
#15
+
/usr/www/httpd/htdocs/yii/framework/base/CApplication.php(169): CWebApplication->processRequest()
#16

/usr/www/httpd/htdocs/yp/tom/index.php(13): CApplication->run()

08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11
12 require_once($yii);
13 Yii::createWebApplication($config)->run();

2013-01-19 20:50:39 Apache/2.4.2 (Unix) PHP/5.4.4 OpenSSL/0.9.8q Yii Framework/1.1.13
0

#2 User is offline   hawk 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 19-January 13

Posted 19 January 2013 - 07:52 AM

how to use yii's extensions ? :unsure:
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