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

How to retrieve value of variable in one view from another view in yii

I have a variable in admin.php .i.e $approved. This is got by the value of a radiobutton using this code. $approval = Yii::app()->request->getParam('approval',"0"); Now, I need to pass this variable from admin page to update page. For which I have…
Rudra
  • 711
  • 7
  • 13
  • 31
0
votes
1 answer

Customizing Xmultiselect in Yii

I am not able to make the left list of multiselect widget in empty mode on load. It shows error when I set null value to the left list. This is my code: $this->widget('ext.widgets.multiselects.XMultiSelects', array( …
anu
  • 458
  • 2
  • 13
  • 36
0
votes
0 answers

Using jquery in yii

Iam using javascript chosen ( http://harvesthq.github.com/chosen/ ) plugin in yii to get multiple input from dropdown list.Iam using this code :-
anu
  • 458
  • 2
  • 13
  • 36
0
votes
0 answers

Yii Ajaxsubmit and tabs

Ok I have working code using ajax submit to capture and insert records in my db. Currently though I have to go from one models view to another to have this execute. I am trying to combine all the code and execute from a view in the first model…
enfield
  • 841
  • 3
  • 16
  • 42
0
votes
2 answers

Display CJUI tabs based on condition in Yii

Iam using CJUI tabs for my tab display. I would like to implement a condition based display of tabs based on the user logged in. I have 2 user admin and customer. If customer is logged in I need to hide a tab. Since customer has no permission to…
anu
  • 458
  • 2
  • 13
  • 36
0
votes
3 answers

Yii - Ajax Get based on drop down selection

I am trying to display the price based on the selection of product from a drop down. View contains: beginWidget('bootstrap.widgets.TbActiveForm', array( 'id'=>'plan-form', …
skris
  • 17
  • 2
  • 5
0
votes
1 answer

How can I use two databases in yii framework

I'm new to yii framework. I have two questions to ask : I have to create tabs for each table in the database test under which I have to have the menu for the rows of the table. How can I do this. For the application, I will be using the…
Rudra
  • 711
  • 7
  • 13
  • 31
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
2 answers

how to query relational data in yii

I have created a controller for retrieving data in JSON format for which I need all relational data in json format my database is like TABLE_1 _id category1 1 fruit 2 vegetable TABLE_2 _id type 1 winter 2 …
Bipin Chandra Tripathi
  • 2,550
  • 4
  • 28
  • 45
0
votes
2 answers

How bind CWebUser with model User

How to bind Yii:app()->user to the model User. That there was a connection type: Yii::app()->user->getUser() For example, I want to get the currently logged in user's email: Yii::app()->user->getUser()->email; I readed wiki…
frops
  • 2,196
  • 4
  • 29
  • 42
0
votes
2 answers

YiiBooster - Custom ckeditorrow

Good Morning Guys! I have a problem to solve. I trying all possibilities thought on the net but nothing work. Use a YiiBooster, and the problem is to use the ckEditorRow. When I trying custon this widget to showing some options, according the manual…
Marcos Bergamo
  • 1,073
  • 2
  • 11
  • 19
0
votes
3 answers

Clear validation error message when the value is updated or selected

I have form in yii that validates the form field. When I submit the form it shows the errors. But when the value of the field with the validation error is updated, the error still present. I want the message to clear. How should i clear the…
Pelang
  • 421
  • 7
  • 19
0
votes
1 answer

How to get URL path to a Module in yii with rewrite engine on ?

Hello and thanks for reading . I have installed the yii user module and iam trying to link to the profile page using the following code ; 'url' => Yii::app()->getModule('user')->profileUrl), in my main.php i have the following; 'urlManager' =>…
Gunnit
  • 1,064
  • 5
  • 22
  • 45
0
votes
1 answer

Yii add variable into breadcrumb widget

I got a quick question, i am trying to get an variable into my breadcrumbs widget, but sadly this isn't working. Am i doing something wrong? I got my code like this: breadcrumbs = array( 'item#1'=>array('/controller/action'), …
Augus
  • 495
  • 1
  • 8
  • 24
0
votes
1 answer

Component YiiBooster datepickerRow does not show calendar

I'm newie developing with Yii PHP framework and YiiBootstrap, I have a problem when I'm trying to use the datepickerRow component, the calendar does not showed when the cursor focus the field. Somebody know why?. This is the code that I'm using.…