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

Translating propery name of html link
Leaflet extension and Geosearch Directory not found
Yii2 - how to access html files in root folder?
Validate unique value from database in Yii2
Yii2 strtoupper() expects parameter 1 to be string, array given
show each pjax link into each special div
How to give hidden input value to dynamic form fields yii2
Yii2 prettyUrl doesn't work
what a part does bower/bower-asset play in php application such as yii2
Yii2 : how to use deleteAll with two conditions = and NOT IN
Displaying attribute labels instead of attribute names in Yii2 audit trail extension output
yii2 migration, add column, after other one
yii2 ajax form submission: validation response handling
How to create custom column in Yii2 grid view by using other table value
Yii2 - Image upload and resizing,ajax upload support extension
Pagination in dataprovider is not working properly yii2

Categories

HOME
twitter
date
wso2
hook
openmp
kde
json.net
objectgears
sd-card
read-eval-print-loop
setup-deployment
maven-3
leon
microservices
jpeg
ojdbc
facebook-messenger-bot
dax
handsontable
windows-azure-storage
quartz-scheduler
netflix
django-simple-history
reactive-cocoa
kryo
jasonette
errorlevel
ehcache
mustache.php
rundeck
smb
centos6.5
linkerd
msys2
large-file-upload
kendo-datasource
tasklet
sql-server-2012-express
react-chartjs
pim
uiswipegesturerecognizer
accelerate-framework
overlap
xcode-extension
automake
lto
unobtrusive-validation
webdriver-manager
azure-ml
graphenedb
awt
email-templates
avro4s
pdf-reactor
elmah
modelmapper
.net-4.6.2
scorm
parentheses
typescript1.8
nativeapplication
composite-key
cudafy.net
dwscript
deadbolt-2
vmware-tools
rotativa
savon
websitepanel
jwplayer7
disque
sigabrt
photobucket
pervasive-sql
sdhc
metaclass
simple-framework
jqgrid-formatter
wyam
drawbitmap
graph-api-explorer
directoryservices
csquery
jsonpickle
reactfx
mysql-error-1062
quantlib-swig
jplaton
batterylevel
mqx
limejs
unc
multipage
jspinclude
online-compilation
chrono
bigcouch
eclipse-templates
subgurim-maps
infobox
recent-documents
radcombobox
vc90
mtj
w3wp





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