Questions tagged as 'yii'

2
answers

Call a controller action for the views

I'm using Yii2 and doing a site project where one of the features is to list the movies bound to a specific user. I already have a method to associate the movies with the accounts and one that does the inner join of the tables. (Actions Code)...
asked by 15.12.2017 / 18:03
0
answers

Permission problem uploading files

I've created a product listing that contains a upload function for images. The operation is being done normally, the file goes to the given folder, and through the system until I can see the image from which I did the upload . The problem...
asked by 03.07.2017 / 18:47
1
answer

Accentuation with most up-to-date server problems [duplicate]

I have 2 servers with the following settings: Server 1:    PHP 5.3.10   Apache 2.2.22   MySql 5.5.43   Ubuntu 12.04.5 LTS Server 2:    PHP 5.6.9   Apache 2.4.7   MySql 5.5.43   Ubuntu 14.04.2 LTS I'm using the Yii fr...
asked by 16.06.2015 / 15:18
0
answers

Connection restarted [closed]

Below is the code for my main class <?php // uncomment the following to define a path alias // Yii::setPathOfAlias('local','path/to/local-folder'); // This is the main Web application configuration. Any writable // CWebApplication propert...
asked by 12.06.2014 / 16:21
2
answers

syntax criteria using yii framework

I'm having trouble performing where using criteria, I'm posting the code I'm doing and below the error .. Criteria Code $criteria->compare('id',$this->id); $criteria->compare('data_hora',$this->data_hora,true);...
asked by 17.07.2014 / 15:52
1
answer

How can I make an attribute comparison?

How can I compare> 0 or
asked by 26.02.2016 / 00:04
2
answers

How to format date Yii?

I need an example function to change the date to the Brazilian standard.     
asked by 24.03.2015 / 20:36
1
answer

How to do URL Friendly

I'm using Framework Yii and need to create URLs friendly. URL Example: http://meudominio.com/meuControle/minhaView That is Equivalent to: http://meudominio.com/index.php?r=meuControle/minhaView No con...
asked by 26.11.2014 / 16:15
2
answers

Loading View only (without Layout) - Yii Framework

I'm customizing a website at Yii . And I'm wondering how do I access a file that is within the protected/ directory. I'm using a javascript function to only load view of admin , but I think it's protecting (as expected). It...
asked by 04.04.2014 / 20:09
2
answers

YiiFramework field validation

I'm starting in Yii Framework. I have created the following database: Table Contact: code, name, address, city, neighborhood, state; Phone Table: code, phone, idcontato . When you click save, it does the validation only in the fields of...
asked by 15.07.2014 / 15:52