KeithStephens803 Posted February 18, 2010 Share Posted February 18, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.