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();

//end write


No comments posted yet

Your Answer:

Login to answer
214 Like 54 Dislike
Previous forums Next forums
Other forums


echo "<h1>XML Articles</h1>";


OOP help
okay so i have a class im making it has everything setup i just need to randomize the 2 variables an

AJAX form submit
I recently built a form that submits data to my database with an ajax function that is called throug

Simple Scraper... Weird Output
Okay, maybe I just need a Blue Monster and some sleep, but....

I'm scraping a ringtone site

Help: calling function
Is it possible to call a php function on page close?
If yes, could you explain how and whe

DataTable Help Required
Hi all I am creating an app that utilises and MS Access back end and queries it quite a bit at vario

Schedule editor

I have a question related to Schedule editor.
If we schedule a BLS for every 30

EU VAT Package 2010
Does any one know whether SAP will be developing new reporting functionality due the new VAT rules t

php web service error
hey guys,
I'm working on a project requires the use of web services. I've been trying a few tutor

unserialize help, getting errors
hi all ,
I got a form with 6 fields (2 input and 4 select box), when the page loads one block is

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