Posts by Julio Alves • 83 points
8 posts
-
1
votes1
answer79
viewsQ: Nodejs: In a controller method, how to perform two different model functions?
I need to render a page with the data of an Author and the listing of their News. In this case, I am considering two tables: authors and news and their respective models. Database: Mysql;…
-
0
votes1
answer112
viewsA: Codeigniter - Problem in installing phpdotenv library (.env - for environment variables)
I managed to install phpdotenv in a different way from the instructions of the first tutorial. In this tutorial the installation is done without the use of Composer. Phpdotenv for Codeigniter…
codeigniter-3answered Julio Alves 83 -
0
votes1
answer112
viewsQ: Codeigniter - Problem in installing phpdotenv library (.env - for environment variables)
I am trying to install phpdotenv in Codeigniter 3 by following these instructions: Environment Variables in Codeigniter But, it’s giving the following problem: A PHP Error was encountered Severity:…
codeigniter-3asked Julio Alves 83 -
0
votes1
answer465
viewsA: Laravel 5.2 - Relationship Many To Many between records of the same table
With the information found on https://github.com/laravel/framework/issues/441 I did the following relationship on the model and it worked (to simplify the tests, I left out the kinship column):…
-
1
votes1
answer465
viewsQ: Laravel 5.2 - Relationship Many To Many between records of the same table
The tables: The table users, records users who may have N functions that are stored in the table funcoes (student, responsible, teacher, etc). The table funcao_user is pivot that makes the…
-
1
votes1
answer465
viewsQ: Laravel 5.2 - validation rule does not work
I need to do a validation of a zip code field, but the following attempts do not work: $rules= ['cep' => 'required|numeric|size:8']; ou $rules= ['cep' => 'required|numeric|min:8']; ou $rules=…
-
2
votes0
answers219
viewsQ: How to parse XML with namespace and prefix in PHP using Simplexml?
The.xml data file: <?xml version="1.0" encoding="utf-8" ?> <rsp status="ok"> <ArrayOfContact xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"…
-
2
votes1
answer259
viewsQ: How to pass an SQL expression for an UPDATE to Zend?
My Mysql DBMS has a table called elements where one of the fields is called posicao and is like int (6). I need to update (SQL) where the field posicao shall be updated with its own value by…