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

Displaying image in a CGridView column

Here is my code $img= Yii::app()->params['questionImageUploadURL'].$model->q_type."/".$model->qImgRel->image_name; widget('zii.widgets.CDetailView', array( 'data'=>$model, 'attributes'=>array( 'id', …
User1988
  • 1,965
  • 4
  • 25
  • 47
1
vote
2 answers

Yii CActiveFormWidget css style

I'm developing web site using Yii framework. I need form and use CActiveFormWidget. How can I style input fields and buttons with CSS? Which is the CSS class for button or textfield?
nyanev
  • 11,299
  • 6
  • 47
  • 76
1
vote
1 answer

Creating Lookup field for Yii

I'm trying to make a lookupfield-like in my application. The intention is that the user click on a browse-button, and it pops-up a dialog(widget) with a grid(CGridView) inside. The user could select a row, and the 'Description' column is sent to a…
MMalke
  • 1,857
  • 1
  • 24
  • 35
1
vote
1 answer

How To wigetized a single view using several models in Yii?

Am working on Yii application, which has only one view -'Dashboard', i need to do all application activity on this single interface. like as show all user details, account, history, status with curd facility. --In Controller-- class…
Frank
  • 2,285
  • 7
  • 43
  • 68
0
votes
2 answers

Yii not able to save Image files CFileUploaded

I am not able to save the image uploaded from simple Form with this code public function actionImage() { print_r($_FILES); $dir = Yii::getPathOfAlias('application.uploads'); if(isset($_POST['img'])) { $model = new…
Assad Ullah
  • 785
  • 6
  • 12
0
votes
1 answer

Nested CActiveForm - Yii framework

I have the following code in my main index.php:
beginWidget('CActiveForm', array( 'id' => 'test-form', 'enableAjaxValidation' => false, 'enableClientValidation' => true, 'clientOptions' => array( …
SnIpY
  • 662
  • 2
  • 10
  • 27
0
votes
1 answer

Access html elements data and send to controller in PHP

I'm a super beginner in php, and I'm using a MVC php framework called Yii. I can't seem to find any articles that explain how to get values of html elements with PHP. Everywhere I look it's all about how to get values from form fields after a POST…
EKet
  • 7,272
  • 15
  • 52
  • 72
0
votes
1 answer

yii memcache include error

I am getting this error: include(Memcache.php) [function.include]: failed to open stream: No such file or directory And here is the full description of the problem: 384 * @return boolean whether the class has been…
Maverick
  • 2,738
  • 24
  • 91
  • 157
0
votes
1 answer

Yii register system

I have this register system that doesn't work. Can you please help me!! Also I must mention that I am using the Randomness extention . the Yii error: Property "Users.password2" is not…
Irakli
  • 1,151
  • 5
  • 30
  • 55
0
votes
3 answers

Changing Inside Assets Folder In Yii Framework

I came to notice that there is one folder called assets in the root folder.To know more about it,I went through this link.Now I want to know adding some css in these files is good or shall I add css to to the main.css file inside css folder.
NewUser
  • 12,713
  • 39
  • 142
  • 236
0
votes
1 answer

Hide pagination button in CListView but donot disable them

I am using yii framework. I want to hide pagination button of CListView widget but not disable them so that i can automatically trigger the request for next page by clicking them via javascript when user finish processing the list items. I tried…
0
votes
1 answer

AjaxController yii

Im creating a dependent dropdown & everything works fine for me. CHtml::dropDownList('country_id','', array(1=>'USA',2=>'France',3=>'Japan'), array( 'ajax' => array( 'type'=>'POST', //request…
iThink
  • 1,239
  • 3
  • 13
  • 34
0
votes
1 answer

Unable to transfer data to views

To get a list of products, I created a model "ProductList" namespace app\models; use yii\helpers\Html; use yii\db\ActiveRecord; class ProductList extends ActiveRecord{ public static function tableName() { return 'product';…
Soject
  • 25
  • 5
0
votes
1 answer

Yiimp: CDbException: CDbConnection failed to open the DB connection. error when hasGetInfo is set to false

I'm getting the CDbConnection failed to open the DB connection error. The thing is, my database connection seems to be okay, as evident from the fact that the YIIMP logs display the retrieved values that I print out (see the text in the…
eee
  • 37
  • 2
  • 6
0
votes
0 answers

JsTrans Yii Configuration

I want to use JsTrans extension in my yii2 advanced project. https://www.yiiframework.com/extension/jstrans But I have problem with the configuration. After I downloaded the extensions, I extract it in common/extensions folder with name "JsTrans".…