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

Yii2 - Search exact value and return result in detailview
404 Not Found in dependent textbox in select2 widget in yii2
yii2 DatePicker widget error
Filter data with kartik Select2 widget in gridview
Create behavior in yii2
Yii2 restricting access to RBAC Module itself
Steps to send mail using sendgrid mailer function in yii2?
Cannot install packages via composer in yii2
Yii2 Browser Popup Window Layout duplicating
Yii2 When Validation
How to exclude rendering existing script in DOM in Yii2
Issues with yii2-advanced functional tests
Yii2 get post request value not working
Getting unknown property: frontend\modules\printinvoice\models\Prodfin::productcode
Google recaptcha validation in yii2 always fails
Yii2 ActiveFormAsset dependencies

Categories

HOME
ionic-framework
image
atom-editor
hook
fluentd
dictionary
lodash
sd-card
setup-deployment
analysis
cmd
tizen-web-app
ip
google-project-tango
echarts
swagger-ui
contact
python-unittest
facebook-php-sdk
vifm
etl
uitypeeditor
workload-scheduler
google-static-maps
reactcsstransitiongroup
visjs
physics-engine
ehcache
one-to-many
vlsi
sparse-matrix
cas
dynamic-featured-image
poltergeist
entitlements
minitab
facebook-apps
bluestacks
semantic-versioning
lxd
rotational-matrices
amazon-kinesis-kpl
force-layout
http-digest
scaffold
reportbuilder
hue
eclipse-scout
grid.mvc
janrain
total-commander
galleria
dotcover
atomicity
pebble-watch
tactic
magma
capacity
orthogonal
google-cdn
log4c
url-masking
py2app
disque
hill-climbing
nessus
energy
phpcas
historian
jfugue
reactive-banana
iis-arr
embedded-code
cakephp-3.1
responsive-images
interrupted-exception
remobjects
pretty-print
umbraco6
geonetwork
typekit
xc16
system.net.webexception
comexception
stxxl
uv-mapping
ccss
opcache
ftps
eventual-consistency
delphi-6
angularjs-controller
libstdc++
newtonscript
getmessage
regsvr32
vdsp
cinema-4d
self-extracting
appendto
nhibernate.search
thunderbird-lightning
user-friendly
eqatec
anti-piracy
gacutil
private-members
defensive-programming
lzh

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