ROOT_FOLDER error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: ROOT_FOLDER error (/showthread.php?tid=21646) |
ROOT_FOLDER error - El Forum - 08-16-2009 [eluser]taju.joseph[/eluser] Hi all, I dont know how silly this error is but i am having a lot of problems with this please help me out. While retrieving Images from the DB I am getting this error. A PHP Error was encountered Severity: Notice Message: Use of undefined constant ROOT_FOLDER - assumed 'ROOT_FOLDER' Filename: helpers/resize_helper.php Line Number: 36 no image many thanks Thank you ROOT_FOLDER error - El Forum - 08-16-2009 [eluser]Dam1an[/eluser] You're going to have to show some code, as my telepathy skills aren't up to scratch But the obvious thing to check is, assuming ROOT_FOLDER should be a constant, is it defined (sounds obvious, but you never know) ROOT_FOLDER error - El Forum - 08-16-2009 [eluser]taju.joseph[/eluser] sure.. her i'm trying to show the image by specifying the uploads folder.. $real_path=ROOT_FOLDER;(This is the declaration) echo resize_img($value,'uploads/contact_image',100,100,array('show_popup'=>true));(Actually the error comes while i use codes like this) ROOT_FOLDER error - El Forum - 08-16-2009 [eluser]Dam1an[/eluser] But where do you define ROOT_FILDER? Cause as far as I know, it's not one of the CI constants ROOT_FOLDER error - El Forum - 08-16-2009 [eluser]taju.joseph[/eluser] Sorry to ask this.. Is it relates to some WAMP configuration issues. Actually i was working fine with this but when i installed WAMP in my new lap this error started. Any clue ROOT_FOLDER error - El Forum - 08-16-2009 [eluser]taju.joseph[/eluser] Sorry its been declared in a helper(resize_helper in this case) |