Wiki articles

Showing 21-40 of 823 items.

Custom Archive in Blog system

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

Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

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

Logging to Heroku's logs from Yii

Created 11 years ago by aarondfrancis, updated 10 years ago by aarondfrancis.

In order to get your Yii logs into Heroku's logs, you have to work a little bit of magic. You'll need to modify the boot.sh script and add the following two lines: ~~~ touch /app/apache/logs/app_log tail -F /app/apache/logs/app_log & ~~~ This will set up the log and tail it so that when you request "heroku logs", this log is included.

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

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 586 times
Version: Unknown (update)
Category: How-tos

Integrating Yii3 packages into WordPress

Created 6 months ago by Gabriel A. López López, updated 6 months ago by Gabriel A. López López.

I was recently assigned with the task of integrating several extensive forms into a WordPress website. These forms comprised numerous fields, intricate validation rules, dynamic fields (one to many relationships) and even interdependencies, where employing PHP inheritance could mitigate code duplication.

1 0
1 follower
Viewed: 10 655 times
Version: 3.0
Category: How-tos
1 3
3 followers
Viewed: 10 675 times
Version: 1.1
Category: How-tos

Widget Personalizado

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

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

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

Entire Messages into javascript object

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

I needed all messages with their translation into javascript. This is my solution:

1 0
3 followers
Viewed: 10 830 times
Version: 1.1
Category: How-tos

How to nest DB transactions without actually nesting them.

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

To secure your database from inconsistencies resulting from failing (complex) operations, you (should) use transactions. However, complex methods often rely on other complex methods that themselves build on transactions. This HowTo presents a method to nest or embed transactions without relying on the database's nesting capabilities.

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

How to Reuse File Upload Code via Behavior

Created 10 years ago by Ahamed Rifaideen, updated 10 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: 10 945 times
Version: 1.1
Category: How-tos

Cgridview counter column

Created 11 years ago by Nisanth thulasi, updated 11 years ago by trond.

some times we want to show the serialNo on cgridview .

4 0
8 followers
Viewed: 11 008 times
Version: Unknown (update)
Category: Tips

Mantis Manager: An Asset Manager that minifies, combines, and publishes

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

Hello everybody.

4 0
8 followers
Viewed: 11 132 times
Version: Unknown (update)
Category: Tutorials
Tags: assets, heroku
1 0
5 followers
Viewed: 11 170 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Created 10 years ago by le_top, updated 10 years ago by le_top.

Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

1 0
2 followers
Viewed: 11 316 times
Version: 1.1
Category: Tips

Create URL to language switcher anchor with langhandler

Created 10 years ago by Anas AbuDayah, updated 10 years ago by Anas AbuDayah.

This topic is related with langhandler extension

1 1
2 followers
Viewed: 11 334 times
Version: 1.1
Category: Tips

Set a menu - reusable code

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

As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)

1 0
3 followers
Viewed: 11 617 times
Version: Unknown (update)
Category: Tips

Migration the database schema to another one

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

In this wiki I will show how to copy a schema from a database to another one

1 0
5 followers
Viewed: 11 646 times
Version: 1.1
Category: Tutorials

using jqbargraph to create beautiful graphs

Created 11 years ago by MAHESH.E.U, updated 11 years ago by MAHESH.E.U.

If you are about to create a graph, the best option i would suggest is the jqbargraph.

5 0
9 followers
Viewed: 11 654 times
Version: 1.1
Category: Tips

CjuiDatepicker

Created 11 years ago by hiral darji, updated 11 years ago by hiral darji.

If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

'onSelect'=>'js:function(selected) {
$("#HostelRoomStatusMaster_room_status_master_end_date").datepicker("option","minDate",selected);
				}',
1 0
5 followers
Viewed: 11 690 times
Version: 1.1
Category: Tips

Alternative wildcard characters CDbCriteria

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

In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $...

1 0
2 followers
Viewed: 11 745 times
Version: 1.1
Category: How-tos

an easy way to required multi columns(At least one cannot be blank)

Created 13 years ago by 1065227709, updated 13 years ago by 1065227709.

in model add the following code:

3 0
3 followers
Viewed: 11 764 times
Version: 1.1
Category: Tips
Tags: rules