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

Is it possible use Yii booster form component without model?

Is it possible use Yii booster form component without model? textFieldRow($model, 'textField', array('hint'=>'In addition to freeform text, any HTML5 text-based input appears like so.')); ?>
Wildan Muhlis
  • 1,553
  • 2
  • 22
  • 43
0
votes
2 answers

Yii: how to define a component as an array of objects in config file?

How can I set an application component property to be an array of objects from within the main.cpp config file? in the components section of main.php config file we have a section: 'components' => array( .... 'company' => array( …
Mike Graf
  • 5,077
  • 4
  • 45
  • 58
0
votes
2 answers

Introduction on Controller for the view part

Yii has its own controls for its View part, I try to look for a complete tutorial that introduce those controls but fail. What I found is this is partial set of…
william007
  • 17,375
  • 25
  • 118
  • 194
0
votes
1 answer

Log User activity and roll back in Yii Framework

I'm using Yii framework for one of the internal application. I have different levels of users like admin, super admin. In my application, superadmin need to keep track of all admin user DB activity (insert, update and delete) and also they can able…
Shankar
  • 41
  • 1
  • 1
  • 3
0
votes
1 answer

Yii link with [ as a parameter

With GII I have created a list of records. I use the admin view so they are in a table view. On top of the table it is the search with a status for the records. When the status dropdown is changed I submit the form and the table gets searched. I…
Mihai P.
  • 9,307
  • 3
  • 38
  • 49
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

Dynamically created CJuiAutoComplete in Yii not working

I have used jQuery's autocomplete plugin in the past, but never before through Yii's implementation of it as a widget. I am dynamically creating another autocomplete field and not able to set it to…
Owen McAlack
  • 399
  • 10
  • 28
0
votes
1 answer

Ignoring Server Down Error Message when using Yii CMemCache

I've enabling yii memcached, How do I ignoring this error when dedicated memcached server was down. MemcachePool::get(): Server 192.168.1.200 (tcp 11211, udp 0) failed with: No connection could be made because the target machine actively …
Wildan Muhlis
  • 1,553
  • 2
  • 22
  • 43
0
votes
1 answer

Property "CMemCacheServerConfiguration.connectionID" is not defined

When I activate memcached in Yii this error message raised Property "CMemCacheServerConfiguration.connectionID" is not defined. How to resolve this error? Here's my configuration: ... 'cache'=>array( 'class'=>'CMemCache', …
Wildan Muhlis
  • 1,553
  • 2
  • 22
  • 43
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
1 answer

Dependent dropdownlist with chosen jquery plugin. Dynamic update

I'm new to yii so dont be strict. I have dependent dropdown list with countries/states from model. It works perfect until comes Chosen jquery plugin. I use http://harvesthq.github.com/chosen/. So the problem is in howto trigger liszt:updated, so 2nd…
ineersa
  • 3,445
  • 30
  • 40
0
votes
2 answers

Yii Widget views not rendering javascript code

I'm trying to use registerScript() to output some raw javascript into my page. The following seems to work fine (at the view level, called by a controller): modules/myApp/views/readEditor.php: getClientScript(); …
PeterG
  • 772
  • 2
  • 11
  • 28
0
votes
1 answer

Make visible a dropdown list and text box according to selection of a radio button

I would like to display a dropdown list and text field according to the selection of a radio button in Yii form. ie, if I select the first option , it must display a dropdown list and if I select the second option the text box must appear. This is…
anu
  • 458
  • 2
  • 13
  • 36
0
votes
2 answers

validation rules are not working for filefield in CActiveForm

Here i am using fileField in CActiveForm but in model the validation rules are not working for that field here is my code model code public function rules() { // NOTE: you should only define rules for those attributes that // will receive…
subhash
  • 167
  • 1
  • 4
  • 15
0
votes
1 answer

Submitting form data to an external site YII

I am quite new in YII just 2 weeks and I am getting a hang on it, but I have an integration I have to do, which includes submitting form data to an enternal site, as well saving said data in my DB, after which i am automatically redirected to the…
Precious George
  • 105
  • 4
  • 8