Quantcast
Channel: Yii Framework Forum
Browsing all 18717 articles
Browse latest View live

Get Number Of Fields

How can i get number of fields with Yii. lets say mysql_num_fields equivalent. $cmd = Yii::app()->db->createCommand($query); $res = $cmd->queryAll(); $nb=mysql_num_fields($res); thanks

View Article


Using Htaccess To Redirect Domain?

I have domain A and B, and I want redirect domain A to domain B. For example: mywebsite.com/post/index/555 redirect to mynewwebsite.com/post/index/555 I have tried many htaccess example. It only...

View Article


Create Pdf File From Html Or Php In Yii?

I really need help for this problems, I would like to print some receipts so it must be pdf file. The thing is my page have mix of html and php because there are some variables are fetched from the...

View Article

Custom Id For Form Fields

Hi, I would like to be able to assign a custom id for a checkbox form field. I'm using bootstrap and bootstrap booster. <?php echo $form->checkBoxListInlineRow($data, 'xx_enabled', array('xx...

View Article

Image may be NSFW.
Clik here to view.

Ajax To Do The Multiple Save In One Page

I have 3 tables: User ,Skill and UserSkill, that means User could have many Skill. I would like to add multiple skills for one user by using only one page. In there, user could choose the skill in the...

View Article


Image may be NSFW.
Clik here to view.

Sitecontroller Cannot Find The Requested View "_Form".

Hi, I need login page and register page in only one page. My login is in site/login and register is in user/create. Now i add renderPartial in my sitr/login, then it showing like this "SiteController...

View Article

Form Dropdownlist Value Onchange

Hi All, How do I trigger 'onchange' only when specific value is selected from the form dropdownlist? I'm following Zaccaria's wiki/http://www.yiiframework.com/wiki/145/cjuidialog-for-cre in creating a...

View Article

Image may be NSFW.
Clik here to view.

How To Authenticate Using Two Different Tables

My project has 2 almost independent Modules so I want to authenticate using two different tables 1) what is the best way to do that ? 2) About an extintion called "Rights" does it help ? is it reliable...

View Article


Configuration For Firebug Message Logging

Hi, I have the following settings for activating Firebug in the 'components'> 'log' > 'routes' section of the configuration file: array( // settings for profiling messages of any category, to be...

View Article


Cgridview Incorrectly Uses Blankdisplay And/or Nulldisplay

I want to discuss this issue here (to make myself sure, that this is a bug), before rising a ticket on Github. Either I'm missing something or both CGridView->nullDisplay and...

View Article

Model Rules By Permissions

Hi, I have a model that permit the users with credential permissions to change fields of this model. I want those users to have only permission only to specific fields. On the other hand I want the...

View Article

Uploading Images With Redactorjs, Inserting Into Editor Fails

I use extension located here and It displays editor. I then use this extension to upload images and it does upload. The problem is, after uploading the dialog vanishes. When I reopen it there is no...

View Article

Image may be NSFW.
Clik here to view.

Percorso Modulo

Salve, qualcuno sà dirmi come posso puntare ad una sottocartella presente in un modulo ? Dovrei caricare alcune immagini presente dentro /protected/modules/img/* thanks

View Article


Cdetailview Th Alignment Problem

Hi, I have a CDetailView which is displaying data in two columns; left is heading (th) and right the data (td). Now I want to make the text alignment of left column the 'th' to be text-align right. Thanks

View Article

Yiiboilerplate: Access Yiibooster Components From Fe

Hi, I'm using YBPlate and it includes YiiBooster. I want to access components of YiiBooster in FE just as I can access them on Back End. I have tried anything I could including alias like...

View Article


Retrive Data Into Database

Can i know How to retrive data into database from site/login.

View Article

Post Data Via Chtml::link To Action

I am trying to generate a PDF. I need the selected Row from my CGridView for data generation. I created this link to open the PDF in a new tab: echo CHtml::link('Generate PDF', array('generatePdf'),...

View Article


Image may be NSFW.
Clik here to view.

Dynamic Ranking

Hi guys, I'm creating a website where you can vote on different games, and they will then get a rank according to the votes. I want my voting system to recognize wether a vote on a certain platform for...

View Article

Socialsharewidget Open Graph Tags

Hi Developers Recently I have used an extension for sharing my page in social networking website.I used this widget 'ext.Yii-social-sharing-widget-master.SocialShareWidget' Sharing is working fine.My...

View Article

Change Password Form

Hi, I am using this http://www.yiiframework.com/extension/rights/ module, I need to add change password option, Can anyone help me.... Thanks...

View Article
Browsing all 18717 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>