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

Yii 2 Active Query joinWith issue
formatter asDateTime in yii2
yii2 - formatter currency to number
how to delete get checked checkbox in yii2
Yii2,I want to change my url like “aaaa.bbbb.cccc.dddd/app/web” to any name like “example.com” .How can I achieve this
Yii2 create audit record by passing old and newly updated record and comparing the data
Email on Yii2 Advanced
yii2 getting data from two models and presenting it in view
Yii2 captcha image is not displaying
How do you set a textInput to readOnly in Yii2?
Yii2 call another action from my view
How to get auto increment id after save in Yii2
Bitbucket Pipelines config for yii2. Need github token
yii2 switch button that render page with pjax
Pagination position in Yii2
Handling Yii2 in tabular input

Categories

HOME
winforms
pypi
mockito
path-finding
tesseract
webstorm
alfresco
spagobi
sharepoint-designer
twitter-bootstrap-4
ios-charts
esper
user-input
reveal.js
spring-kafka
quickbooks
windows-server-2012
dynamics-crm-online
transformation
ef-migrations
http-status-code-504
emulator
swingx
captiveportal
php-openssl
semantic-analysis
linkerd
web-api-testing
saas
objectanimator
nouislider
iframe-resizer
semantic-versioning
http-get
catalog
stacked
restlet
libvpx
occlusion
android-fingerprint-api
graphenedb
dism
preconditions
eclipse-scout
scorm
dotcover
osx-mavericks
python-webbrowser
boost-preprocessor
bind9
dwscript
orthogonal
blacklist
nested-sets
infix-notation
py2app
autorest
storekit
simplewebrtc
hill-climbing
livequery
pyke
libressl
android-listview
riak-cs
method-parameters
graph-drawing
codeigniter-url
android-nested-fragment
java.util.concurrent
android-imagebutton
relocation
has-many-through
uitouch
navigationservice
elliptic-curve
algebraic-data-types
uv-mapping
ftps
dotnetnuke-5
padarn
hungarian-algorithm
jquery-mobile-dialog
sqlperformance
cassini-dev
armcc
cufon
whoosh
deobfuscation
heartbeat
infobox
krl
actionview
mongomapper
coda-slider
routedevent
preference
commodore
3gp

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