3217 Posts in 853 Topics by 812 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1002 Views |
-
File & Images Problem

4 June 2009 at 2:16am Last edited: 4 June 2009 2:17am
Hi silverstripers,
<br >
<br >In my Projectpage.php file i have the following code;
<br >
<br >static $has_one = array(
<br > 'Photo1' => 'ProjectImage',
<br > 'Photo2' => 'ProjectImage',
<br > 'Photo3' => 'ProjectImage',
<br > 'Photo4' => 'ProjectImage'
<br >);
<br >
<br >
<br >class ProjectImage extends Image {
<br >
<br >
<br > function generateSmallimage($gd) {
<br > return $gd->croppedResize(60,60);
<br > }
<br >
<br > function generateLarger($gd) {
<br > return $gd->resizeByWidth(420);
<br > }
<br >
<br > function generateLargest($gd) {
<br > return $gd->resizeByWidth(800);
<br > }
<br >
<br >}
<br >
<br >The ProjectImage class is used to upload the image in different sizes.
<br >Now the problem is when i want to go to the Files & Image section i get an error like;
<br >Fatal error: Class 'ProjectImage' not found in C:\xampp\htdocs\bvlb\sapphire\filesystem\Folder.php on line 104
<br >
<br >I understand that there is a problem with the class name. Now my question is, how can i fix this ?
<br >
<br >cheerz,
<br >
<br >Joe -
Re: File & Images Problem

10 June 2009 at 1:35pm
yikes, formatting fail.
Is ProjectImage in it's own php file? It should be called ProjectImage.php. At the moment, it looks like it is part of Projectpage.php, but it isn't clear because of all those break tags
| 1002 Views | ||
|
Page:
1
|
Go to Top |


