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

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 Article


Image may be NSFW.
Clik here to view.

please 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 Article


Yii 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 Article

Dynamic change table name in AR

Hi, is it possible to dynamic set table name in AR before I will create object of model?

View Article

Access 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 Article


Abrir 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 Article

Multiple 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 Article

Google 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 Article


Qual'è 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 Article


Form 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 Article

Image may be NSFW.
Clik here to view.

Formatting 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 Article

Yii - 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 Article

Jquery-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 Article

Image may be NSFW.
Clik here to view.

YII HanziTools 汉字中文业务处理

本扩展基于google code pzpinyin项目修改的 方便大家处理一些常用的汉字处理用. Yii::import('application.extensions.Hanzi.HanziTools'); $pzt = new HanziTools(); // prints 'hello world' in Chinese echo $hello_world = "世界你好"; //...

View Article


How 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 Article

Use 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 Article


Execute 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 Article

Getting 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 Article

Best 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
Browsing all 18717 articles
Browse latest View live


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