Yii Framework Forum: Trouble Setting Up Imagesgallerymanager - Yii Framework Forum

Jump to content

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

Trouble Setting Up Imagesgallerymanager Rate Topic: -----

#1 User is offline   jriggs 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 02-October 13

Posted 10 October 2013 - 09:51 AM

http://www.yiiframew...gallerymanager/

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.yiiframew...gallerymanager/
0

#2 User is offline   chandran 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 494
  • Joined: 08-October 12
  • Location:Austria

Posted 10 October 2013 - 10:38 AM

View Postjriggs, on 10 October 2013 - 09:51 AM, said:

http://www.yiiframew...gallerymanager/

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.yiiframew...gallerymanager/


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 nepolean

My own extension:
http://www.yiiframew...sion/ejqueryte/

My wiki
http://www.yiiframew...checkboxcolumn/

If it work dont hesitate to click +1 button
0

#3 User is offline   jriggs 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 02-October 13

Posted 10 October 2013 - 12:12 PM

View Postchandran, on 10 October 2013 - 10:38 AM, said:

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?
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