Gridview Com Relacionamento Aninhado
Boa Tarde pessoal! Tenho uma dúvida, por exemplo, tenho 3 tabelas.. Estado, Cidade, Revenda, onde Revenda está diretamente relacionada a cidade apenas e consequentemente cidade a estado.. As relações...
View ArticleSelect distinct value
Hi, I am trying to select distinct value from a table. $models=Product::model()->findAll(array( 'select'=>'t.Category', 'distinct'=>true, )); Using the above, I get an array of Active Record....
View ArticleAdd A Fillable Line In Cgridview
Hello there, I'm looking for a way to add, at the end of a CGridView, a fillable line using CJuiDialog. I don't think there's already a method in CGridView to do that, but peharps someone did it ?...
View Article[Yiibooster] [Select2]
Dear yii-collegues, I have a form with yiibooster and a select2Row with person names (1 MB of data or 20000 records!). To avoid loading the complete data at the time of document loading (which took...
View ArticleRecharger Un Widget "maison"
Bonjour, J'ai un léger souci avec un widget que je suis en train de faire. Actuellement, j'ai une page qui contient un moteur de recherche, un CGridView et une image générée à la volée par mon widget....
View ArticleErro Com Session
Boa tarde. Estou com um problema muito estranho no Yii. Quando um usuário faz login, estou usando o setState para definir a session do usuário, mas isso não está funcionando. O estranho é que se eu...
View ArticleUpload Multiple Files On Insert
Hi, Please I really need some advice to implement this. Don't even need the code... I just need some ideas. When user is creating a new record, I don't know the id of this to link the uploaded files....
View ArticleModel Relation With Yii-User Profile Fields?
I'm looking to enable search criteria in a model for a related module's model. Here's an example to explain what I mean: I have a 'Product' model which contains 'user_id'. In Yii-user I created a...
View ArticleAccess Rules Not Working Properly
I have problem with access control. I have rule: array('deny', 'actions'=>array('index'), 'expression'=>'Yii::app()->user->isRegistered()', 'deniedCallback' =>...
View ArticleCss Registered In View
each view has a different CSS that must be rendered after the CSS that registered in layouts, what's the solution? because the CSS registered in the view will be rendered first
View ArticleFont2Web Solved The Issue That Customer Font Is Not Working In Ie
<Scenario>: We have the customer want to show their company's font into web page. They provided me the ttf font file. I simply insert below code into main.css file, @font-face { font-family:...
View ArticleSpecifying Access Rules Specific Error Message In Controller
Hi, I am currently using yii 1.1.10 version in which I am trying to specify rules specific error message by defining message in accessRules function as specified below: public function accessRules() {...
View Articlesimple search form
Hello everyone thank you in advance for any help In view/index.php main page file I have to add simple form: <?php echo CHtml::beginForm(); echo CHtml::textField('text_to_find_ID', ''); echo...
View ArticleCalculating Fields In A Relational Query
I am pounding my head on the desk trying to get calculated results from a HAS_MANY relation. Specifically I want to add quantities together in model: public function relations() { // NOTE: you may need...
View ArticleHow To Download A File Using Curl ?
Hey Yii Community ! I need to retrieve a file from a site using Yii with a curl command. From the command line I would use curl -X GET 'http://www.site.com/report-download?id=123213123' > foo.csv...
View ArticleHave A Gridview To Retrieve Selection In My View/create
Hi i'm a little new to Yii, I have a model Client and a model Work with a Work/client_id field (FK). I want that in Work/view/create I can click a button and search a value in Client/view/admin,...
View Article[Extension] Yiiamqp
Hello, Has anyone successfully installed and used this extension? I followed their instructions and get this error when try to apply it: "Alias "application.components.RabbitMQ.RabbitMQ" is invalid....
View Article"get_Class() Expects Parameter 1 To Be Object, Array Given"
I have the following code: $dp=new CArrayDataProvider($model->person->emails); $this->widget('zii.widgets.grid.CGridView', array('dataProvider'=>$dp, 'columns'=>array('address',...
View ArticleAjax+Setflash
Всем доброе утро. Есть Ajax ссылка и экшн: //В представлении: echo CHtml::ajaxLink( Yii::app()->createUrl( '/product/addtowishlist' ), array( 'type' => 'POST', 'data' => array( 'product_id'...
View ArticleHow To Use Bulk Action In Yiibooster
I want to delete multiple(selected) rows by use yiiBooster,any code example.Thx $this->widget('bootstrap.widgets.TbExtendedGridView', array( 'type' => 'striped bordered', 'dataProvider' =>...
View Article