Questions tagged [yii-components]

Yii is an open source, object-oriented, component-based MVC PHP web application framework. Yii is pronounced as "Yee" or [ji:] and it's an acronym for "Yes It Is!"

For more information on Yii components, please see the Yii documentation at:

http://www.yiiframework.com/doc/guide/1.1/en/basics.component

434 questions
0
votes
1 answer

How to show other model field in my cgridview

I want to show a other model field in my cgrid view , I am using yii model. My current model is Members and other model is Billing: My Code: public function getImportantMembers(){ $criteria = new CDbCriteria; $criteria->select…
user2841243
  • 81
  • 1
  • 3
  • 10
0
votes
2 answers

Yii CButtonColumn onclick get this value and show a dialog box with other model data

I have a IpModel and second Model is IpSenderScore ,ip_id is foreign key in Ip_history model. Now I have create a custom button senderscore in Ip admin view like: 'senderscore' => array( 'label'=>'View SenderScore of…
user2703611
  • 67
  • 1
  • 8
0
votes
3 answers

How to create forms with multiple submit buttons

I'm new to Yii framework.I'm using the form.php to update the fields of the table. So now I use this form with three submit buttons - [Save, Accept, Reject]. The form now has the following fields.
user2770039
  • 59
  • 1
  • 2
  • 14
0
votes
3 answers

How to create radiobuttons from more than one column and make one active at a time

I have two columns 'ReviewedDate' and 'Approved' . Now, I need to create 4 radiobuttons in the search form where each column will have two radiobuttons.('ReviewedDate' has 'Reviewed' and 'Not Reviewed' radiobuttons) and ('Approved' will have…
user2770039
  • 59
  • 1
  • 2
  • 14
0
votes
1 answer

How to get the gridview displayed based on radiobuttons

I'm using two radiobuttons in advanced search form, they are reviewed and not reviewed. When I click on reviewed it should filter for multiple search box in Gridview and display the result. There are other three fields 'Updated date','reviewed date'…
user2770039
  • 59
  • 1
  • 2
  • 14
0
votes
1 answer

How to filter the gridview with radiobutton based on a sql query

I'm using two radiobuttons in advanced search form, they are approved and rejected. When I click on approved it should filter for multiple search box in Gridview and display the result. There are other three fields 'Updated date','reviewed date' and…
user2770039
  • 59
  • 1
  • 2
  • 14
0
votes
2 answers

How can I redirect to update page when I click the menu item

I'm new to Yii framework. I have a user table which has username and password. I'm using the update page of user to reset password. Now, when I login with username and password I get a menu item as "password-reset" . When I click on this I like to…
user2770039
  • 59
  • 1
  • 2
  • 14
0
votes
2 answers

How can I specify which field in the user table to be bind to name attribute of the CWebUser?

I found that yii can get and echo the user name by this : echo Yii::app()->user->name; my question is how can I specify the field in the table user to be bind with the CWebUser::name
mehsen
  • 588
  • 2
  • 7
  • 18
0
votes
1 answer

Jui Slider removing key events

I have a issue not sure how complicated it is but I have been unsuccessful in finding a solution and I have spent some considerable time troubleshooting and Googling resolutions. Here is my issue, I have a jQuery UI Slider on my page. I insert a new…
John
  • 123
  • 9
0
votes
2 answers

Yii - how to include phpdocx files?

I'm trying to include phpdocx files in my Yii project. On a standalone php script, all I have to do is require_once 'phpdocx/classes/CreateDocx.inc'; Not sure how to do it with Yii. I put the folder under…
user187809
  • 706
  • 2
  • 8
  • 23
0
votes
0 answers

Yii Framework - Automate logger for entry and exit function call

I am writing a application in Yii Framework .Using the Yii Logger for my application log . I want to write log on entry and exit of each function . Now what i have to do is to go in each function and write the entry and exit log . Is there any way…
Pradeep Jaiswar
  • 1,785
  • 7
  • 27
  • 48
0
votes
1 answer

How to hide the pagination text from clistview detail page?

How can I hide this pagination text from clistview detail page?
Muhammad Shahzad
  • 9,340
  • 21
  • 86
  • 130
0
votes
3 answers

Yii Captcha not showing image inside a module,works on siteController

i am using Yii user managment Module,when i a user is registering on my webiste,the captcha image is not shown on the form,however on contact form that is generated by Yii,the captcha is shown.Here is my View EDIT: when i use firebug or chrome…
Eliethesaiyan
  • 2,327
  • 1
  • 22
  • 35
0
votes
1 answer

Yii ajax form submission and update?

I'm trying to implement a commenting system on my web project, I'm extremely new to Yii. I want the user to be able to submit a comment, which in turn updates the database, and re-renders ALL the posts' comments (NB: I do not want the whole page…
JohnW
  • 345
  • 1
  • 7
  • 15
0
votes
2 answers

Yii: Where does $this->menu filled with values?

Gii created a CRUD menu called operations. If you go to column2.php you will see this code. $this->widget('zii.widgets.CMenu', array( 'items'=>$this->menu, 'htmlOptions'=>array('class'=>'operations'), For some reason I want to edit…
Ejaz Karim
  • 3,676
  • 6
  • 36
  • 49