Questions tagged [yii-events]

Yii is a high-performance, component-based, open source PHP framework best for developing Web 2.0 applications. It is one of only few PHP frameworks that supports EDP (Event-Driven Programming) and this tag contains questions that are specific to events in Yii.

89 questions
0
votes
1 answer

Show/hide a div in Yii radio button click

Iam trying to show/hide a div based on the radio button click in Yii form. But the onclick event is not working for me. Please help me to fix this as Iam a new bee to Yii. Iam using this code for radio button
anu
  • 458
  • 2
  • 13
  • 36
0
votes
1 answer

Submitting form data to an external site YII

I am quite new in YII just 2 weeks and I am getting a hang on it, but I have an integration I have to do, which includes submitting form data to an enternal site, as well saving said data in my DB, after which i am automatically redirected to the…
Precious George
  • 105
  • 4
  • 8
0
votes
2 answers

Check validation rules in Yii framework

I'm new to Yii framework so I'm trying to understand the way it is working. I have the following validation rules for a user creating form, now what I need is to check in afterValidation() method, if all the validation rules have passed an the hash…
sorin
  • 459
  • 1
  • 5
  • 14
0
votes
2 answers

Dataprovider to EExcelView

lets say i have a table named cars{ 'id','name','brand_id', } and another table brand{ 'id','brand_name', } I have a situation that i want to generate an Excel report with the following attributes. 'name','brand_name' i.e. SELECT cars.name,…
tnchalise
  • 1,573
  • 2
  • 18
  • 38
0
votes
0 answers

Yii widget with two inputs. How to specify surrounding HTML for each input?

it is quite simple to customize the view if the widget produces only one input field:
Страна
Sure, we could…
nichiporets
  • 431
  • 7
  • 18
0
votes
1 answer

yii framework - CLinkColumn passing values to javascript

I'm new to YII framework, I wanted to create a link column having a image. Clicking image should call a Javascript function, PHP values need to be passed to that javascript function. here is the code,
array(
'class'=>'CLinkColumn',
 'header'=>…
Bobby
  • 375
  • 5
  • 18
0
votes
3 answers

How send hidden data to another controller action on Yii

I do not know how to send hidden data from a function (action) of controller1 to a function (action) of Controller2 in yii. I think sending the data to the second function by POST, I do not aim to send POST data know-how without using a form. Can…
Florent
  • 761
  • 1
  • 10
  • 24
0
votes
1 answer

Different layout for login page in yii framework

I have login page that i want to call after index.but login and index have same layout. My requirement is that when i run locathost/demo/index.php all tha login and other related pages display on same index.php layout.But i want to run only single…
0
votes
1 answer

CListView afterAjaxUpdate event for widget

A widgets can or not be on a controller view, and some of widget affecting listView. I have stalled on a afterAjaxUpdate JS event in CListView. The widget - is a product filter, which updating the list view. My problem is when I want to update my…
Dmitriy Paul
  • 23
  • 1
  • 3
0
votes
1 answer

Yii framework: How do I use CActiveRecord.beforeFind()?

I'm in a need to use beforeFind() in a child class of CActiveRecord. Basically, I need to convert some data from before actual search in the DB is performed. How do I alter the about-to-occur-find-operation that is about to take place, inside…
Boaz Rymland
  • 1,459
  • 11
  • 29
-1
votes
1 answer

Customised query to display in CGridView in yii

Controller, $model=Product::model()->display_products_statistics(); $this->render('admin',array( 'model'=>$model, )); View, $this->widget('zii.widgets.grid.CGridView', array( 'id' => 'product-grid', 'dataProvider' =>…
user3016447
  • 25
  • 1
  • 6
-1
votes
4 answers

YII over write a php file in web app

iam trying to over write a file in the yii web app the code is in the view file and i want to over write the a file inside the protected/config folder can u suggest me how to fopen ($file,'w'); I following is the code which i used $my_file =…
DILLI
  • 1
  • 1
  • 7
-2
votes
2 answers

How to save the multi selected fields on save in Yii web app

I am new to Yii , i have created an application in that form i have created an field as multi select option as shown below ......Can any one help me how to save the data into my mysql table for that what changes i have to do and where i have to…
DILLI
  • 1
  • 1
  • 7
-4
votes
2 answers

How To Count Views On Click Of A Button Or Web Page Is There Any Extension

I am a newbie interested to know are there any extension to count views on click of a button as to know no. of registered users or visiters to web page to know the view count on click of a image is there any extension. Plz let me know if any thanx…
user3016447
  • 25
  • 1
  • 6
1 2 3 4 5
6