Where can I edit the table view in the admin panel? The source of the page indicates the following path:

/assets/969eecfc/css/bootstrap.css 

I find only something similar along this path.

 web->assets->969eecfc->css->bootstrap.css 

But when I edit something, there is no change. I delete everything in the file, I clean cookies - there is no effect. Where to find the desired .css file?

  • You are trying to edit and delete temporary yii2 files. This does not lead to any result, because these files are re-loaded from the network under new names in case of changes and deletions. You need to create your css file and edit everything in it. - Al Mr
  • How to do it right? Create a copy of bootstrap.css in your view / admin / css folder? But how then to connect this file instead of the current one? - Artem

1 answer 1

It depends on your pattern. If Basic, then make changes to web / css / site.css, if Advanced, then backend / web / css / site.css. Also, depending on the degree of confusion may be add. css files that can be written directly in view

  1. Directly in view
  2. In Layout (views / layout in the basic template)
  3. Connected via Asset (the most correct way)
  • Basic template. Made changes to web / css / site.css - there is no effect. Folders backend - no (it means not Advanced). In view-> layout-> admin.php is written: - Artem
  • <? php use yii \ helpers \ Html; use yii \ bootstrap \ Nav; use yii \ bootstrap \ NavBar; use yii \ widgets \ Breadcrumbs; use app \ assets \ AppAsset; AppAsset :: register ($ this); ?> <? php $ this-> beginPage ()?> <! DOCTYPE html> <html lang = "<? = Yii :: $ app-> language?>"> <head> <meta http-equiv = "X -UA-Compatible "content =" IE = edge "> <meta name =" viewport "content =" width = device width, initial-scale = 1 "> <? = Html :: csrfMetaTags ()?> <Title> <? = Html :: encode ($ this-> title)?> </ Title> <? Php $ this-> head ()?> </ Head> <body> <? Php $ this-> endBody ()? > </ body> </ html> <? php $ this-> endPage ()?> - Artem