Posts by João Mello • 151 points
7 posts
-
1
votes1
answer120
viewsA: Form::model+checkbox in view Edit
I finally managed to solve. <?php $array = explode(",", $curso->turno);?> <label><input type="checkbox" name="turnos[]" value="Manhã" <?php if(in_array('Manhã', $array)) echo(…
-
1
votes1
answer184
viewsA: Error installing Laravel via Poser (Mcrypt required)
sudo apt-get install php5-mcrypt sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available sudo php5enmod mcrypt sudo service apache2 restart I just did on my Linux 14.04 LTS…
-
2
votes2
answers823
viewsA: Store values in the variable
$_SESSION['var'] = array(); array_push($_SESSION['var'], '1'); // adiciona no array array_push($_SESSION['var'], '2'); // adiciona no array array_push($_SESSION['var'], '3'); // adiciona no array…
-
0
votes1
answer120
viewsQ: Form::model+checkbox in view Edit
I’m using form::model for data editing. It works correctly but checkbox returns empty. How do I return the ones saved in bd? I want them to show the ones who are registered. For example: in the…
-
2
votes6
answers1001
viewsA: Error installing Composer in Laravel 4 Project
No use changing to "laravel/framework": "4.1.*" I already had this problem, you have to have version 4.1 and install the Ardent also as I asked here Problem 1 - zizaco/confide dev-master requires…
-
8
votes2
answers927
viewsQ: How to log only active users?
In authentication beyond the data needed to log in the user, I want only those who are in status ativo = 1 log in, but I don’t know how to do this check. table user: id username email password ativo…
-
0
votes3
answers995
viewsA: Error: Mcrypt required in Laravel 4
Debian/Ubuntu //Cria um link para mods-available sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available //Habilita o mcrypt sudo php5enmod mcrypt //Reinicia o apache sudo service apache2…