یک جدول با ستون های مشخص شده در دیتابیس ایجاد کنید : تنظیمات کانفیگ هم به شکل زیر :
500unserialize(): Unexpected end of serialized data
Notice: unserialize(): Unexpected end of serialized data in /yii/caching/CCache.php on line 108And Open CCache.php on line no 108.see below code :$value=unserialize($value);Change to :$value=unserialize(base64_decode($value));Its working fine
استفاده از cache در ورژن advanced
هنگامی که شما از کش در ورژن advanced استفاده کنید متوجه می شوید که قسمت های frontend – backend – common از هم جدا هستند و کش تعریف شده در فولدر runtime هر قسمت ذخیره می شود و دسترسی به کش فرانت از بکند و بالعکس وجود ندارد برای این کار می توانید در قسمت…Continue reading استفاده از cache در ورژن advanced
min length rule doesn’t accept message in Yii
min length rule doesn’t accept message in Yii message for min length message for max length
Order by rand() in yii2
Order by rand() in yii2
مدیریت سطح دسترسی بر اساس role_id در Yii
مدیریت سطح دسترسی بر اساس role_id در Yii namespace common\components; در controller
how display gridview with ralation table in yii
how display gridview with ralation table in yii فرض کنید ۲ جدول به نام های question و user دارید. جدول user جدول question می خواهید اطلاعاتی را از جدول question به تفکیک نقش هر کاربر نمایش دهید . به عنوان مثال کاربران نقش نویسنده چه سوالاتی را ثبت کرده اند کاربران با نقش کاربر عادی…Continue reading how display gridview with ralation table in yii
Yii 2.0 How to generate form without form-group
Yii 2.0 How to generate form without form-group هنگام ایجاد یک فرم به وسیله فریم ورک Yii به صورت پیش فرض برای هر field تگ هایی را اضافه می کند که جز template اون فیلد هستند : که در نمایش به این صورت نمایش داده می شود: برای اینکه فقط input and label را نمایش…Continue reading Yii 2.0 How to generate form without form-group
all git commands
all git commands Command line instructions You can also upload existing files from your computer using the instructions below. Git global setup Create a new repository Push an existing folder Push an existing Git repository
/usr/bin/env: ‘php\r’: No such file or directory
/usr/bin/env: ‘php\r’: No such file or directory whene clone new repository and execute below command: but execute ./yii migrate display below error: solution: add php befor command usr/bin/env: ‘php\r’: No such file or directory