Prolly a fast one for the experienced users.
I have a webapp for my public_html and one for my admin_html, server-root like this:
SERVER
-framework/
-protected/
-admin_prot/
-public_html/
-admin_html/
Separating the backend totally from the frontend.
My problem is when im uploading images in my backend, i cant seem to save them in my frontend.. iv'e tried several variations like:
$model->pic->saveAs(Yii::getPathOfAlias('webroot').'/images/'.$model->pic);
$model->pic->saveAs(Yii::getPathOfAlias('webroot').'/../images/'.$model->pic);
ive allso tried Yii::setPathOfAlias('public_images', '/public_html/images/');
Anyone care to tell me where i stepped wrong?
Appriciate it!

Help













