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 Create & use variable with views folder scope
Kartik datepicker extention not working on array input form
Two totally different frontend users in Yii2 advanced
Using implode in gridview yii2
How to upload same file in different folder?
Yii2 change redactor box size
How to search using SearchModel in Yii2?
negation in query condition yii2
yii2 General SQL Server error: Check messages from the SQL Server [208] (severity 16) [(null)]
Yii2 Summernote widget not working
yii2 bootstrap Nav keep parent active when child pointing to different module
Generate data-confirm not working
yii2 check database type (mysql or oracle)
Installing Yii2 - 403 Forbidden page
Data from two function in one column in gridview yii2
Write info message in app.log file using yii2

Categories

HOME
date
pypi
keras
tizen
view
fft
raspberry-pi
objectgears
framework7
leon
icloud
maude-system
visual-studio-cordova
hapi
opentracing
http-status-code-504
nhibernate-envers
google-cloud-speech
plunker
ml
object-detection
dxf
fish
cas
django-storage
nhapi
applozic
maxmind
primitive
quote
librato
gsoap
socialengine
yadcf
calibre
typed.js
avcapturesession
windows-dev-center
xmlreader
picasso
dartium
impersonation
leading-zero
elasticsearch-plugin
broadcastreceiver
g-code
password-encryption
arena-simulation
import-from-excel
thin
google-datalayer
menuitem
rdfs
nstextview
recursive-datastructures
csound
sybase-asa
iso8601
bind9
quartz-composer
angular-strap
word-vba-mac
color-picker
gridpane
httplistener
trash
ctest
clang-static-analyzer
jwplayer7
design-by-contract
photobucket
t4mvc
varargs
map-projections
0xdbe
ibaction
proj4js
jsapi
offloading
applescript-objc
contenttype
poller
monomac
html5-notifications
aqtime
cos
seed
dice
dbproviderfactories
ticoredatasync
osql
spring-portlet-mvc
code-cleanup
libc++
stage
subviews
gamma
getresponsestream
filtered-index
nsviewanimation
mirah
database-management
uimenucontroller
anti-piracy
putchar

Resources

Encrypt Message