where('status >= 0 AND id_region = '.$model->SITE['region'])->order('bdate DESC')->findAll(); // хлебные крошки $model->crumbs = '
Главная

'.$TITLE.'

'; $model->TITLE = $TITLE.'. '.$var->SITE['name_full']; $model->STYLES[] = $model->PATH['http'].'action/media/css/action.css'; $content = $model->viewInclude( $model->PATH['root'] . 'action/templates/v_contests.php', array( 'actions' => $actions, 'socialText' => $socialText, 'model' => $model ) ); // базовый шаблон $template = $model->viewInclude( BASE_V . 'v_index.php', array( 'model' => $model, 'content' => $content ) ); echo $template;