Open gharach opened 8 years ago
This problem is already discribed and solution already exists
yes , but I dont wanna change httpd.conf file , what should I do now?
It didn't worked even after changing the httpd.conf file !
The workaround is to change line 14 in vendor/noumo/easyii/helpers/Upload.php like so
public static $UPLOADS_DIR = '../{projectName}/uploads';
@JDL747 Thank U
@JDL747 This worked for me Thank you
@barakaPBM this CMS seems not to be maintained anymore, I recommend this one https://luya.io/
$asset = \app\assets\AppAsset::register($this);
Html::img($asset->baseUrl . '/images/pic_logo_ua.png', ['alt' => 'logo'])
thx ^_^
after I installed easyiicms in localhost image did'nt show in any pages!
but when I modified core image helper of yii framework in the BaseHtml.php file with these line all image loaded
public static function img($src, $options = []) { $options['src'] = Url::toRoate($src); if (!isset($options['alt'])) { $options['alt'] = ''; } return static::tag('img', '', $options); }
as you can see I change first line of function img and replace Url:to($scr) with Url::toRoate and images load correctly then . as changing yii core is not a good solution what should I do ??