Wiki

Sorted by viewsX
Displaying 531-540 of 688 result(s).

Named scope - Get orphan AR without losing primary key

Created 4 years ago by cmaTutorials0 comments – viewed 4,898 times – version 1.1
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 :

Making friends' configs, DB credentials and paths with version control

Created about a year ago by Alexander PalamarchukTips1 comment – viewed 4,861 times – ( +2 / -1 ) – version 1.1
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config

ePay Integration - Bulgarian Payment Provider

Created about a year ago by yasenTutorials2 comments – viewed 4,818 times – ( +8 ) – version 1.1
I. In the view script add the following hidden fields:

How to Display tooltp(qtip) on CGridview dynamic

Created about a year ago by Ankit ModiTips1 comment – viewed 4,816 times – ( -1 )
Hi Friends,

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

Created 3 years ago by 1065227709Tips0 comments – viewed 4,809 times – ( +2 ) – version 1.1
in model add the following code:
tags: rules

using editors of yiibooster - fix issues - configuration

Created about a year ago by KonApazHow-tos0 comments – viewed 4,769 times – ( +5 ) – version 1.1
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

Implementing menu items with progress (wait) dialog

Created about a year ago by TrejderHow-tos0 comments – viewed 4,628 times – ( +1 ) – version 1.1
This article shows one of possible ways to implement menu items (as well as links), which displays a progress / wait dialog and are redirecting browser to destination URL in the same time. This is especially useful, for links or routes that are know to be loaded for a prolonged period of time (i.e. getting a lot of data from database).

New Relic Error Alert with Yii

Created about a year ago by simon604Tips2 comments – viewed 4,613 times – ( +5 )
Introduction

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 6 months ago by Kartik VHow-tos2 comments – viewed 4,596 times – ( +24 / -4 ) – version 2.0
In Yii 2.0, the yii widgets that use Twitter Bootstrap CSS & JS directly, are part of the yii2-bootstrap extension, starting with yii/bootstrap namespace. For customizing bootstrap extension specific widget assets, you could configure your own assets (CSS/JS) using the new Yii Asset Manager in your Yii Config file. Something like:

Integrating ZF2 into Yii - use case demonstrated

Created about a year ago by BoazHow-tos2 comments – viewed 4,585 times – ( +9 ) – version 2.0
I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I decided to record my findings and that's how this article was born. The below recipe is what worked for me, accompanied by relevant comments. References: This article is partially based on this guide page. Be sure also to consult Zend Framework 2 documentation.