Wiki articles

Showing 21-40 of 650 items.

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

Created 4 years ago by le_top, updated 4 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: 9 623 times
Version: 1.1
Category: How-tos

Database driven Cmenu

Created 8 years ago by twisted1919, updated 8 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: 28 926 times
Version: 1.1
Category: How-tos
1 0
6 followers
Viewed: 23 011 times
Version: 1.1
Category: Tips

How to make customizable Db Table prefixes using ActiveRecord

Created 10 years ago by killermonk, updated 10 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: 19 455 times
Version: 1.1
Category: Tutorials
Tags:

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

Created 8 years ago by c@cba, updated 8 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: 14 869 times
Version: 1.1
Category: How-tos

Collaborative software with git

Created 8 years ago by sensorario, updated 8 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: 10 625 times
Version: 1.1
Category: Tutorials

Using the configuration file, explain what can be configured.

Created 10 years ago by atrandafir, updated 7 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
15 followers
Viewed: 75 724 times
Version: 1.1
Category: Tutorials
Tags:

Multi Data Provider

Created 6 years ago by Sharon Lavie, updated 4 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: 13 196 times
Version: 1.1
Category: Tips

Deploy yii on pagoda box

Created 7 years ago by francis ja, updated 7 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: 9 949 times
Version: 1.1
Category: Tutorials

i18n for your model in just 1 line

Created 10 years ago by mintao, updated 9 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: 16 029 times
Version: 1.1
Category: Tutorials
Tags: i18n

Widget Personalizado

Created 7 years ago by Cálcio, updated 5 years ago by Cálcio.

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

6 0
4 followers
Viewed: 9 248 times
Version: 1.1
Category: Tutorials

CMenu widget like bootstrap navbar with submenu

Created 4 years ago by kv4nt, updated 4 years ago by kv4nt.
0 0
1 follower
Viewed: 16 873 times
Version: 1.1
Category: Tutorials

Background task with Ajax

Created 3 years ago by Alexandre Rodichevski, updated 3 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: 18 660 times
Version: 1.1
Category: Tutorials

MVC primer and 5 minute form walkthrough

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

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

8 0
6 followers
Viewed: 23 970 times
Version: 1.1
Category: Tutorials

Yii 1.1.17 Ubuntu AutoInstall Bash Script

Created 3 years ago by Preacher, updated 3 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: 9 234 times
Version: 1.1
Category: Others

Named scope - Get orphan AR without losing primary key

Created 9 years ago by cma, updated 8 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: 7 544 times
Version: 1.1
Category: Tutorials
Tags:

Yiistrap TbHtml::navbarSearchForm

Created 6 years ago by Patrice, updated 5 years ago by CeBe.

Hi all,

0 0
3 followers
Viewed: 12 706 times
Version: 1.1
Category: Tips

Adding Bash Command Completion for Yii Commands

Created 7 years ago by Dustin Oprea, updated 7 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: 11 769 times
Version: 1.1
Category: How-tos
2 0
9 followers
Viewed: 12 100 times
Version: 1.1
Category: Tutorials

Tunneling using SSH in a limited enviroment

Created 6 years ago by nineinchnick, updated 5 years ago by CeBe.

This tutorial describes how to connect to a remote service via tunnel when only most basic software is available on the remote server. It is not directly related to Yii. It could be hovewer useful for web developers working with shared hosting sites with limited access.

1 0
3 followers
Viewed: 11 575 times
Version: all
Category: Others