Wiki articles

Showing 41-60 of 822 items.

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

How to call a default layout for every module and how to work <php echo $content; ?>

Created 10 years ago by Ankit Modi, updated 10 years ago by Ankit Modi.

Hi Friends, Hi Friends, Some common question is difficult to how to create the layout on yii and how to work

0 0
1 follower
Viewed: 40 759 times
Version: Unknown (update)
Category: Tips

Customize your Growl/Alert msg easy and quickly

Created 8 years ago by Scott_Huang, updated 8 years ago by Scott_Huang.

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 15 830 times
Version: 2.0
Category: Tips
1 0
6 followers
Viewed: 64 349 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 889 times
Version: 1.1
Category: Tutorials
Tags:

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Created 8 years ago by Louis Gac, updated 8 years ago by Louis Gac.

Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.

0 0
2 followers
Viewed: 22 251 times
Version: 2.0
Category: Tips

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

Load & Save With Relation

Created 8 years ago by moo.tensai, updated 8 years ago by moo.tensai.

Use this extension : yii2-relation-trait

1 0
2 followers
Viewed: 17 686 times
Version: 2.0
Category: Tips

PHP built-in server integration

Created 8 years ago by Headshaker, updated 8 years ago by Headshaker.

I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)

1 0
3 followers
Viewed: 50 939 times
Version: 2.0
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 855 times
Version: 1.1
Category: Tutorials

Yii2: Query build for complexity SQL

Created 8 years ago by Scott_Huang, updated 8 years ago by Scott_Huang.

As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.

0 0
3 followers
Viewed: 39 045 times
Version: 2.0
Category: Tips

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 696 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 270 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 862 times
Version: 1.1
Category: Tutorials

MySQL migration environment

Created 8 years ago by Fabrizio Caldarelli, updated 8 years ago by Fabrizio Caldarelli.

It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.

0 0
2 followers
Viewed: 12 605 times
Version: 2.0
Category: How-tos

A simple widget - jump2link

Created 8 years ago by Scott_Huang, updated 8 years ago by Scott_Huang.

namespace app\components;

0 0
1 follower
Viewed: 13 137 times
Version: 2.0
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 270 times
Version: 1.1
Category: Tutorials
Tags: i18n

Relational Query - Lazy Loading and Eager Loading in Yii 2.0

Created 8 years ago by softark, updated 4 years ago by samdark.

It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.

10 0
6 followers
Viewed: 55 840 times
Version: 2.0
Category: Tutorials

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 508 times
Version: 1.1
Category: Tutorials

thumbsgen and Kohana Image Library together (extends an extension)

Created 10 years ago by Kostas Apazidis (KonApaz), updated 10 years ago by Kostas Apazidis (KonApaz).

In this wiki I will show you how to extends an extension and/or how can two or more extensions work together.

1 0
1 follower
Viewed: 10 227 times
Version: Unknown (update)
Category: How-tos