Posts by henrique • 511 points
20 posts
-
1
votes1
answer558
viewsQ: How do I translate to en-BR?
I have a form with following code: {{ Form::selectMonth('month') }} this returns me the months in English, how do I translate his return to Portuguese?
-
0
votes0
answers652
viewsQ: Inserting double type value into mysql database
I have a Windowsform with a value field and I need to enter its value in the database. I need some example of how to do this? File that queries //Cadastrar Gastos public void cadastroGasto(Gasto…
-
2
votes2
answers1914
viewsQ: How to make Insert in tables with many relationship for many?
I’m having second thoughts about how I’m gonna do the Insert relationship n:n my tables are: Recibo Analise Analise_Recibo (recibo_id, analise_id)…
-
3
votes2
answers917
views -
0
votes2
answers243
viewsA: How can I create a Datagridview with Mongodb?
My problem can be solved in two ways. Follow the code of two dataGridView each presenting a solution: private BindingSource bindingSource1 = new BindingSource(); private void frmListaCli_Load(object…
-
0
votes2
answers243
viewsQ: How can I create a Datagridview with Mongodb?
I want to present the BD data in a table, but so far I could only do it using a ListView. How can I do it but using one DataGridView? using System; using System.Collections.Generic; using…
-
1
votes2
answers273
views -
3
votes1
answer1084
viewsQ: Going Up Laravel4 App for Shared Hosting
My access to this hosting can only be from the folder public_html forward, I can’t access a level back. I put all the project files inside public_html and inserted a htaccess with <IfModule…
-
1
votes2
answers141
viewsQ: Error making a Post
I am trying to save the information that comes from my registration form with this function: public function postCreate() { $this->beforeFilter('csf', array('on' => 'post')); $validator =…
-
0
votes1
answer35
viewsQ: Error accessing project on laravel4
I’m getting an error accessing the project on laravel4. It was working, but when I restarted my computer and tried to access again. I get the following error: Errorexception unserialize(): Error at…
-
6
votes1
answer233
viewsQ: Store Files
I have a question about uploading files, I have to create folders for each client and save files from them (word files, excel, txt, dwg, dxf, ascii, pdf) ? It would be feasible to store all this for…
-
0
votes3
answers9800
viewsA: Mysql Workbench - Create Database based on EER Model (Forward Enginner Options)
I do this: create the bd in mysql then open the Workbench and create my EER diagram, give a Ctrl+shift+z and go forward... One thing I like to do is copy the sql that is generated, because if there…
-
0
votes1
answer191
viewsQ: Improved image insertion in comics
How would be a way to minimize this image insertion code in the database? // controller/GaleriasController.php public function addGaleria { $galeria = new Galeria; $galeria->descricao = "galeria…
-
1
votes2
answers1449
viewsQ: Query in related tables
How would be an example of a bd query with related tables and an insertion of data in them. I have the tables : Produtos Tamanhos Generos I need to display in the view produtos.blade.php a list of…
-
0
votes2
answers318
viewsA: Populating database with Eloquent ORM
got popular doing this: $produto = new Produto; $produto->descricao = 'Lançamento 2012'; $produto->tamanho_id = $tamanho->id; $produto->genero_id = $genero->id;…
-
1
votes2
answers318
viewsQ: Populating database with Eloquent ORM
I have a database with some tables already populated, but now I have to popular the tables that have foreign key, I’m trying so: $tamanho = Tamanho::find(2); $genero = Genero::find(1); $categoria =…
-
2
votes3
answers1374
viewsA: Should I use routes or controllers in Laravel 4?
I’m no expert on Laravel but from what I’ve seen so far on the framework and on programming, the organization should be one of the points to be observed, so I have for myself that not mixing the…
-
6
votes7
answers3681
viewsA: What are the implications of not declaring variables in PHP?
I believe that the best way would be to declare the variable before using it because in the future you can avoid possible headaches when doing some editing or implementation in the code... Also…
-
7
votes2
answers2551
viewsQ: Problem with @extends in view on Laravel.
I have a problem with @extends('layouts.template'). Only my view that is as index that does not show the page, instead shows me only this @extends('layouts.template') on the page. What could be?…
-
4
votes2
answers3535
viewsQ: Displaying authenticated user data in the view
I have a problem that I believe is quite simple... I need to display the username logged in to my views... how do I do that? this is one of the views @extends('layouts.template') @section('body')…