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

214 Like 54 Dislike
Previous php-forum Next php-forum
Other php-forum

Change Age automatically
hi guys . im new to php , is it possible to change age value in mysql automatically when year change

Syntax error
hi im having a little trobble with this script
-------------------------------------------------

file_put_contents and createimagefromjpeg
All,
I do somethings and then I have the following code:
file_put_contents('./test/'.$filename

max() problem
I have a while loop to get image names.
Code: $imagequery = mysql_query("SELECT * FROM ad_i

Windows 7
Windows 7 default user account control worries experts. Corporate IT departments should be pleased w

Problems with strings containing
Hey all,

I have encountered something strange in a script. I am trying to write an XML heade

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

Concatenate two strings ???
I have string one $string1 and another $string2.

How to concatenate (add) both of them $str

Multidimensional $_POST
Hello

How to get a single array from array of array (2 - dimension).
For example I have a

Working with popups and such in a class
I've recently started building my applications completely enclosed in classes. I like the fact that

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