Jump to content

Class not found error


KeithStephens803

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/192543-class-not-found-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.