E
E
Enniack2016-02-09 13:41:27
Yii
Enniack, 2016-02-09 13:41:27

Why does YII incorrectly define a directory?

YII 1.1.14
After transferring the site from hosting to hosting on the main everything is OK, but when moving to other directories -
CException
The theme directory "../protected/themes" does not exist.
And when you change in protected/main
'components' => array(
'themeManager' => array(
'basePath' => '../protected/themes'
),
​​the main one breaks. The project structure is the same as before the transfer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Artemiev, 2016-02-11
@the_mix

If the error is only when transferring to another hosting, it is obvious that due to different apache / nginx settings (underline as necessary).
What does "when moving to other directories" mean? cnc (url rules) enabled? If Apache, then .htaccess on the new hosting is applied (AllowOverride = All)? checked?
Not enough data for a precise answer.
I might randomly suggest using the application path alias "application", instead of the relative basePath.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question