Questions tagged as 'yii'

3
answers

Why Laravel instead of Yii?

It's been a while since I've actually developed PHP. In my latest research, about two years ago, I did not hear much about Laravel , while the Yii was leading some of the framework to be chosen for new projects. Anyway, my question can be...
asked by 14.01.2014 / 15:48
1
answer

Send email using cpanel account and PHPMailer

I'm trying to send an email using my cpanel account and the phpmailler class but I'm not getting success, the code I'm using is the same as the PHPMailler documentation, how should I proceed? , would anyone have a fucnional code to share? Thank...
asked by 13.11.2015 / 17:14
1
answer

With this rule below, how do I display the user's first and last name in the database?

Example of the name that is in the DB: José ALberto da Silva Nogueira. I would like you to show only José Nogueira. <?php if(!Yii::$app->user->isGuest) echo Yii::$app->session->get('nomeUsuario'); ?>     
asked by 29.12.2015 / 14:48
2
answers

Questions about Vagrant

I'm learning to work with the vagrant , I've already created VirtualMachine , I made the provisioning, the project ran perfectly. But when I enter via ssh in VirtualMachine to run a script php , which runs via shell, is expe...
asked by 12.02.2014 / 12:36
1
answer

Add path to fileField when clicking image with YII framework

I'm trying to make a fileField schema of the YII framework for when a user clicks on the image that is on the screen, the name of the image clicked will appear in the span and the value of the model in the fileField will receive the image. But I...
asked by 16.05.2018 / 15:12
2
answers

Getting data between 3 tables in yii, cgridview

I'm using the yii framework and I need the information that is in the table route. I am searching for this information from the vehicle table. There is a third table called Equipment In vehicle I have a foreign key called equipo_fk On route I ha...
asked by 23.10.2014 / 07:17
1
answer

Display data from two tables in grid with YII framework

Hello, I'm starting to develop web and I'm having a problem working with YII framework 1. I have in the application a grid that displays: product name, segment, price . All of this data comes from the database in two customer and produ...
asked by 09.10.2018 / 01:39
1
answer

Swiftmailer - Corrupted HTML on receipt

I'm having problems with Swiftmailer when I send a message and sometimes I get complaints that the content is completely broken (HTML removed). My software sends a lot of emails, and this problem happens almost every day, but we can not get a...
asked by 15.09.2014 / 20:39
1
answer

How to put the * Bootstrap ('glyphicon-bootstrap') icons in the Yii framework menu

I'm starting a project at the company where I develop, and we're thank you for using the Yii Framework along with Bootstrap , but I'm not you can put the Bootstrap ( glyphicon-bootstrap ) icons in the menu, follow the code example:...
asked by 07.07.2014 / 15:18
1
answer

php email - Swift_Attachment does not work

I'm trying to send an email but I can not attach a file. The file is copied to the upload folder 'tmp', I checked it and it is there. If I comment on the line that attaches the file, the email is sent but not sent instead. HTML: <div...
asked by 20.10.2014 / 15:42