Errors of the version 1.32.1
 Posted: 17 Apr 2020, 09:42
Posted: 17 Apr 2020, 09:42Errors of the version 1.32.1
			Discussion of company’s products and Yii framework
https://monoray.net/forum/
 Posted: 17 Apr 2020, 09:42
Posted: 17 Apr 2020, 09:42 Posted: 20 Apr 2020, 12:30
Posted: 20 Apr 2020, 12:30 Posted: 22 Apr 2020, 09:18
Posted: 22 Apr 2020, 09:18 Posted: 28 Apr 2020, 17:32
Posted: 28 Apr 2020, 17:32 Posted: 06 May 2020, 18:13
Posted: 06 May 2020, 18:13if($encode){
    return CHtml::encode(implode($sep, $locationArray));
}
if($encode){
    array_walk($locationArray,
        function (&$item) {
            $item = CHtml::encode($item);
        }
    );
}  Posted: 06 May 2020, 18:14
Posted: 06 May 2020, 18:14public static function getLocationString(Apartment $model, $sep = ', ', $withAddress = false, $encode = true) public static function getLocationString(Apartment $model, $sep = ', ', $withAddress = false, $encode = true)  Posted: 06 May 2020, 18:17
Posted: 06 May 2020, 18:17public static function checkAllowShowAddress()
{
    if (Yii::app()->user->isGuest) {
        $defaultTariffInfo = TariffPlans::getFullTariffInfoById(TariffPlans::DEFAULT_TARIFF_PLAN_ID);
        return $defaultTariffInfo['showAddress'];
    }
    if (Yii::app()->user->checkAccess('apartments_admin')) {
        return true;
    }
    if ($tariffInfo = self::getTariffInfoByUserId(Yii::app()->user->id)) {
        return $tariffInfo['showAddress'];
    }
    return false;
}   Posted: 09 Jun 2020, 17:51
Posted: 09 Jun 2020, 17:51 Posted: 10 Jun 2020, 11:48
Posted: 10 Jun 2020, 11:48