Class not found error


Posted on 16th Feb 2014 07:03 pm by admin

I am getting Class 'index' not found in Eval function:

//write config

$path = dirname(__FILE__).DS.'..'.DS.'paymentclass';

if ( $model->payment_class ) {

if (include_once($path.DS.$model->payment_class )) {
eval( "$_PAYMENT = new ".str_replace('.php', '', $model->payment_class)."();");
}
}else {
include( $path."pcl_payment.php" );
$_PAYMENT = new pcl_payment();
}
$_PAYMENT->write_configuration();

//end write


Why???

No comments posted yet

Your Answer:

Login to answer
214 Like 54 Dislike
Previous forums Next forums
Other forums

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

Search in the PHP Files
have to search asterisk(*) in the php code of the php files .
In the html page one text box

Memory Allocation
Hi folks,
see this ex:

int v=5;
v=v+10;

then what will do the compiler before th

Showing selected item at top of list
Hi,

I've got a list of names which i am fetching from database like this:
$qry = db_query

Text Not Displaying Correctly With PHP:GD
I recently moved servers and since then I have noticed that one line of text is showing weirdly.

values in array being escaped
I would like to submit some values - back to the same form for checking before processing...

Small problem with image resize script
Hi!

I am a little bit new to php and I have an issue installing an image resize script I down

difference between datetimes
($row['totime']-$row['fromtime'])/60

this is giving me 0

example of totime and fromtim

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash