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

Did you know?Explore Trending and Topic pages for more stories like this.
$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

Displaying values from a SQL count...
Hi,
Easy enough question i just forget the exact method ..
I have ...

Code: //count win

Help building / using array
First - this is a cross-posting, if this is wrong I apologise! What started out as a MySQL query que

add text and number image
hi guys ..

ok see i want the user to add their name and pick a number then click get it and i

CURL XML Request [From C to PHP]
Hi,

I need some help converting this into something that will work with PHP.

Code: #

Shuffle between users ??
I have multiple $users in table. I need to send them $message.

I need to send the next messag

First root of a number
Hi,

I can't find any function in php to give me the first root of a number.
Is there any

Trouble verifying database password
Thankyou to everyone who responded to my last post (I can't find the posting, it has been buried). <

understanding functions and classes
Code: [Select]
class person {
var $name = "Jimmy Goe";

function get_nam

New Login Script
Hi all, i attempted to create a whole new login script witch isnt working for some reason i dont kno

Procedure with variable number of columns
Hi, I have a procedure that looks like this:

PROCEDURE PROC(p_cursor OUT sys_refcurso

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