Wiki

Displaying 401-410 of 784 result(s).

Setting static modules' properties in config

Created 4 years ago by Alexander PalamarchukTips0 comments – viewed 8,196 times – ( +2 / -2 ) – version 1.1
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
tags: config, module

Making friends' configs, DB credentials and paths with version control

Created 4 years ago by Alexander PalamarchukTips1 comment – viewed 7,440 times – ( +2 / -1 ) – version 1.1
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config

Hyphenation of routes in URL management

Created 4 years ago by qiangHow-tos6 comments – viewed 23,997 times – ( +19 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

How to display static pages in Yii with database content?

Created 4 years ago by yasenTutorials6 comments – viewed 28,312 times – ( +11 ) – version 1.1
To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take:

simple CSV export

Created 4 years ago by bluyellHow-tos6 comments – viewed 28,053 times – ( +4 / -1 ) – version 1.1
tags: csv, excel, export

Serial Numbers (item counts) in GridView

Created 4 years ago by PeRoChAkHow-tos3 comments – viewed 9,756 times – ( +1 ) – version 1.1
Sometime we need to display numbers of items per page with their counting as a serial number.

A simple go back button widget

Created 4 years ago by CTalaHow-tos7 comments – viewed 23,330 times – ( +8 / -3 ) – version 1.1
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

[pt-br] O guia de estudos do Yii para iniciantes

Created 4 years ago by Rodrigo CoelhoTips0 comments – viewed 8,631 times – ( +1 ) – version 1.1
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

The complete beginner's study guide for the Yii Framework

Created 4 years ago by Rodrigo CoelhoTips2 comments – viewed 85,313 times – ( +21 ) – version 1.1
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

Using phpseclib with Yii

Created 4 years ago by nkdHow-tos8 comments – viewed 10,191 times – ( +2 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security