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

very easy question about SQL info
Hello,
I think that I have a very easy question.
I know how to create a form using php SQL and

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

Calander layout
Hi i know this sounds like a simple question but i cant find the answer to it anywhere i have added

Help please - How to validate from 2 possible answers
Hi

I hope somebody can help me with what will probably be really simple, I'm pulling my hair

How to add advertisment on top of videos
Hello,
I was told that i should find the answer for this problem in this forums.
I searched a

url- go to webpage
i have an input text field and submit button.

how do i make the url entered into the textfiel

Extending Exception to contain method name
I was wondering, if there's a way to extend Exception in such a way, that it would contain name of a

add to sql result
ok see rite now my sites hit counter is counted from the mysql visitor log i need to clear it aft

Storing Values taken from a DB...
Using this code it will generate a short list from my database

<?php
mysql_connect

Search function
I am looking for some guidance from the experts.

I am trying to create a search function. It

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