Wiki articles

Showing 81-100 of 650 items.

pass variables or content block from view file to layout file

Created 6 years ago by yiqing95, updated 6 years ago by Maurizio Domba Cerin.

If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

2 0
6 followers
Viewed: 26 564 times
Version: 1.1
Category: How-tos
2 0
1 follower
Viewed: 12 924 times
Version: 1.1
Category: How-tos
1 3
3 followers
Viewed: 7 031 times
Version: 1.1
Category: How-tos

How to Reuse File Upload Code via Behavior

Created 5 years ago by Ahamed Rifaideen, updated 5 years ago by Ahamed Rifaideen.

hello guys now i am going to show you how to Reuse File Upload Code across multiple projects.

1 0
1 follower
Viewed: 8 522 times
Version: 1.1
Category: How-tos

Generate CTreeview from database table and update a model

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

Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)

1 0
1 follower
Viewed: 9 201 times
Version: 1.1
Category: How-tos

Update related models of a model using listBox and checkBoxList in the form

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

Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

1 0
1 follower
Viewed: 18 622 times
Version: 1.1
Category: How-tos

Insert a model record using CGridview

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

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 13 238 times
Version: 1.1
Category: How-tos

Yii tinymce结合syntaxHighlighter和syntax

Created 8 years ago by Darwin Wen, updated 8 years ago by Darwin Wen.

首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,

1 0
0 follower
Viewed: 10 653 times
Version: 1.1
Category: Tutorials

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created 6 years ago by seb, updated 6 years ago by François Gannaz.

There are several ways to speedup slow unit tests which interact with database:

1 1
3 followers
Viewed: 17 286 times
Version: 1.1
Category: Tips

TimeZone dropDown

Created 6 years ago by Tibor Katelbach, updated 6 years ago by Maurizio Domba Cerin.

I spend a bit of time looking for the this piece of code while building time feature on a site this tutorial also helped Local time zones and locales

3 0
4 followers
Viewed: 11 149 times
Version: 1.1
Category: How-tos

Creating HTML code using Jamboree Panels

Created 6 years ago by bluyell, updated 6 years ago by bluyell.
2 0
2 followers
Viewed: 12 329 times
Version: 1.1
Category: Tutorials

Make an ajax request to another server using JSONP

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

There are cases that you want to make an ajax request to another server and get the results.

1 0
2 followers
Viewed: 10 516 times
Version: 1.1
Category: Tips

Find geolocation info of client through another API

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

This wiki shows how to get the geolocation info of the client using another server API It could be write also as extension but there are a lots of APIs that change the below code So, I wrote the below code that works for one of them (using www.geoplugin.net)

1 0
2 followers
Viewed: 5 624 times
Version: 1.1
Category: How-tos

Insert data from database to another database table

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

According to below wiki we could migrate database schema to another database

1 0
2 followers
Viewed: 9 158 times
Version: 1.1
Category: Tutorials

DB Driven CMenu (Widget)

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

Awhile ago I was trying to find a database driven CMenu system to add to my web applications. This always seemed to me that it would be a lot easier to manage if it where in a database. So the following is the results of that effort:

1 0
1 follower
Viewed: 4 710 times
Version: 1.1
Category: Tutorials

Twitter Bootstrap style Breadcrumbs

Created 6 years ago by junaidatari, updated 6 years ago by junaidatari.

will generate twitter bootstrap styled breadcrumb code:

3 1
4 followers
Viewed: 23 821 times
Version: 1.1
Category: How-tos

Upload Files to Rackspace Cloud Files CDN

Created 6 years ago by StephenMiracle, updated 6 years ago by StephenMiracle.

** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

2 0
3 followers
Viewed: 14 266 times
Version: 1.1
Category: Tutorials

[PT-BR] Proteção Contra Logout CSRF

Created 8 years ago by Rodrigo Coelho, updated 8 years ago by Rodrigo Coelho.

CSRF é o acrônimo para Cross-site request forgery.
CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.

2 1
3 followers
Viewed: 10 166 times
Version: 1.1
Category: Tutorials

How to use EzComponents in Yii

Created 8 years ago by Ehsanjs, updated 7 years ago by samdark.

change your index.php

4 0
6 followers
Viewed: 10 652 times
Version: 1.1
Category: How-tos