D
D
des1roer2015-05-18 09:02:16
Yii
des1roer, 2015-05-18 09:02:16

Yii connect jquery after bootstrap.js?

I don’t understand where in the project there is a section responsible for the order of connecting js files
layouts/main.php

<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <?php
        $assetsDir = Yii::getPathOfAlias('ext.heart.views.css');
        $assets = Yii::app()->assetManager->publish($assetsDir);
        $cs = Yii::app()->clientScript;
        $cs->registerCssFile($assets . '/main.css');
        ?>
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

yii 1.1.16

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Volegov, 2015-05-18
@EagleMoor

For Yii2
There, look at the connected classes, how they are connected. I think you will understand
www.yiiframework.com/doc-2.0/guide-structure-asset...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question