PDA

View Full Version : سوال: مشکل در این کد !



PHPOnline
سه شنبه 06 خرداد 1393, 22:57 عصر
سلام
بعد از اجرا به خطا بر می خورم ، خطایی که خودم براش نوشتم

فایل index.php



if ( $SiteActive == 1 ){
$Temp->Load("/Templates/".$TemplateName."/index.tpl");

اینم کلاسش




public function Load( $File ) {
if ( empty( $File ) ) {
return FALSE;
}
$Template = @implode( '', @file( $File ) );
if ( !$Template ) {
echo "Could not read the template file!";
return FALSE;
}
$this->tpl .= $Template;
}

موقع اجرا به این خطا کلاس بر می خورم : Could not read the template file