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

Set Dropdown list width in yii2
Yii2 api username password validation
Object of class Closure could not be converted to string
Yii2 check if user is loggedin in yii2
Can not use composer for installing amnah user for yii2
What happens if we reuse “yii init” in same project folder
How to request data used post method from a simple html page to yii2 applicaion
Display time based on country in yii2
How to deleteAll() records which has a foreign key relationship with other table
How to save selected data from checkbox to database
How fix formatter spellot
Conditional validation if input field is empty or not?
Remove Dollar sign from Column value(Indian Currency) Yii2 kartik gridview
upload html input file in yii2
how to run action of frontend controller from backend in yii2
SqlDataProvider filter

Categories

HOME
magnific-popup
dictionary
nullpointerexception
plot
raspberry-pi
react-router
razor
youtube-api-v3
twitter-bootstrap-4
ojdbc
onelogin
android-youtube-api
session-variables
spring-kafka
nstableview
postgres-xl
windows-azure-storage
leiningen
decimal
try-catch
iolanguage
vaadin7
fatal-error
nodatime
intentfilter
ehcache
css-animations
wkwebview
extjs5
tdd
jspm
c++-amp
ecto
preg-match-all
xquery-3.0
webtest
accelerate-framework
rotational-matrices
y86
hexo
lto
space-complexity
objectlistview
unobtrusive-validation
cookiecutter-django
tasker
android-tabhost
eclipse-scout
avro4s
node-gyp
no-www
modelmapper
apache-fop
atomicity
pango
pubmed
rails-routing
jlink
tactic
namecoin
arrow-keys
vtigercrm
chord-diagram
ableton-live
passport-google-oauth
ado.net-entity-data-model
login-control
gstreamer-0.10
prerequisites
fouc
jqgrid-formatter
kcachegrind
angular-leaflet-directive
myo
apache-commons-fileupload
nsight
dundas
openexr
mesa
typeof
dml
rebol3
yorick
undefined-reference
dealloc
monomac
page-layout
cdc
flashvars
path-separator
eclipse-templates
fireworks
ecl
sproutcore-2
firefox-5
virtual-functions
nerddinner
w3wp
geneva-server
wsdl.exe

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile