Wiki articles

Showing 21-40 of 804 items.

UUID instead of an auto-increment integer for ID with Active Record

Created 4 months ago by grigori, updated 2 months ago by grigori.

bad design of Active Record.

4 0
3 followers
Viewed: 7 332 times
Version: 2.0
Category: How-tos

Migration the database schema to another one

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 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: 7 385 times
Version: 1.1
Category: Tutorials

More on SSE and Yii

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

This is not actually Yii involved.

1 0
1 follower
Viewed: 7 423 times
Version: Unknown (update)
Category: Tips

What SQL-Statement creates yii?

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

The usual way to find out what Yii has created for an SQL query is to mutilate the SQL in the sourcecode and call the program again so that the SQL statement with errors is displayed. Or you can use the SQL logger, which must be switched on and off each time and logs all SQL statements, which leads to an enormous slowdown in program execution and decelerates your workflow.

0 0
1 follower
Viewed: 7 426 times
Version: 1.1
Category: Tips

Translation from .txt file

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

Translation from .txt file Note:

0 2
4 followers
Viewed: 7 480 times
Version: 1.1
Category: Tutorials

Integrate Zend 2 XML writer into Yii

Created 6 years ago by Jonny, updated 5 years ago by CeBe.

By Integrating the Zend 2.* framework into Yii you can quickly and painlessly generate XML outputs from your controllers. This will be helpful to anyone who has never done this before or only done it with Zend 1 as the introduction of namespaces can be strange when you first view them.

2 0
4 followers
Viewed: 7 519 times
Version: 1.1
Category: Tutorials
Tags: XML, zend
1 3
3 followers
Viewed: 7 558 times
Version: 1.1
Category: How-tos

MailGun Api Wrapper to send emails

Created 5 years ago by VINAY Kr. SHARMA, updated a month ago by Maurizio Domba Cerin.

MailGun.php Class

1 0
2 followers
Viewed: 7 561 times
Version: 1.1
Category: How-tos
Tags: email, mailgun

Named scope - Get orphan AR without losing primary key

Created 9 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 592 times
Version: 1.1
Category: Tutorials
Tags:
1 0
5 followers
Viewed: 7 645 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

Use non Gmail/Gsuite on Gcloud projects

Created 2 years ago by Luis Armando, updated a year ago by Maurizio Domba Cerin.

Small companies and startups use cheap email services or even Cpanel's mail services which are less secure and compete directly with bigger email providers like Microsoft with Outlook and Google with Gmail. This creates a problem when you try to use their services to send/receive emails from this cheap services. <img width="750" src="https://static.techspot.com/fileshost/newspics3/2017/google-clo...

0 0
3 followers
Viewed: 7 668 times
Version: 2.0
Category: How-tos

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

How to implement magento cron on yii

Created 6 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 726 times
Version: 1.1
Category: How-tos

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 797 times
Version: 1.1
Category: Tips

Themed translations (i18n)

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

Custom Archive in Blog system

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

Useful Multilanguage extensions collection and use.

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

What I want to achieve:

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

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

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

Entire Messages into javascript object

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

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

1 0
3 followers
Viewed: 8 205 times
Version: 1.1
Category: How-tos

CJuiDatePicker extended for more/better language support

Created 5 years ago by le_top, updated 5 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: 8 456 times
Version: 1.1
Category: How-tos