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:
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:
ive allso tried Yii::setPathOfAlias(‘public_images’, ‘/public_html/images/’);
Anyone care to tell me where i stepped wrong?
The above code would save the image in webroot folder itself.
The above code will save the image in webroot/images folder.
that is an improvement on the code. But i cant seem to work out how thats helpfull to my actual problem
Anyone have any sulution on saving an image in folders behind the webroot and application?
Kindly check that whether the following is helpful to you.
I hope there may be better and simpler solution exists.
Now I have two applications(yii) in my localhost.
Now we want to save images from application boost into a folder residing in application nivas.
That means we want to save in /var/www/nivas/images.
The following is the controller logic in boost.
public function actionUpload()
foreach($files as $file)
I hope I helped a bit.