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

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
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

Categories

HOME
osgi
netbeans
dictionary
homebrew
read-eval-print-loop
rsyslog
binary-tree
win32gui
retrofit
alpha
flyway4
cross-validation
slick-slider
ssl-client-authentication
rascal
qt-creator
try-catch
reactive-cocoa
pythonanywhere
google-cloud-speech
firefox-webextensions
predix
jasonette
errorlevel
arabic
devops
jndi
cas
apache-commons-io
bootstrap-duallistbox
tooltipster
unboundid
winrt-xaml-toolkit
grails-3.1
framemaker
vsts-build-task
phpfreechat
mpmediaquery
picasso
plsql-psp
bitbucket-pipelines
swift3.0.2
c11
gzipstream
estimote
gpx
segment
scorm
azure-application-gateway
paxos
ionicons
yii2-extension
elgg
darcs
sqldf
query-performance
radtreelist
ado.net-entity-data-model
url-masking
mikroc
pcf
qpid
python-stackless
wapiti
separator
comobject
rgeo
sonarqube5.1.2
clipperlib
fscommand
operator-precedence
fluentautomation
system.net.webexception
transcoding
resty-gwt
jsctypes
coverflow
dotnetnuke-5
jplaton
wsdl-2.0
selected
chuck
libstdc++
dsn
newtonscript
reddot
semantic-diff
bigcouch
boost-filesystem
coredump
web-application-design
perfect-hash
fixed-width
user-friendly
sef
avatar
yagni

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