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
4 answers

how to handle errors in yii

I am working on an application using yii. I have an action let acmanageappointments/index. I have defined its rule as follow array('allow', // allow authenticated user to perform 'create' and 'update' actions …
Rohitashv Singhal
  • 4,517
  • 13
  • 57
  • 105
0
votes
1 answer

How to check access of the model creator in Controller in yii?

I don't know the best approach for access rules of the creator of model in the controller. I usually using like this : public function accessRules() { return array( ... array('allow', // allow authenticated user to perform…
mrhands
  • 1,473
  • 4
  • 22
  • 41
0
votes
1 answer

How to show multiple row in single row using gridview

i want to show grid view like magento http://demo.magentocommerce.com/catalog/category/view/s/cellphones/id/8/ here we can see that multiple items are shown in same row... on the above link we can see that 3 item(rows) are shown per row.. currently…
khizar ansari
  • 1,476
  • 2
  • 18
  • 29
0
votes
1 answer

How can I show stars in yii cstarrating extension?

Hey I am working on cstarraing extension of yii. I am using the following code to show the stars from database : $criteria = new CDbCriteria(); $count=Reviews::model()->count($criteria); $pages=new CPagination($count); …
user1983366
0
votes
0 answers

Language translation using yii

I am working on internationalization of a yii project, I was referring the url Multilingual I am getting the widget correctly on the user page, but when I click on any of the link, then I get error 404 not found, this is the problem with all url`s.…
Rohitashv Singhal
  • 4,517
  • 13
  • 57
  • 105
0
votes
2 answers

how to get or create role in yii

I am a newbie to yii. I have stuck my mind with yii-tutorials for creating roles in yii. but I am not getting how can I create role in yii. means I want to create two roles admin & staff and I want to give different priviliage to them. I have…
Rohitashv Singhal
  • 4,517
  • 13
  • 57
  • 105
0
votes
0 answers

Filtering user input in Yii

I read Yii tutorial about data validation, but have the question: how can I to automatically filter user input (for example, I know, that identifier must be trimmed, or identifiers must be integers). Are there any best practices?
Guy Fawkes
  • 2,313
  • 2
  • 22
  • 39
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

how to use one model for two different forms?

I am currently working in yii, I have designed a user module which consists user registraion, user login & change password rule. for these three process I have designed only one model i.e. user model. in this model I have defined a rule:…
Rohitashv Singhal
  • 4,517
  • 13
  • 57
  • 105
0
votes
2 answers

Defining more than one CButtonColumn in CGridView

I have been working with Yii's CGridView and I was wondering if there was any way to separate CButtonColumns, or initiate more than one at a time. So that each Button has a specific column with a specific title.
user1845192
0
votes
1 answer

Extending Cmenu for changing default 'call' $this->menu in viewfile

I've extended the default CMenu, When I want to use this extended version of CMenu I do the following: $this->widget('application.components.translateCMenu',.... This works for me, but in most of the CRUD generated view files the menuwidget is…
user1345112
  • 182
  • 1
  • 2
  • 14
0
votes
1 answer

Yii: Adding A Textfield Filter to CListview using Ajax and Jquery

I am a Yii Beginner and I am currently working on adding an Ajax filter to CListView where I followed the Steps displayed in this Tutorial Basicaly when I intialise the $issue_nr in the altered IssueController/Index action the filter works…
user1845192
0
votes
1 answer

How to implement sign out functionality from social networks in Yii auth

Iam using Yii auth extension for login to my website using social networks like facebook, linkedin, twitter etc. Iam able to sign in to the website using the extension. But my problem is that when I signout from my website the accounts of the…
anu
  • 458
  • 2
  • 13
  • 36
0
votes
2 answers

Yii flash message doesn't show after Ajax request

Anybody know how can I show the flash message in YII framework after ajax request ? I'm using standard Gii-generated CRUD operations. When I create or update data in CGridView I see my Flash message. But when data deleted there is now flash, but…
LIAL
  • 1,624
  • 4
  • 24
  • 30
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