Wiki articles

Showing 21-40 of 650 items.

An alternative way to ElasticSearch

Created a year ago by Necip, updated 11 months ago by Necip.

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

1 0
2 followers
Viewed: 7 098 times
Version: all
Category: How-tos

How to implement magento cron on yii

Created 5 years ago by Ankit Modi, updated 5 years ago by CeBe.

Hi Friends, First I would to say sorry but I am not very familiar to magento so after a 1 week spend I will implement the magneto cron functionality on yii I hope it's may be some helpful.

0 0
3 followers
Viewed: 7 203 times
Version: 1.1
Category: How-tos

Themed translations (i18n)

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

When using themes you want to changes some of the translations specifically to the theme while keeping the standard translations for most of the text. Duplicating the main translation file is a headache for maintainance. This how to provides a solution.

1 0
1 follower
Viewed: 7 234 times
Version: 1.1
Category: How-tos
1 0
5 followers
Viewed: 7 248 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

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

Create URL to language switcher anchor with langhandler

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

This topic is related with langhandler extension

1 1
2 followers
Viewed: 7 306 times
Version: 1.1
Category: Tips

Logging to Heroku's logs from Yii

Created 6 years ago by aarondfrancis, updated 5 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: 7 324 times
Version: 1.1
Category: How-tos

Custom Archive in Blog system

Created 6 years ago by nirmalroka, updated 6 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: 7 478 times
Version: 1.1
Category: Tips

Useful Multilanguage extensions collection and use.

Created 5 years ago by cihappy, updated 4 years ago by Rohit Suthar.

What I want to achieve:

2 0
3 followers
Viewed: 7 595 times
Version: 1.1
Category: Tips

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

Created 4 years ago by le_top, updated 4 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: 7 719 times
Version: 1.1
Category: Tips

Entire Messages into javascript object

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

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

1 0
3 followers
Viewed: 7 855 times
Version: 1.1
Category: How-tos

CJuiDatePicker extended for more/better language support

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

The number of languages supported by the standard CJuiDatePicker implementation is limited and the language code to use is different from the application's language code. This Wiki shows how to improve on that.

1 0
1 follower
Viewed: 7 936 times
Version: 1.1
Category: How-tos

How to Enhance a CGridView

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

by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)

2 0
5 followers
Viewed: 7 954 times
Version: 1.1
Category: How-tos

Automatically get the SVN Revision Number of your Project

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

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 7 955 times
Version: all
Category: Tutorials

Console Based CAuthManager Helper

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

This behavior enable you to command the RBAC via console. This avoids you to install a entire rbac graphic toolkit to set up some rules in the rbac, maybe you are running inside a ssh console.

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

Tags manipulation using Select2 in single field

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

Sometime its very important to perform many actions/operation with limited time frame for friendly use, select2 provides a lot of such functionality , I just extend it tags functionality to provide a quick use for developer to save time, as I spent much time on it.

2 0
35 followers
Viewed: 8 024 times
Version: 1.1
Category: Tutorials

How to display images in CJuiAutoComplete without extenstions

Created 4 years ago by Asmaa, updated 5 months ago by samdark.

I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:

0 0
2 followers
Viewed: 8 134 times
Version: 1.1
Category: Tutorials

How to provide a fallback or mapping for translation messages?

Created 6 years ago by schmunk, updated 4 years ago by schmunk.

Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

3 0
6 followers
Viewed: 8 173 times
Version: 1.1
Category: How-tos

Yii configuration: Dynamic & User dependent

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

It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched...

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

Tarpit for bad bots

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

I recently built a tarpit for bad bots.

1 0
9 followers
Viewed: 8 358 times
Version: 1.1
Category: How-tos
Tags: bots, tarpit