Yii Framework Forum: Problem wiht yii booster - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem wiht yii booster Load components in base section

#1 User is offline   Ratomir 

  • Newbie
  • Yii
  • Group: Validating
  • Posts: 1
  • Joined: 23-November 14

Posted 07 March 2015 - 05:45 AM

Datepicker working in my module, but on page for register user not working and that page is rendered form site controllers and it is in view folder not in modules. On module page on click the calendar is displayed. It is same thing with Select2 Field.

This is how I load Yii booster in main.php config file.
"aliases" => array(
                   "bootstrap" => realpath(__DIR__ . "/../extension/booster"),
         ),

    // preloading 'log' component
    'preload'=>array('log', "bootstrap"),


    'components'=>array(
            'bootstrap' => array(
            'class' => "ext.booster.components.Booster",
            'responsiveCss'=>true,
            "fontAwesomeCss" => true,
            "minify" => true
        ),


Code is same on bouth page, for register user and in module.
<div class="col-lg-6">
                <?php echo $form->datePickerGroup(
                    $modelReg,
                    'date',
                    array(
                        'widgetOptions' => array(
                            'options' => array(
                                'language' => 'es',
                            ),
                        ),
                        'wrapperHtmlOptions' => array(
                            'class' => 'col-sm-5',
                        ),
                        'hint' => 'Click inside! This is a super cool date field.',
                        'prepend' => '<i class="glyphicon glyphicon-calendar"></i>'
                    )
                ); ?>
            </div>

One jquery 1.11.1 library is load.

This is load scripts and css files from assets folders.
bootstrap.min.css
css/bootstrap-yii.css
css/jquery-ui-bootstrap.css
typeahead/css/typeahead.css
bootstrap-datepicker/css/datepicker3.css
jquery.js
bootstrap/js/bootstrap.min.js
js/bootstrap-noconflict.js
bootbox/bootbox.min.js
notify/notify.min.js
typeahead/js/typeahead.bundle.min.js
bootstrap-datepicker/js/bootstrap-datepicker.min.js
bootstrap-datepicker/js/bootstrap-datepicker-noconflict.js
bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js


Means, how to load yii booster components in base page that are not in the module?
What can be problematic. Every help is welcome. Thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users