-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advanced template issue #1742
Comments
$config['basePath'] = FRONTEND_DIR_; ? |
define('FRONTEND_DIR', DIR . "/../../../frontend/web/"); it's like path to frontend directory |
You are using |
oh, it was my fault writing this issue, in real script it's correct. |
What is the complete error call stack? |
FRONTEND_DIR looks like /home/primegate/data/www/dev.primegate.ru/frontend/
|
The error message already says it clearly: The directory does not exist: /home/primegate/data/www/dev.primegate.ru/app/web/admin/assets |
but I set the right basePath, why it takes another? |
|
how I can edit @app path? |
|
How I can set it manually with app config? |
[
'components' => [
'assetManager' => [
'basePath' => '...',
]
],
] |
What's the remaining problem?
You don't need to change your code. You just need to create an Apache alias "admin" which points to your backend. Please refer to Apache docs on how to achieve this. |
Hello,
I am using your advanced template for application and I have frontend and backend part.
I set url like backend.site.com, frontend.site.com and I need thing when user opens
frontend.site.com/admin he will see backend.site.com
I create directory admin in frontend/web and add .htaccess with DirectoryIndex index.php
and index.php like this
but I can't see what I need. I've made many changes to this script with directory and all but in all cases I see
The text was updated successfully, but these errors were encountered: