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

What is best way to redirect on login page in yii2
yIi2 generate demo data with migrations
Function inside a model in Yii2
yii2 internal server error when uploaded to live server. What is wrong?
Making Yii2 as SSO server
Yii2, how to use bootstrap less in yii2 project?
Handle runtime exception in yii2 in rbac
How to get list of controller in frontend from backend in Yii2 Advanced Template?
How to insert same data record to multiple table on Yii2
Yii2 radio button validation is not working
keep filters/sort status when changing page and go back
How to open in a new window for a submit button?
How to add google-chart correctly in Yii2?
Multiple relations in Yii 2.0 ActiveRecord Model
controller action with different render view base on contest page
Will mPDF show font Awesome Icons?

Categories

HOME
pdf
minimum-spanning-tree
routes
sqlite-net-extensions
elm
tizen-web-app
infragistics
sqlite3
echarts
directx
cross-validation
esper
kentor-authservices
zend-framework3
apache-cayenne
jplayer
serverless-framework
windows-7-x64
reactive-cocoa
google-pagespeed
web-sql
google-search-api
react-css-modules
fifo
typo3-6.2.x
gitignore
bosh
semantic-versioning
airconsole
phpfreechat
normal-distribution
http-digest
jquery-bootgrid
automake
multilingual
twitch
ansible-playbook
isbn
qcombobox
cubic-spline
user-accounts
strptime
zip4j
winscp-net
domain-model
windows-mobile-6.5
epson
google-cdn
android-fonts
sts-springsourcetoolsuite
google-web-starter-kit
cloudbees
freedesktop.org
natvis
javax.sound.midi
eclipse-clp
metaclass
jmeter-maven-plugin
django-unittest
emailrelay
sysinternals
fluid-dynamics
unity3d-gui
mmc
composite
inmobi
e10s
operator-precedence
dd
qpainter
android-nested-fragment
titanium-modules
websocket4net
castle
has-many-through
system.net.webexception
floating-point-precision
batterylevel
cassini-dev
hosts-file
objective-c-2.0
osql
assembly-loading
deobfuscation
coredump
disclosure
boost-smart-ptr

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile