Posts by rpereira15 • 407 points
16 posts
-
1
votes2
answers1139
viewsA: Unhandledpromiserejectionwarning - Registration Error with Mongodb and Node.js
The error is in the first line: Location Object expected, Location array not in correct format Change your model for test purposes only: const DevSchema = new mongoose.Schema({ name: String,…
-
0
votes1
answer219
viewsA: Doubts on how to do inheritance with PHP using Codeigniter Framework
I believe you confused the concept of inheritance (which can be seen here), relationship of objects. From what I understand, you have a Product class, in which you want to have the information of…
-
0
votes2
answers449
viewsA: php cadastre with angular js
Good afternoon. Then I work with the API format and the front in Angular. First you have to download and integrate into the code a lib of this link. Read it well, it’s simple, really. After that,…
-
0
votes1
answer87
viewsA: thumbnail codeigniter
Good afternoon. I would use it this way: function _createThumbnail($filename,$path) { $this->load->library('image_lib'); $config['image_library'] = "gd2"; $config['source_image'] =…
-
2
votes2
answers105
viewsA: Join repeats records again?
Good afternoon. I think if I change the line $this->db->select('*'); To $this->db->select('elev_plans_types.*'); You will be right. It turns out that if you just put '*', you’re having…
-
4
votes1
answer1297
viewsA: Set Timezone in Codeigniter
Good afternoon. I use this line on index.php date_default_timezone_set('America/Sao_paulo'); But you can read more on PHP Timezone I hope I helped! Oss…
-
0
votes2
answers1117
viewsA: Email codeigniter SMTP error was encountered: 450 4.7.1
I guess I missed starting the lib with the settings. $config['protocol']='smtp'; $config['smtp_host']='smtp.xxx.xxx'; $config['smtp_port']='587'; $config['smtp_timeout']='60';…
-
1
votes1
answer331
viewsA: Android and HTTP request field X-auth-token
Good afternoon. Dude, I found the same problem with Authorization. I made a rule to rewrite it in . htaccess as follows: RewriteEngine On RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* -…
-
2
votes1
answer287
viewsA: Watermark image upload in codeigniter
Good afternoon. I had a similar problem with generation of thumbnails. The solution was to load the lib out of the foreach and with each new configuration parameterized, I used the following code:…
-
7
votes2
answers690
viewsA: Use of artificial intelligence techniques to solve complex problems
Good afternoon. As a TCC, I have made a decision-making support software for companies that work with technical maintenance (whether it’s computers or not). My method for software decision-making…
-
0
votes2
answers792
viewsA: codeigniter - list related data
Good afternoon. I would change to the following code: public function get_events() { $this->db->Select('events.*, channels.*, colors.*'); $this->db->join('channels', 'events.channel_id =…
-
0
votes2
answers590
viewsA: Checkboxes from Codeigniter database
Can the type of support be more than one per call? If you can’t, follow my tip, try using radiobuttons with the same name, as follows: <?php foreach ($apoioPertendido as $row) { ?>…
-
2
votes1
answer353
viewsA: select option as parameter for codeigniter method
There is, my friend. Assuming that the name of the combobox is consulta would look like this in the controller: public funcition Consultar(){ $parametro = $this->input->post('consulta');…
-
1
votes1
answer80
viewsA: Links and Scripts not found with CI-3
I always work with the base_url(), can confer the documentation on the link In other words, I define in config.php the main url of my project, and every time I upload a file, I call base_url first…
-
1
votes2
answers5168
viewsA: Update with Codeigniter
I believe that the "$this->db->set", should be field by field of the table in question, because if you drop the entire $data array within the set will give syntax sql error. Inside the array…
-
1
votes2
answers372
viewsA: Set field to null - Codeigniter
Dude, why don’t you arrow in Active Record which fields you want to update? Particularly I prefer to update only the specific data: Assuming you will update only the name (which is filled in) and…