Trouble Setting Up Imagesgallerymanager

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/

Hi,

Please remove this line from main.php

         'ext.galleryManager.models.*',

access the widget using following path

ext.galleryManager.GalleryManager

Make sure u have setup for this path D:/Program Files/ImageMagick-6.4.8-Q16

Thanks

chandran nepolean

Thanks chandran, I am now able to see the widget.

Here’s my newpage file for anyone else who might be having similar issues:


<?php

/* @var $this SiteController */


$this->pageTitle=Yii::app()->name . ' - new';


Yii::import('ext.galleryManager.GalleryManager');




// 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,

));


?>

Now when I try to upload a picture I get the following error returned:


Unable to resolve the request 'ajaxUpload'

Any idea on this or should I start a new thread?