yii2


Yii2 location from depencies in custom asset


I have a path something like /actions/users/someaction in the frontend and I want to use the Bootstrap-Asset (located in /backend/web/assets/xxxxxx/) from the backend.
So I created an asset called "ActionAsset" with following content:
class ActionAsset extends AssetBundle
{
public $basePath = '#backend';
public $baseUrl = '#web/backend';
public $css = [
'css/external.css',
'css/overwrite-bootstrap.css',
];
public $js = [
];
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BackendBootstrapAsset',
];
}
The included css are just working fine, but the depencies are always saved in /frontend/web/assets/.
My question is (and I really searched for weeks) how to change this location to /backend/web/assets.
Thanks!

Related Links

How can I get Primary Key in Yii 2 crud generator template
Yii2 Console 'Class user does not exist'
Yii2 has many or where
yii2 Framework get items via public variable in menu widget
Yii2 use runAction() within beforeAction method
Yii2-user, dektrium-yii2-user, Yii2 Populate a dropdown in yii2
Yii2: How to start an export programmatically
Getting field value in controller
display setFlash on spesific div
Yii 2 vendor trouble
Yii2 - module login in basic application template
Yii2 and sqldataprovider in inner query, write one aggregating expression per reporting column, 2. In an outer query, build the horizontal sums
Yii2. What is the best practice to manage new messages?
How to load jquery files on header in Yii2?
Getting (not set) when joining a column which has a sum function in yii2
Time is wrong when get datetime in yii2

Categories

HOME
asp.net-core
debugging
react-redux
amortized-analysis
sharepoint-designer
electronics
cakephp-2.5
cross-browser
wamp
node-notifier
medical
fancybox-3
reveal.js
kentor-authservices
correlation
caml
django-simple-history
evopdf
samoa
autocad-plugin
blazemeter
trading
shopware
underflow
spark-jobserver
applozic
elasticsearch-ruby
gsmcomm
srcset
librato
skia
preg-match
nameservers
iframe-resizer
scorm2004
catch-all
amazon-kinesis-kpl
qwerty
dynamics-crm-2013
cookiecutter-django
android-tabhost
fedex
dynamic-reports
vao
flashair
scorm
apple-news
wso2carbon
pnotify
crypt
sqldf
query-performance
word-vba-mac
firmata
heidisql
mongocsharpdriver
storekit
contact-list
react-native-listview
moveit
ubuntu-10.04
qgraphicsview
bluemix-app-scan
goose
intel-fortran
feedback
myo
event-bubbling
iiviewdeckcontroller
pretty-print
skos
lustre
umbraco6
facebook-graph-api-v2.4
operator-precedence
javafx-webengine
article
system.net.webexception
htmlcleaner
imdbpy
multiprocessor
cdc
blending
dbconnection
easy-install
flashvars
delphi-6
clipper
quickdialog
venn-diagram
multipage
netbeans-6.9
punbb
hgsubversion
self-extracting
mongomapper
mysql-error-1005
scripting-languages

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App