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

How to seperate radiobuttons from radiobuttonlist and set it default

I'm new to Yii framework. I'm using two radiobuttonlist in my advanced search form. I'm using the below lines to create radiobuttonlist.
label($model,'ReviewedDate'); ?>
user2770039
  • 59
  • 1
  • 2
  • 14
0
votes
1 answer

Click event of CButtonColumn

I am new to yii framework. I have spent a lot research about my problem, and I followed the tutorial on link and it did not work, my CButtonColumn could not call js function. Hope anyone help me. Regards, Manohar
Manohar Bomma
  • 311
  • 1
  • 3
  • 17
0
votes
1 answer

how to limit the user to 1 month date range only when i have two date picker forms?

i have 2 input forms, the "Date From" and "Date To" , both are using jquery's date picker My question is, how to limit the user to select only a range of one month using those two datepickers ? this is the snippet of the "Date From" date picker …
sasori
  • 5,249
  • 16
  • 86
  • 138
0
votes
1 answer

Show company users depending on login of their tenent admin in php yii

I have three tables as roles, users and companies. and their relationships as for Role.php public function relations() { return array( 'userRoles' => array(self::HAS_MANY, 'UserRoles', 'id_roles'), ); } for…
r15
  • 486
  • 1
  • 8
  • 22
0
votes
1 answer

when autocomple box selected, update into textbox

When I used zii.widgets.jui.CJuiAutoComplete' widget, I got 2 problems P1) when I create an array as follow a[1]=>'aa' a[2]=>'bb' a[3]=>'cc' it isn't working. But if the array like this a[0]=>'aa' a[1]=>'bb' a[2]=>'cc' It is working fine. Q1 ) How…
Thu Ra
  • 2,013
  • 12
  • 48
  • 76
0
votes
2 answers

How to add integrity constraint check on all controllers in YII?

How to add integrity constraint check on all controllers while inserting values to db in YII? what is the simplest method for it? if($model->save()) $this->redirect(array('view','id'=>$model->id)); Exception appear here CDbCommand…
Harikrishnan
  • 9,688
  • 11
  • 84
  • 127
0
votes
1 answer

yii TbRelationalColumn pagination not maintains current page

I have a Yii booster TbRelationalColumn and it work perfectly, now when the records are more, the pagination is showing correctly but when i change the page the whole grid disappears and only that grid is showing which is currently selected, i have…
Sudhanshu Saxena
  • 1,199
  • 12
  • 32
0
votes
2 answers

Yii actionError not handling request when error occurs

I have made my custom controller and set it as default in my main config file. All the other actions are working fine. But when there is any error i have made : public function actionError() { echo 'Error'; die; } and then i made a not…
Engineer
  • 5,911
  • 4
  • 31
  • 58
0
votes
2 answers

How to change the format of an attribute in a CActiveRecord returned by a findAll method?

I have an attribute in my model that is stored in binary format inside database. In case the attribute is a geometric( polygon ) object. This object can be casted to several string representations. So how can I attach an event after a find execution…
cavila
  • 7,834
  • 5
  • 21
  • 19
0
votes
1 answer

Implement tab view with sorting and pagination in Yii

Am trying to bring a tab view with list , sorting and pagination in Yii. I have 2 tables named service_request and favourites where the datas come from. In that page I need to display the service request and favourites added date and some other…
anu
  • 458
  • 2
  • 13
  • 36
0
votes
2 answers

searching and filtering in yii

How to filter the search results as a combination of checkboxes and dropdown in Yii? I have some categories as checkboxes and budget as dropdown that is listing from database. WIth multiple checkboxes checked and selecting a value from dropdown, how…
anu
  • 458
  • 2
  • 13
  • 36
0
votes
2 answers

how to integrate hebo html template into yii framework

how to integrate hebo html template into yii framework I am new to using yii framework.I download hebo template from http://www.webapplicationthemes.com/hebo-responsive-html5-theme/ I can installed template hebo but i don´t work with ie. Don´t work…
0
votes
1 answer

User Friendly Date filter in Yii

I have a weird problem that, i have a model and a attribute is create_time (timestamp). I have to show the timestamp as a userfriendly date (Y-M-D) format in view, but the problem is when i search for the date say using date only(23), or year…
tnchalise
  • 1,573
  • 2
  • 18
  • 38
0
votes
1 answer

delete functionality does not work - Yii

I am building one site in YII. I have made one functionality like delete for one of my controller. I have defined my access rules like this. public function accessRules() { return array( array('allow', // allow authenticated user to…
Rukmi Patel
  • 2,619
  • 9
  • 29
  • 41
0
votes
2 answers

Building a event-based application-wide cron component

What I'm trying to achieve is creating an application that is highly modular. I'm trying to create a cron script which addresses all the cron scripts that need to be fired in all the sub-modules. What I would actually would like to do, is create an…
Ambidex
  • 755
  • 1
  • 5
  • 27