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

retrieving more than one max key from an array?
so i have an array of 20 numerical values (0-100) that i need to order from highest to lowest and th

Creating XML with php
I need to creat an XML with php and have successfully produced a valid output.
The problem I hav

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

Problem with PHP code- simple contact form
I'm relativily new to PHP; I know HTML and CSS stuff but I have a problem- I have a contact form wit

image upload script not working with png
The basic process of this php code is to take the submitted file, convert it to a small JPG thumbnai

Syntax Help
I'm trying to make a form that edits a php file which contains config settings. I'm using strings t

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

re calling a function without including file
Hi,
i am new to programming in php, i was just checking the wordpress code and found out in the w

How to limit the calls to an API
Hello, in my simple script I call an api which effectively involves me getting an xml file.

H

Weekly Calendar
Hi, I am looking at creating a weekly calendar. The calendar will read from Monday - Sunday. Does an

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