Wiki articles

Showing 21-40 of 651 items.

How to log context information to logger (session id, user, ...)

Created 14 years ago by olafure, updated 11 years ago by ajsharma.

Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.

2 0
5 followers
Viewed: 24 286 times
Version: 1.1
Category: Tutorials
Tags: Logging

Relation scope to test existence of related records ("EXISTS")

Created 9 years ago by le_top, updated 8 years ago by le_top.

When one needs to select a record in a table that do not have related records through a relation, it is generally suggested to use a subquery. Personnaly, I prefer a high level approach, and I have a method to do it with scopes.

1 0
2 followers
Viewed: 13 802 times
Version: 1.1
Category: How-tos

Database driven Cmenu

Created 12 years ago by twisted1919, updated 12 years ago by twisted1919.

This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.

12 0
17 followers
Viewed: 37 064 times
Version: 1.1
Category: How-tos
1 0
6 followers
Viewed: 64 411 times
Version: 1.1
Category: Tips

How to make customizable Db Table prefixes using ActiveRecord

Created 14 years ago by killermonk, updated 14 years ago by killermonk.

Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.

0 0
1 follower
Viewed: 23 964 times
Version: 1.1
Category: Tutorials
Tags:

How to obtain a grammatically correct translation of the model name in giix-generated view files

Created 12 years ago by c@cba, updated 12 years ago by c@cba.

The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) .
But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

4 0
1 follower
Viewed: 19 185 times
Version: 1.1
Category: How-tos

Collaborative software with git

Created 12 years ago by sensorario, updated 12 years ago by Maurizio Domba Cerin.

The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.

9 0
9 followers
Viewed: 13 893 times
Version: 1.1
Category: Tutorials

Using the configuration file, explain what can be configured.

Created 14 years ago by atrandafir, updated 11 years ago by Yang He.

The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.

17 0
14 followers
Viewed: 90 854 times
Version: 1.1
Category: Tutorials
Tags:

Multi Data Provider

Created 10 years ago by Sharon Lavie, updated 8 years ago by Sharon Lavie.

Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

1 0
4 followers
Viewed: 18 315 times
Version: 1.1
Category: Tips

Deploy yii on pagoda box

Created 12 years ago by francis ja, updated 11 years ago by francis ja.

pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command

4 0
5 followers
Viewed: 11 923 times
Version: 1.1
Category: Tutorials

i18n for your model in just 1 line

Created 14 years ago by mintao, updated 13 years ago by Orteko.

A simple trick to get the localized version of a model field is to add this little method to your models.

12 0
9 followers
Viewed: 19 331 times
Version: 1.1
Category: Tutorials
Tags: i18n

Widget Personalizado

Created 11 years ago by Cálcio, updated 9 years ago by Cálcio.

$this->render('index', array( 'dataProvider' => $dataProvider, )); `

6 0
4 followers
Viewed: 10 541 times
Version: 1.1
Category: Tutorials

CMenu widget like bootstrap navbar with submenu

Created 8 years ago by kv4nt, updated 8 years ago by kv4nt.
0 0
1 follower
Viewed: 22 847 times
Version: 1.1
Category: Tutorials

Background task with Ajax

Created 8 years ago by Alexandre Rodichevski, updated 8 years ago by Alexandre Rodichevski.

This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.

0 0
1 follower
Viewed: 25 541 times
Version: 1.1
Category: Tutorials

MVC primer and 5 minute form walkthrough

Created 11 years ago by rix.rix., updated 11 years ago by rix.rix..

This tutorial assumes some basic knowledge of Yii and a functional development environment.

8 0
6 followers
Viewed: 29 445 times
Version: 1.1
Category: Tutorials

Yii 1.1.17 Ubuntu AutoInstall Bash Script

Created 7 years ago by Preacher, updated 7 years ago by Preacher.

Just thought I would share this bash script I wrote to help automate a base install of YII on an Ubuntu server. This script does the following:

1 1
1 follower
Viewed: 11 740 times
Version: 1.1
Category: Others

Named scope - Get orphan AR without losing primary key

Created 13 years ago by cma, updated 13 years ago by Steve Friedl.

Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

public function scopeUnused( $useAnd = true )
    {
        $join = " left outer join composed_by j on t.ID = j.ID ";
        $condition = ' j.ID Is Null';

0 0
2 followers
Viewed: 9 378 times
Version: 1.1
Category: Tutorials
Tags:

Yiistrap TbHtml::navbarSearchForm

Created 10 years ago by Patrice, updated 10 years ago by CeBe.

Hi all,

0 0
3 followers
Viewed: 18 362 times
Version: 1.1
Category: Tips

Adding Bash Command Completion for Yii Commands

Created 11 years ago by Dustin Oprea, updated 11 years ago by Dustin Oprea.

This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

3 0
5 followers
Viewed: 14 614 times
Version: 1.1
Category: How-tos
2 0
9 followers
Viewed: 15 014 times
Version: 1.1
Category: Tutorials