I have two php files in the same directory:
test.tattler.php
class.tattler_stats.php
My test.tattler is supposed to create an object of my tattler_stats but it gives me this error:
Fatal error: Class 'tattler_stats' not found in /.../test.tattler.php on line 4
Code in test.tattler:
<?php
include 'class.tattler_stats.php';
$tattler_test = new tattler_stats( $_REQUEST );
?>
The code in tattler_stats:
function __construct( $_REQUEST )
{
$param = $_REQUEST['menu'];
run();
}
function run()
{
connect();
showMenu( $parm ) ;
//rest of class...