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

weeks in a year
hi,

i found this snippet on php.net
QuoteFor the week number for weeks starting on Sunday:

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

upload only text files
hi guys i want to upload only text like like (pdf,note pad and ofiice files) so can any one please t

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

same querie, or a new one??
Hi guys,

I'm still working on this drop down list. I've got the actual drop down list to wor

output printing as hexadecmal... XD
Everything works except the calcem call for the totusold and totuprice. The out put shows up as hex.

Get keys and values from an array
Hellow,

I have an array $Data with keys and values. With a foreach I can display all the valu

db entry based on primary key
My "topics" table contains 10 entires
*--------------*
topicid topic
------

How to restrict the display of report variants
Hello All,

I want t know how to restrict the display of report variants.
I mean, whe

Simple code help with redirects
I am trying to figure out a redirect script that detects if the browser is IE 7 and if it does, redi

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