Wiki

Sorted by viewsX
Displaying 311-320 of 753 result(s).

Send asset folder path to a javascript of a widget

Created 3 years ago by sensorarioTips4 comments – viewed 19,442 times – ( +4 ) – version 1.1
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

CGridView and AjaxForm Connect

Created 4 years ago by PinkBrainPlanHow-tos2 comments – viewed 19,441 times – ( +1 ) – version 1.1
As I'm new to the framework (2 weeks) - I tried to build a functionallity I already use a lot in my old framework (PRADO). This means combining a GridView with a form. And this in one page, what allows you to select a record from the grid and view the values in the same page without jumping to a new page.
tags: Ajax, Form, CGridView

Multiple Database Connection : Select database based on login user id, Dynamic

Created 2 years ago by Rajith RHow-tos4 comments – viewed 19,382 times – ( +9 / -6 ) – version 1.1
create a class file under protected\components named RActiveRecord.php

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 2 years ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 19,259 times – ( +5 )
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

Integrating Wordpress and Yii,Working Out The Details.

Created 2 years ago by drumaddictHow-tos4 comments – viewed 19,206 times – ( +8 ) – version 1.1
This article is based on fr0d0z's article Integrating Wordpress and Yii: still another approach, using Yii as the router/controller and provides more details on how to set up this integration.To be more specific,the idea is not to use any main.php layout in Yii's controllers.This gives the advantage that we do not need to modify any Yii code when we switch a theme in WordPress admin panel,provided we have done a very basic setup which I explain below.
tags: wordpress

PayPal Integration And IPN (Instant Payment Notification)

Created 2 years ago by yasenHow-tos3 comments – viewed 19,174 times – ( +9 ) – version 1.1
Had to implement PayPal payments for a client and would like to share part of my code with you. Because the tutorial will become too long, I'll leave some code to be done by you, e.g. creating models, controllers and db tables for products, orders.

Enforcing "You must agree" requirements in forms

Created 4 years ago by Steve FriedlHow-tos3 comments – viewed 19,123 times – ( +29 ) – version 1.1
Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:
tags: validation

Multilanguage web site controlling by get request and database allowed languages

Created 4 years ago by Igor IvanovicTutorials2 comments – viewed 19,113 times – ( +6 ) – version 1.1
First, you have to have create database table for default language and allowed languages.

Functional Testing in Yii using Goutte and PHPUnit

Created 3 years ago by puteraTutorials2 comments – viewed 19,066 times – ( +7 ) – version 1.1
Functional Testing in Yii using Goutte and PHPUnit

How to implement cron in Yii 2

Created about a year ago by hemcHow-tos10 comments – viewed 18,818 times – ( +9 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console