Yii Password Strategies
Just added this extension: http://www.yiiframework.com/extension/yii-password-strategies/ It deals with hashing and verifying passwords according to specific configurable strategies, so that different...
View Articleplease test my AR Enhancement: automatically sync MANY_MANY table when...
Hi everyone, let´s think about pimping up our relation ActiveRecord up even further. Assuming the following MANY-to-MANY relation: Post has: 'categories'=>array(self::MANY_MANY, 'Category',...
View ArticleYii And Node.js Integration
Hi All, Can anyone of you please guide me to some useful resource that can really help me to integrate YII with node.js. Regards
View ArticleDynamic change table name in AR
Hi, is it possible to dynamic set table name in AR before I will create object of model?
View ArticleAccess Model Attribute With Two Relation.
I have a problem while sorting model attribute that we are displaying with two relations. $sort = new CSort; $sort->attributes = array( 'c_name'=>array( 'asc' => 'client.name', 'desc' =>...
View ArticleAbrir Pdf Em Nova Aba
Gente to usando a extensão mpdf, queria abrir o relátorio em uma nova aba meu código ta assim: $this->layout="//layouts/pdf"; $mPDF1 = Yii::app()->ePdf->mpdf(); $mPDF1->WriteHTML(...
View ArticleMultiple Databases In One Model
I am trying to query multiple databases (same table, same structure, just different databases) in a model file. I am using the "mpgii" extension to create the models. Then I override the connectionId()...
View ArticleGoogle Address Autocomplete With Cjuiautocomplete
I would like to impletement address autocomplete on my site. I have tries some solutions, but no meets my requirements - they always return addresse in wrong format (I need street_name street_number...
View ArticleQual'è Il Modo Migliore Per Testare L'effettiva Connesione Al Db ?
Sto provando questa strada try { $this->db = new CDbConnection("pippo","pluto","paperino"); } catch (Exception $e) { $this->lastError = self::NQM_DB_ERROR; } Il problema è che Yii genera comunque...
View ArticleForm Field Values Not Saved In Database
Hello everybody, I am trying to insert a new Comment into the Comment table with the Create Controller generated by gii. Everything works except that the form field parent_id is being ignored. I am...
View ArticleFormatting Clistview Correctly
Hi I am working on a CListView that has me stumped. I am trying to format a single CListView into 3 columns, Below I've attached a picture of my list of States I've grabbed from my Database Table, I am...
View ArticleYii - Access Actioncontroller In Modules
Hi all, How to call a action controller in module? I access the url with the address Quote"example.com/admin/test" I've action controller test like this...
View ArticleJquery-Gmap Extension On Tbtabs
Hello all yii friends!! Plz help me!! I have some problem with jquery-gmap extension. In my view I use bootstrap.widgets.TbTabs and I put my Map in here. My problem is that when Map load marker is not...
View Article$Model->Attributes=$_Post['newsletter'] Ignora I Valori Non Db
Ho un model 'Newsletter' che oltre ai campi di db contiene una proprietà pubblica 'rcpt_address_list', che è poi solo una stringa Ho verificato che sull'azione post il campo viene spedito come...
View ArticleYII HanziTools 汉字中文业务处理
本扩展基于google code pzpinyin项目修改的 方便大家处理一些常用的汉字处理用. Yii::import('application.extensions.Hanzi.HanziTools'); $pzt = new HanziTools(); // prints 'hello world' in Chinese echo $hello_world = "世界你好"; //...
View ArticleHow To Load Extensions & More From Somewhere Else?
Hello I have used yii for some small sites and like how it works so want to use it for a larger project but am unsure if its suitable for what I want to achieve. Basically I want to use one core...
View ArticleUse Email Or Username To Login But Allow Empty Username
In my version of user component it's possible to login using email or username. During registration username is allowed to be empty but if it's not empty I'd like it to be unique. What is a neat way to...
View ArticleExecute Ms Sql Stored Procedure
Hi! I've started using Yii just a couple of days ago. Setting up was easy. I'm still learning the whole MVC architecture. I need to execute stored procedures from a MS SQL Server Database. I have a...
View ArticleGetting Tab Id In New Record
Hi guys, in my application i'm going to use a form in CJuiTabs, where i want to have the id for each tab posted to the new record as well. How can i do this? My current code for it is: View: <?php...
View ArticleBest Clientscript That Combine And Minify Css/js
Searching for the best ClientScript that combine and minify CSS/JS I've made a modification over original EClientScript (extended CClientScript) that uses stronger hash involving mtime of all files...
View Article