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 to access a field from linked table in dropdown list
yii2 asset folder is not writable by web process
How to create a new input field which would offer values stored in different database table? Yii2
yii2: how to exclude DbTarget info from log?
Yii2 site/page 404 error
Yii2. How to set scenario in dataProvider?
Want to get maximal value, but query doesn't work
How to filter column according to it's name in yii2?
yii2 smarty :Change the filename extension from .tpl to .tpl.php
Yii2 extension: How to declare $sourcePath in assets?
Yii2 Mailchimp Integration
Unable to save model attribute as null?
How to add a placeholder to a dropdown in Yii2?
How to use a custom Controller in yii2?
How to disable one prompt value in yii2 drop-down?
How to set swiftmailer setFrom() to show name and surname instead of email? Yii2

Categories

HOME
sendgrid
cloud
pypi
mfc
electron
twitter-bootstrap-4
callback
ezpublish
append
tomcat6
rascal
etl
zend-framework3
hapi
libtiff
xlsxwriter
pass-by-reference
django-storage
minitab
wtx
facebook-apps
librato
media-queries
react-chartjs
usbserial
lxd
io-redirection
hot-module-replacement
serverside-rendering
hilbert-curve
unobtrusive-validation
graphenedb
nand2tetris
eigenvalue
password-encryption
no-www
turbogears
convertapi
jsch
rails-routing
python-c-api
domain-model
svmlight
nodebb
spring-cache
gnome-shell-extensions
google-cdn
angular-strap
word-vba-mac
static-ip-address
storekit
hover-over
pagerank
cloudbees
cartesian-product
thredds
tarjans-algorithm
browser-bugs
notify
geonetwork
openexr
starcluster
wp-query
undefined-reference
intentservice
gridfs
odata4j
back-stack
pvrtc
hamiltonian-cycle
sublist
errai
semantic-diff
mercurial-server
data-loss
subgurim-maps
cinema-4d
locate
lang
forums
user-friendly
putchar
lzh

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile