



Александр писал(а):Уже разобрался... =)


$this->layout = '//layouts/inner'; Yii::app()->clientScript->registerScript('search-params-inner-search', $content, CClientScript::POS_HEAD, array(), true); false$isInner = isset($isInner) ? $isInner : 0;
$compact = param("useCompactInnerSearchForm", true);
$loc = (issetModule('location') && param('useLocation', 1)) ? 1 : 0; 
$isInner = isset($isInner) ? $isInner : 0;
$loc = (issetModule('location') && param('useLocation', 1)) ? 1 : 0;
$controllerId = Yii::app()->controller->id;
$actionId = $this->getAction()->getId();
if($controllerId == 'site' && $actionId == 'index') $compact = null;
else $compact = param("useCompactInnerSearchForm", true);
 public function actionLogin() { ... , закинув его в /protected/views/layouts/authoriz
<?php
$this->beginContent('//layouts/main');
?>
    <div class="main-content">
        <div class="main-content-wrapper">
            <?php if(isset($this->breadcrumbs) && $this->breadcrumbs):?>
                <div class="clear"></div>
                    <?php
                        $this->widget('zii.widgets.CBreadcrumbs', array(
                            'links'=>$this->breadcrumbs,
                            'separator' => ' → ',
                        ));
                    ?>
                <div class="clear"></div>
            <?php endif?>
            <?php
                foreach(Yii::app()->user->getFlashes() as $key => $message) {
                    if ($key=='error' || $key == 'success' || $key == 'notice'){
                        echo "<div class='flash-{$key}'>{$message}</div>";
                    }
                }
            ?>
            <?php echo $content; ?>
        </div>
    </div>
<?php $this->endContent(); ?>







REM писал(а):Со слайдером понятно, а если необходимо совсем убрать форму поиска с главной страницы?
Или наоборот оставить только слайдер.



Вернуться в Вопросы и помощь по изменениям
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 9