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
1
vote
2 answers

simple user login form - yii framwork

I am trying to open a login form on my site. I have written code but some how it's not working. The problem is that the login form does not return any error or mesage, it only redirects me to the login page. Also, for some reason the checklogin…
Swissa Yaakov
  • 186
  • 3
  • 15
1
vote
1 answer

Company email or Domain name based email address validation in Yii

Some times Yii Email validation show error message when we use domain name based email or company email address. how to fix it in yii framework?
saravankg
  • 909
  • 1
  • 10
  • 21
1
vote
3 answers

Yii Rights :: Error 403 You Are Not Authorized To Perform This Action

I am newb in yii. I installed yii-rights in protected/modules/rights as per documentation. But can't use properly. There are something missing that I couldn't find out. localhost/index.php/right page is working well. But when I press on…
Selim Reza
  • 372
  • 8
  • 20
1
vote
4 answers

Session timeout not working for CHttpSession in Yii framework

I am creating an web application in Yii . I was trying to do a sessiontimeout, if a user is idle for 30 minutes.After that he should login again.. but this is not working. I am using CHttpSession. However if i give CDbHttpSession instead of…
Mahesh Eu
  • 515
  • 1
  • 6
  • 21
1
vote
1 answer

Yii widget, does not work redirect after validation

I have widget and call it in the layout, why is not redirect to site/search? model = new SearchForm(); …
Dmitry
  • 19
  • 4
1
vote
3 answers

Connect 2 databases in Yii to workwith testdata and real data at the same time

My site is preparing to go live. As updations are developed on my site, I would like to test the updations in real server without affecting the real data. I need 2 databases(the same database with 2 names) to connect my site at the same time. One…
anu
  • 458
  • 2
  • 13
  • 36
1
vote
0 answers

How to access a widget view variable from a file in views directory in Yii?

Say, I have a variable $counter defined in a widget view file. I want to access it in a views/ControllerName/actionname.php file. How do I access it?
Aditya
  • 260
  • 5
  • 13
1
vote
2 answers

Yii returns exception.CHttpException.404 error

I have some problems with my Yii system. All modules are working fine in the system, but there is an error with the activity module. It returns the following error: 2013/10/22 10:21:17 [error] [exception.CHttpException.404] exception…
Onur
  • 414
  • 1
  • 11
  • 31
1
vote
3 answers

How to send the request through POST and how to access attributes of the model?

I am a bit new to the Yii Framework. I am making a product selling website, which has 3 basic models 1. Users model containing the primary key id 2. Products model containing the primary key id 3. Orders model which is basically a mapping between…
Tushar
  • 166
  • 2
  • 11
1
vote
1 answer

How can I display a warning message on textfield in Yii

I'm new to Yii framework and I need to display the validation error message as in login form "Username cannot be blank". Now, I have a text field where I updated the fields and the during validation I want a message to be displayed. How can I do…
user2770039
  • 59
  • 1
  • 2
  • 14
1
vote
1 answer

how an action is assigned to the createoperation in yii

I am a newbie and i just read about creating operation for defining the authorization rules...there was a code in the book which is as follows # protected/controllers/SiteController.php::actionSetup() $auth =…
Let me see
  • 5,063
  • 9
  • 34
  • 47
1
vote
1 answer

Yii: What is signature of behaviors?

what is signature of behaviors in yii? should this be a function or a class method? Can any provide sample code?
Ejaz Karim
  • 3,676
  • 6
  • 36
  • 49
1
vote
1 answer

How to use radiobuttons to modify the columns of Gridview in Yii

I have a gridview(admin.php) of test table. Here, I have two colums Contact Approval and Greetings Approval. I need to put two radio buttons ('Contact' and 'Greetings')in admin page. When I click on 'Contact' radio button all the columns except for…
Rudra
  • 711
  • 7
  • 13
  • 31
1
vote
1 answer

Why a yii component works on localhost and not on remote server?

I am working with yii and i have set up the component langBox. when i try to use it on my localhost it works while when i try using it on my remote server i get the following error; CException Alias "application.components.langBox" is invalid.…
Gunnit
  • 1,064
  • 5
  • 22
  • 45
1
vote
1 answer

My cgridview is showing only one record in yii

i am newbii in yii development and have an issue while displaying data using cgridview as it is showing only first record Motel,Hotel,Roomcategory and halls are models in which PK and FK are passing ... Code is here $sponsorm =…
Zainya Masood
  • 21
  • 1
  • 4