Posts by Henrique.Araujo • 105 points
8 posts
-
2
votes3
answers16590
viewsA: Align side-by-side fields in a form
HTML <form class="form"> <div class="section"> <div class="control-group"> <label class="control-label">Selecione algo</label> <select class="control"> <option…
-
2
votes2
answers140
viewsA: Does anyone know of a function that considers special characters like "://" in php without being strpos()?
easy $url = 'http://site.com'; if(substr($url, 0, 7) == 'http://') echo "A url comessa com 'http://'"; else echo "A url nao comessa com 'http://'";
phpanswered Henrique.Araujo 105 -
1
votes1
answer827
viewsQ: How do I send a message to a specific room with Socket.io?
How do I send a message to a specific room? guy: server.js io.in('roomA').on('msg', function(msg) { ... }); client js. io.in('roomA').emit('msg, 'Hi');…
-
2
votes1
answer296
viewsQ: Angular 2 with jQuery
Eai personal, I wanted to know if the use of jquery along with angular2 is recommended, or the angular already has native functions for DOM manipulation as well as jquery? my case I wanted for a…
-
-2
votes2
answers56
viewsA: Help with $this and self in php
HICCUP: abstract class BaseModel { public function find($params){ $table = ''; if($this) $table = $this->$table; else { $u = new User(); $table = $u->table; unset($u); } //... } } class User…
-
-1
votes2
answers56
viewsQ: Help with $this and self in php
abstract class BaseModel { public function find($params){ $table = $this->$table; //... } } class User extends BaseModel { protected $table = "users"; } if I do: $u = new User(); $u->find([]);…
-
1
votes1
answer112
viewsQ: Help with the Mongoosis
Not understanding what happened: ready = function() { groups = mongoose.model('groups', schemas.group); groups.find({}, function(err, docs){ for(i in docs){ console.log(docs[i].name); } return docs;…
-
1
votes0
answers1095
viewsQ: How to redirect to a js Node page?
I can do this more with a route, but I want to do something like: app.redirect(url); and not: app.get('/', function(req, res) { res.redirect(url); }); someone can help me? vlw , and obgd!…