Wiki

Sorted by viewsX
Displaying 371-380 of 784 result(s).

Integrating with other frameworks

Created 8 years ago by KJediTutorials4 comments – viewed 21,803 times – ( +5 / -2 ) – version 1.1
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

Simple example for language translation

Created 3 years ago by RKAHow-tos2 comments – viewed 21,800 times – ( +1 / -1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n

Running applications with Docker

Created 2 years ago by schmunkTutorials1 comment – viewed 21,709 times – ( +8 / -1 ) – version 2.0
When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created 3 years ago by Gerhard LiebenbergHow-tos3 comments – viewed 21,593 times – ( +8 / -2 ) – version 1.1
Countries sometimes change their laws pertaining to time zones and daylight saving times. This means that GMT+2 can be a different local time this August compared to last August! It could even be a different date!

Save or Update Multiple related model values in one Tabular input form

Created 3 years ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 21,564 times – ( +1 / -8 ) – version 1.1
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

CGridView and AjaxForm Connect

Created 6 years ago by PinkBrainPlanHow-tos2 comments – viewed 21,557 times – ( +1 / -1 ) – version 1.1
As I'm new to the framework (2 weeks) - I tried to build a functionallity I already use a lot in my old framework (PRADO). This means combining a GridView with a form. And this in one page, what allows you to select a record from the grid and view the values in the same page without jumping to a new page.
tags: Ajax, Form, CGridView

YII2: Create console commands inside a module or extension

Created 2 years ago by MetaCrawlerTutorials5 comments – viewed 21,541 times – ( +4 / -1 ) – version 2.0
Here is a small guide how to get console commands running inside modules & extensions. For this guide I used a fresh yii2 basic application template.
tags: yii2, tutorial, config

How to hide index.php on Microsoft Windows Server with IIS7

Created 4 years ago by GiulianoHow-tos2 comments – viewed 21,475 times – ( +10 / -1 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

Multilanguage and SEO friendly

Created 3 years ago by InterboyHow-tos1 comment – viewed 21,423 times – ( +5 / -1 ) – version 1.1
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:

Using cache in CActiveDataProvider

Created 5 years ago by StammTips7 comments – viewed 21,325 times – ( +21 / -1 ) – version 1.1
First param in CActiveDataProvider could be a string with model name or instance of class. So, you may use CActiveRecord::cache() for cache, but you need set third param to 2, because you should cache 2 queries: counting and get data.