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

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
Chat in Yii2 is not working
Yii2 theme baseurl
Accessing the table fields with relation yii2
Matrix Report in Yii2

Categories

HOME
maven
image
drivers
nullpointerexception
youtube-dl
jira
jsrender
binary-tree
disassembler
paradox
append
contact
fancybox-3
user-input
floating-action-button
rascal
modx-revolution
google-apps-marketplace
timeout
task
phaser
flask-wtforms
hapi
clearcase-ucm
lombok
django-admin
orleans
mps
dcevm
chromium-embedded
trading
dynamic-featured-image
jaxb2
libssl
nat
iframe-resizer
galsim
protovis
windows-dev-center
android-kernel
mapbox-gl
environment-modules
mapdb
serve
space-complexity
event-driven
az-application-insights
ssjs
awt
executenonquery
azure-application-gateway
youcompleteme
hibernate-tools
paxos
clean-architecture
jxcore
magma
feeds
gcsfuse
deadbolt-2
azure-virtual-network
login-control
ctest
player
fuzzy-search
websitepanel
holder.js
blackberry-10
testng-dataprovider
packagist
uid
freedesktop.org
hsv
marching-cubes
metaclass
pundit
dukescript
interrupted-exception
fluid-dynamics
dundas
device-orientation
fscommand
fpml
internet-connection
html-helper
zend-route
terminfo
navigationservice
didselectrowatindexpath
cdc
gridfs
spring-io
quartz-graphics
ruby-datamapper
sabredav
enterprisedb
drools-planner
cassini-dev
browser-detection
jquery-knob
bluepill
runas
asyncfileupload
transactionscope
whoosh
blackberry-playbook
cxxtest
subviews
zend-translate
icanhaz.js
mozilla-prism
modelstate
ncqrs
substrings
brewmp
libs
microsoft-virtualization
swing-app-framework
nerddinner
aquaticprime
w3wp

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