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 How to create a globally accessible variable that converts user's id to employee's id
Yii2 POST image to model in API without Yii2 Naming convention
Yii2 HTML purifier
Yii2 pjax & NavBar - links not working
Yii2 Multi-Tenant Architecture - Choose correct database
Send mail on actionCreate
Is it possible to reference an existing ActiveRecord model from the classes generated with Gii?
Yii2 Rbac not able to add new roles
Insert checked rows from a gridview to a table in yii2
how to track changes of relation between two models in yii2
Yii2 get value before save in model
How to prevent malicious file upload?
How can i access Active Record fields in yii2 framework?
Send message over SMTP using Swiftmailer and Yii2
Yii2 Api user validation with query string
Yii2 attempts to re-apply old migration files

Categories

HOME
multithreading
cloud
mockito
smarty
office365api
yahoo-oauth
mvvmcross
directx
medical
facebook-php-sdk
row
etl
iron-router
systemc
seaborn
footer
evopdf
amazonsellercentral
zapier
cx-freeze
jquery-ajaxq
excel-2007
realex-payments-api
java-7
emgucv
android-widget
sqlcipher
opennlp
kannel
phpfox
saas
directx-10
iframe-resizer
fog
caret
framemaker
lxd
language-concepts
y86
bytecode-manipulation
hot-module-replacement
starteam
leading-zero
eclipse-scout
pdf-reactor
nomethoderror
total-commander
modelmapper
qcombobox
convertapi
auto-update
user-accounts
hibernate-tools
errordocument
veracode
kbuild
feeds
qtwebview
akka-cluster
memory-alignment
linode
flutterwave
synchronous
messenger
adxstudio-portals
websitepanel
holder.js
sdf
rvest
apachebench
javax.sound.midi
ios8-today-widget
jmeter-maven-plugin
retina
spidermonkey
citrus-pay
graph-drawing
notify
umbraco6
dia
xc16
asp.net-dynamic-data
file-copying
codeigniter-routing
asp.net-web-api-odata
client-side-templating
html-helper
elliptic-curve
poller
didselectrowatindexpath
jmapviewer
qt-faststart
padarn
xamlparseexception
google-email-migration
automount
online-compilation
adk
pydot
external-accessory
subgurim-maps
cinema-4d
android-sdk-2.1
lang
h.323
asp.net-mvc-areas
.nettiers
libs
ti-dsp
ntvdm.exe

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