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

Is it possible to assign subdomain to module? For example seller.domain.com to seller module
YII2: bad Request (#400) Unable to verify your data submission?
Yii2 relations with junction table
Yii2\Twig How to insert object with data from database into dropdownList
Trigger Scheduled Events from Yii2
Iam not getting details from user table
Button click yii2
How to authenticate only email during login in yii2?
$enableCsrfValidation = false
How to add a new column to the gridview in yii2?
How to use bitwise in Yii2
Error 504 gateway time-out
How to limit max char on redactor limiter plugin?
How to use the ArrayHelper::multisort() in Yii2
How to pass parameters from view to controller in Yii2
Automatically cut text on length over limiter?

Categories

HOME
date
cloud
openmp
gremlin
google-play
sharepoint-designer
indesign
esper
iggrid
dacpac
google-cloud-spanner
n-gram
fallback
iolanguage
highlight.js
jsdoc
text-rendering
viewport
tokenize
sylius
accessor
wkwebview
firebase-crash-reporting
semantic-analysis
virtualdub
applozic
replaceall
ejabberd-module
instant-messaging
skia
react-chartjs
pdb
siesta-swift
framemaker
openoffice.org
azure-sql-database
sequential
jmonkeyengine
dynamics-crm-2013
c11
ssjs
temporary-files
optix
elmah
google-closure
xml-documentation
worksheet
typescript1.8
powercli
windows-mobile-6.5
python-cryptography
mako
linode
jspdf-autotable
crosswalk-runtime
eventkit
abcpdf9
rotativa
log4c
file-writing
login-control
mongocsharpdriver
blackberry-10
actionbardrawertoggle
rvest
dlna
ptrace
historian
jfugue
kendonumerictextbox
appfabric-cache
createprocessasuser
oberon
lustre
dia
android-nested-fragment
java-metro-framework
markers
responsive-slides
fluentautomation
kgdb
viadeo
prettify
dir
coverflow
odata4j
plasma
enterprisedb
ocunit
delphi-6
cisco-jtapi
word-processor
tridion-worldserver
buildr
semantic-diff
netdna-api
php-parser
gnustep
vdsp
ti-dsp
adrotator
mdac
grid-system
signal-handling
caching-application-block

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