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 Restful api with multiple models in same controller
Yii2 two DetailView side by side
Error in creating yii2 project with composer
Yii2 modal height issue
How would I test for this line in Codeception
Disable pjax loading on certain buttons inside Pjax container (Yii2)
class not found even when it exits on Yii2
How display Yii2 pagination in GridView widget on and top and bottom part of table?
How to print converted SQL query from yii2 query
Calculate from 3 inputfield in dynamic form yii2
Create pdf in Yii2 using mpdf extension: controller - view code
Kartik file input Post as file name, not as file object
Add class to bootstrap textbox - yii2
Set enablePushState = false on specific urls inside Pjax container (Yii2)
Yii2 select dropdown text
Redirecting on if condition in yii2

Categories

HOME
arduino-uno
gerrit
single-sign-on
cplex
react-router
octobercms
routes
analysis
microservices
frameworks
sqlite3
networkx
android-youtube-api
basic
metatrader4
spring-xd
izpack
modx-revolution
dynamics-crm-online
netflix
opentracing
tostring
google-static-maps
propel
pythonanywhere
ab-testing
lldb
one-hot-encoding
p-value
facet
typo3-6.2.x
saas
procdump
microsoft-chart-controls
directx-10
windows-dev-center
rotational-matrices
normal-distribution
lto
event-driven
twitch
theano.scan
uft-api
leading-zero
greenrobot-eventbus
preconditions
mime
heightmap
modelmapper
sas-jmp
babel-core
youcompleteme
komodoedit
rails-routing
blogengine.net
tizen-native-app
yii2-extension
setter
r-forge
nbconvert
mediaelement
infix-notation
trash
fuzzy-search
gridview-sorting
ubuntu-10.04
essence
testng-dataprovider
packagist
pickadate
pagerank
asp.net5
javax.sound.midi
jms2
teamcity-8.0
lemon
python-3.2
simple-framework
sailfish-os
nsmutabledictionary
block-device
jsonpickle
network-interface
angularjs-ng-click
preferences
flask-cors
comexception
jboss-weld
android-2.2-froyo
typo3-neos
viadeo
c18
geos
sitemesh
ora-00911
gwt-rpc
limejs
lcs
trusted
propertyeditor
nsdatecomponents
gnu-prolog
genshi
infobox
inotifycollectionchanged
filtered-index
zend-tool
brewmp
javap
uimenucontroller
dbisam

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App