Wiki articles

Showing 21-40 of 650 items.

Using Yii Gallery Manager in your Yii 1.x application

Created 4 years ago by Trejder, updated 4 years ago by Trejder.

Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article...

0 0
1 follower
Viewed: 10 157 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by olafure, updated 7 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: 18 711 times
Version: 1.1
Category: Tutorials
Tags: Logging

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 065 times
Version: 1.1
Category: How-tos

Database driven Cmenu

Created 7 years ago by twisted1919, updated 7 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 514 times
Version: 1.1
Category: How-tos
1 0
6 followers
Viewed: 22 281 times
Version: 1.1
Category: Tips

How to make customizable Db Table prefixes using ActiveRecord

Created 9 years ago by killermonk, updated 9 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: 18 773 times
Version: 1.1
Category: Tutorials
Tags:

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

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

Collaborative software with git

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

Using the configuration file, explain what can be configured.

Created 9 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: 73 289 times
Version: 1.1
Category: Tutorials
Tags:

Multi Data Provider

Created 5 years ago by Sharon Lavie, updated 3 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: 12 313 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 597 times
Version: 1.1
Category: Tutorials

i18n for your model in just 1 line

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

Widget Personalizado

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

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

6 0
5 followers
Viewed: 8 980 times
Version: 1.1
Category: Tutorials

CMenu widget like bootstrap navbar with submenu

Created 3 years ago by kv4nt, updated 3 years ago by kv4nt.
0 0
1 follower
Viewed: 15 952 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: 17 628 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 376 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: 8 817 times
Version: 1.1
Category: Others

Named scope - Get orphan AR without losing primary key

Created 8 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 294 times
Version: 1.1
Category: Tutorials
Tags:

Yiistrap TbHtml::navbarSearchForm

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

Hi all,

0 0
3 followers
Viewed: 12 155 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 474 times
Version: 1.1
Category: How-tos