Posts by Felipe Rodrigues • 56 points
3 posts
-
1
votes1
answer301
viewsA: Treat exception when replacing string via Javascript
I made an example with comments. The logic is simple... Vc saves existing tags in a separate array Replace all "word" with "wordWithTag" Back with pre-existing tags for the place To reserve the…
-
1
votes1
answer83
viewsA: Consult with INNER JOIN and choose the loop reference
Just "count" the table Ids you want, then you can do something like this: SELECT cad_produto.*,cad_variacoes.*, count(DISTINCT cad_produto.id) qtd FROM cad_produto INNER JOIN cad_variacoes ON…
-
2
votes1
answer95
viewsA: Autoloader Zend Framework 1.12
Ideally the class name would be: class Application_Models_Dbtable_Actor extends Zend_Db_Table_Abstract {... Thus it would follow the standard PSR-0, because the autoload follows this pattern.…