http://www.yiiframework.com/extension/imagesgallerymanager/
Here’s what I have done so far:
Downloaded extensions and saved them as yii-images and galleryManager in /protected/extensions
Ran the schema setup located in /galleryManager/assets/migrations/schema.mysql.sql (not the migrations)
Made the following changes to config.main
'import'=>array(
'application.models.*',
'application.components.*',
//added below
'ext.galleryManager.models.*',
),
…
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
//added below
'image'=>array(
'class'=>'application.extensions.image.CImageComponent',
// GD or ImageMagick
'driver'=>'GD',
// ImageMagick setup path
//'params'=>array('directory'=>'D:/Program Files/ImageMagick-6.4.8-Q16'),
),
…
'controllerMap' => array(
'gallery'=>array(
'class'=>'ext.galleryManager.GalleryController',
'pageTitle'=>'Gallery administration',
),
),
Added ‘newpage’ to SiteController.php
public function actionNewPage()
{
$this -> render('newpage');
}
/site/newpage.php
added
<?php
// configure and save gallery model
$gallery = new Gallery();
$gallery->name = true;
$gallery->description = true;
$gallery->versions = array(
'small' => array(
'resize' => array(200, null),
),
'medium' => array(
'resize' => array(800, null),
)
);
$gallery->save();
// render widget in view
$this->widget('GalleryManager', array(
'gallery' => $gallery,
));
?>
when I browse to ?r=site/newpage
Error 500
include(GalleryManager.php): failed to open stream: No such file or directory
I have checked and there is a GalleryManager.php I think I have configured the path incorrectly. Any thoughts?
Originally posted in general discussion, moving here, sorry for the confusion
http://www.yiiframework.com/forum/index.php/topic/47859-trouble-setting-up-imagesgallerymanager/