Welcome Guest, Not a member yet? Register   Sign In
ROOT_FOLDER error
#1

[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
#2

[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)
#3

[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)
#4

[eluser]Dam1an[/eluser]
But where do you define ROOT_FILDER? Cause as far as I know, it's not one of the CI constants
#5

[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
#6

[eluser]taju.joseph[/eluser]
Sorry its been declared in a helper(resize_helper in this case)




Theme © iAndrew 2016 - Forum software by © MyBB