S
S
Stepan2015-03-06 14:57:28
Yii
Stepan, 2015-03-06 14:57:28

(YII2) How to load an image from a folder that is not in the project folder?

How to do it ? Is there something like The whole project is in the editor and you need to load pictures from crop into it
Yii::getAlias('@webroot')
7100687ef94840e0ad9f4e833499278a.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Semenko, 2015-03-06
@abler98

Maybe something like this?
Yii::getAlias('@app') . '/../'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question