newmail,$header); $content = file_get_contents(APP.'/view/news.php'); $footer = file_get_contents(APP.'/view/footer.php'); //$commentform = file_get_contents(APP.'/view/commentform.php'); include_once (APP.'widget/loginformWidget.php'); include_once (APP.'widget/comments.php'); include_once (APP.'widget/right.php'); include_once (APP.'widget/author_main.php'); $header = str_replace('{%loginform%}',$loginform, $header); $content = str_replace('{%blog_right%}',$rightblock, $content); $content = str_replace('{%footer%}',$footer, $content); $error = $app->get_error(); $header = str_replace('{%error%}',$error, $header); if (!empty($error)) $header = str_replace('{%display_error%}','block', $header); else $header = str_replace('{%display_error%}','none', $header); $title = ''; switch ($url->model) { case 'blog': $title = 'БЛОГ'; break; case 'news': $title = 'НОВОСТИ'; break; case 'publications': $title = 'ПУБЛИКАЦИИ'; break; case 'newspost': $title = 'ОТДЕЛ'; break; case 'reviews': $title = 'РЕЦЕНЗИИ'; break; } $content = str_replace('{%title%}',$title, $content); if (!isset($model->debug)) $model->debug = ''; $header = str_replace('{%debug%}','', $header); //404 if (!empty($model->error)) { $content = $app->notfound(); echo $head.$header.$content; die(); } //filter ?>
Fatal error: Call to undefined function widget_author() in /home/klalofu/sites/al2/controller/indexController.php on line 6