Answer the question
In order to leave comments, you need to log in
How to connect yii2 to self-written system? Problem with relative paths?
I managed to connect yii2 to the handwritten system, but there are some small problems.
in the code of the manuscript, I render the template:
echo (new View())->renderFile('@app/views/new/index.php', ['data'=>$dataRender]);
Fatal error: Uncaught exception 'yii\base\InvalidConfigException' with message 'The directory does not exist: /var/www/loc/dream.devnull/assets' in /var/www/loc/m.masterlock.devnull/vendor/yii2/vendor/yiisoft/yii2/web/AssetManager.php:211 Stack trace: #0
Answer the question
In order to leave comments, you need to log in
Just create an assets folder for him wherever he wants or override it in assets.php
www.yiiframework.com/doc-2.0/guide-structure-asset...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question