Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question