0

In localhost all seems working but during the export to the website, seems that the BOOTSTRAP Css isn't loaded... http://cra.ivao.ch . This is the code that I inserted on main.php on layouts folder...

Yii 1.1: bootstrap

<?php
    echo Yii::app()->bootstrap->registerAllCss();
    echo Yii::app()->bootstrap->registerCoreScripts();
    ?>

In local all sems working but during the export something isn't called...

This is the main.php for the component loading

'components'=>array(
        'bootstrap'=>array(
        'class'=>'bootstrap.components.Bootstrap',
    ),

1 Answer 1

1

I will assume you are using Yiistrap and if not comment and I will add whatever extension you are using.

Add this line on main.php

<?php Yii::app()->bootstrap->register(); ?>

Sign up to request clarification or add additional context in comments.

4 Comments

I'm Using Yii 1.1: bootstrap .. Added also this line but nothin's changed
Is there any reason that you use that old (unsupported?) YB?
Do you use version from here: cniska.net/yii-bootstrap If yes no need for two lines. Where did you get your YB?
maybe need add 'preload' => array('bootstrap') in config file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.