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

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

Mail Script Problems
I have created a PHP mail script. I am having a problem though. In $body i am trying to put two va

Why does my php page download images over and over
Can anybody please explain to me why my php page keeps downloading the images and other items every

I need help on this PHP code
Hi everybody, I made some kind of mistake while editing the code below. As you see, at the 3 row my

A href problem under php
Hello...

I tried to explain the issue in an earlier post.. but was not clear enough....

php global variable
how can we create global variable so we can use its value in any form.. Please give example to

How to replace search button with link?
hi to everbody.
i have a search submit form and button like this :

<form id="f

How to display random record from table?
I have the following code:

Code: <?php
$display_block .= "<input type=

$_FILES array
Ok,

I just started experimenting with PHP today. My goal right now is to have people be able

sendmail code suddenly not working
Hi Guys, I maintain 3 sites (including my own) I use the following code from a french webmaster 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