Posts by Flávio H. Ferreira • 931 points
14 posts
-
0
votes5
answers4257
viewsA: Row size Too large (> 8126)
I could update change my engine from Myisam to Innodb with this approach. SET SESSION innodb_strict_mode=0; ALTER TABLE `tblHostQualityVisit` ENGINE = 'InnoDB'; SET SESSION innodb_strict_mode=1;…
-
4
votes2
answers809
viewsA: How to load a view into a layout?
The Error is in this passage: $this->layout->$this->layoutcontent = View::make('admin.index'); The property is content but you have $this->layoutcontent, you should change to :…
-
0
votes3
answers427
viewsA: How can I include the 'Submit' button in the 'POST' matrix generated by 'serialize'?
Add the attribute "name" to the button(Submit) and the serialized value will be the attribute "value" and the same should be the Item clicked in the form
-
11
votes2
answers927
viewsA: How to log only active users?
Pass the third parameter that corresponds to your status column (active or inactive, as activated): $userdata = array( 'email' => Input::get('email'), 'password' => Input::get('password'),…
-
17
votes2
answers4531
viewsA: Group and add array with PHP
Example of array_count_values() <?php $array = array(1, "ola", 1, "mundo", "ola"); $a = array_count_values($array); ?> or your: $array = array("vermelho", "vermelho", "vermelho", "verde",…
-
3
votes5
answers87966
viewsA: How to print content inside a HTML div?
function printDiv(divID) { //pega o Html da DIV var divElements = document.getElementById(divID).innerHTML; //pega o HTML de toda tag Body var oldPage = document.body.innerHTML; //Alterna o body…
-
1
votes2
answers2551
viewsA: Problem with @extends in view on Laravel.
In his template.blade.php you used: @section('body') and the right thing would be @yield('body') If you want to use with Section, in your view that extends the template.blade.php you will use the…
-
4
votes2
answers3535
viewsA: Displaying authenticated user data in the view
In your View you will already have: {{ Auth::user()->nome }} to display the user name Logged in. You can pass multiple variables to your view: $produtos = Produtos::all(); $novidades =…
-
8
votes2
answers3535
viewsA: Displaying authenticated user data in the view
{{ Auth::user()->nome }} Or in place of the name property, which you need to use.
-
3
votes3
answers572
viewsA: Error with complementary routes in Laravel 4
You can submit via POST all for the "fetch": cidade/{city_id_slug}/bairro/{neighborhood_id_slug?}/profissao/{profession_id_slug?} And redirect to a route GET with the URL handled. I believe it is a…
-
2
votes3
answers2387
viewsA: User-friendly URL for GET (search) form in Laravel 4
I when it comes to a Search, I use the conventional GET, but in case you need a search (Friendly) , a suggestion would be, vc create a page to handle the Search request, redirecting to the search…
-
13
votes3
answers2493
viewsA: How to check if a string has only uppercase letters?
$string = "ABCDE"; $uppercase = preg_match('#^[A-Z]+$#', $string); or $string = "ABCDE"; if (ctype_upper($string)) // retorna true se toda string estiver em maiúscula { echo "A string $string está…
-
0
votes2
answers1138
viewsA: Implementation Angularjs consuming data provided from Laravel using CORS
One of the best posts I saw concerning Laravel + Angularjs was this link below: http://blog.neoxia.com/laravel4-and-angularjs/…
-
11
votes5
answers1837
viewsA: How to create a configuration file in Laravel 4?
You can create files in the settings folder, nome_do_seu_arquivo.php, and access the properties via: Config::get('nome_do_seu_arquivo.nome_da_propriedade'); Or:…