Yii::t (Multilanguage) In Console
Hey all, I have created a console command that creates a file and uses Yii::t() to translate some texts. However, even if I set the language to something else that english with...
View ArticleHow To Use Javascript/pop Up In Yii Captcha Error Message?
hi, how to use a javascript pop-up/alert error message in yii captcha, instead of the ordinary red colored flash message ? <div id="captchaBox" style="border-bottom: 1px solid #E2E2E2;...
View ArticleRender
ciao a tutti e buon anno. Non sono esperto di yii, ma ci sto lavorando. Ho inserito in un controller: $msg="ciao"; $messaggio=array('model'=>$model, 'mess'=>$msg);...
View ArticleCustomize Cjuisliderinput
Hello, I want to change the color of the party started in my slide. Here is my source code: <?php $this->widget('zii.widgets.jui.CJuiSliderInput', array( 'model'=>$model,...
View ArticleStange Upload File Behavior
Hi, I cannot understand the behavior of validate() of Model with rule 'file' In model upload I wrote: class Upload extends CFormModel { public $myfile; public function rules() { return array(...
View ArticleA Form Inside Another Form
Hello! I have a form with a table "table1" and another form with "table2". I need to present both forms in a page at same time. I do this using renderPartial in the '_form' or 'create' view from table1...
View Article[Bistrot] Bonne Année !
Tout est dans le titre, mais si vous passez par là, tous mes voeux pour 2013, plein de bonnes choses et hapy yii coding
View ArticlePhp 5.4 Pdo Could Not Connect To Mysql 4.1
Hi everyone, i try to connect my Databases (MySQL client version: 4.1.22) on my windows Azure (PHP5.4) but fail, Below is the error code CDbException CDbConnection failed to open the DB connection:...
View ArticleActivedataprovider Non Ne Esco
nonc apisco bene il funzionamento di tale classe: mi spiego, per ora risolvo i miei problemi in questa maniera (premetto che non viglio usare CListView). Controller: public function actionNews($page=0)...
View ArticleHow To Use Cjson Encode() Decode() Namevalue()
I am working on part of a project and this phase will require me to and get some data from an internet site API that is returned in JSON format. I can get the data using "curl" at the command line on...
View ArticleForms And Cgridview?
Hi! I've hit a wall here. I'm using a form to search the db. After submiting the form I use CGridView to show the data. The data shows fine, but if I try to sort, change page, CGridView breaks, shows...
View ArticleExtension Nestedtree
new extension publication in progress... http://www.yiiframework.com/extension/nestedtree/ Waiting for your bug reports or any question concentrated nested set in tree.
View Article[EXTENSION] minScript
minScript is a Yii Framework extension which extends clientScript to automatically combine, minify and compress files. The files are served with optimal client cache headers which dramatically improves...
View ArticleOne-To-One Unidirectionnal
Hi eveyrone, I'm trying to make one to one unidirectionnal. The problem is, it does not work. Here is my entities: class A extends CActiveRecord { public function relations() { return array( 'logbook'...
View ArticleGiix Dropdownlist + Nestedsetbehavior + Virtual Attributes + 's
Hi Guys, I don't know if anybody has faced such a situation, but I can't really find relevant info on the net. I'm using Giix and nestedsetbehavior. based on this Wiki: Understanding Virtual Attributes...
View ArticleRights Assignment On User Creation
Hi everyone, i'm using yii-user + rights extensions. I would like to know if it would be possible to assign a role (keep using rights extension) for a user, during the user creation, with an yii-user...
View Article[Solved] Model Search() Filter By Relation
Hello! I have a problem trying to filter my results in my controller. I got 2 tables called Alumno and Proyecto, these tables are related by alumno.proyecto_id and proyecto._id as suposed to. Most...
View ArticleYii unit testing: phpunit + bootstrap extension + getBasePath
I have a Yii project using the latest bootstrap extension (which might not be important), and while trying to run unit tests, it throwed me an error: PHP Fatal error: Uncaught exception 'CException'...
View ArticleAssegnazione Ruolo Utente Durante La Sua Creazione
Ciao a tutti, sto usando le estensioni rights e yii-user. Vorrei sapere se è possibile assegnare un ruolo all'utente (continuando ad usare rights) al momento della creazione dell'utente stesso, tramite...
View ArticleNetbeans + Yiiframewrok
Hello, I want to start my first proyect with yii in netbeans and I cant do it, help me please. I read this wiki http://www.yiiframework.com/wiki/83/netbeans-ide-and-yii-projects/. Thank you¡¡
View Article