Posts by Luís Cruz • 226 points
4 posts
-
3
votes3
answers332
viewsA: Is it recommended to test model validations?
Regarding the situation of creating tests for validations, my answer is No. This is because you are probably already using a framework that already has tests and ensures that these validations work.…
-
1
votes2
answers327
viewsA: syntax criteria using Yii framework
The error appears to be a problem in WHERE, the query being executed is: SELECT COUNT(*) FROM path t WHERE caminho=/home/samba/Administracao/scordon/cdgrd/cdgrd.scp and should be SELECT COUNT(*)…
-
1
votes1
answer183
viewsA: .load does not work if element is already loaded
The problem is that jQuery code is running before iframe completes loading. To ensure that this jQuery code runs after the iframe is loaded, you need to use $(Document).ready. Example:…
-
6
votes1
answer13698
viewsA: Error Code: 1064 - Mysql
NATURAL is a reserved Mysql word (see http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html) Therefore, in the script, it should be replaced (...) INSERT INTO l01j14 ( j_codcli, j_nome, cind,…