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

Anti Spam Code Problems
Ok where do i start? Probably by telling you I have very little working knowledge of PHP and that I

Code: $id = mysql_insert_id();
header("Location: ./?view=$id");
Why $id pulling blan

whats wrong with my code please help!!!
this is the error

Warning: mysql_close(): supplied argument is not a valid MySQL-Link res

Blocking video streaming
Hello everyone,

I post a message here because i didn't find any solution yet.
I just finis

Simple PHP/Java Help..
I'm trying to build a little program to do with calculating postage. Unfortunately i haven't

weird problem
last time, i did post a topic concerning why my page sometime will load as blank page when using IE.

Hi for the last week i have been looking for scripts that will upload a photo to a certain folder wh

help me, how to find text on an external html site using PHP
Would anyone know how to search an external html file for a work or phrase ?

I was thinking s

Simple MySQL script is not working
Hey guys,

Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

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
The MySQL server is running with the --read-only option so it cannot execute this statement