Skip to content

Tag: php

Disable swiper.js autoplay using inline if statement

Im trying to disable the swiper autoplay depending on a widget name parameter that gets me the a value. (Im using magento widget and i get the value from the widget.xml) Here is a example: with the other values its easy because its a true of false but in this case i need that code to appear if my $block->g…

find() does not get the existing row

I have a resource Controller with this index method like this: But it returns this error: Trying to get property ‘slug’ of non-object And when I dd(Category::find(25), Category::find(24), Category::find(23), Category::find(22)); I get NULL results. Meaning that it can not find data with specified …

Upload Images in two different paths Codeigniter

I’ll try to upload an Images into two different path, but it always uploaded in single path only, here’s my code in a model : The upload function (also in the model) Only the _uploadImage function worked, but the _uploadImage2 not work Can you tell me what’s wrong? Answer The problem is that…

Cannot union two Joints Laravel

Im trying to union 2 joins, but im getting weird error… I have “Clientes” -> means clients, and i got all the clients that they got registered in orders and news. In news table i got the cliente_id -> client_id , And in orders, i got the same, cliente_id -> client_id, In news i got …

symfony CLI, how to open ports on mac? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 11 months ago. Improve this question I’m trying out Symfony for the first time, so I installed all the stuff required to …

My mysqli statement is not storing any data

As a part of my training, my team leader asked me to make a simple login in PHP, I have created a controller that receives the username and the password from a JavaScript file, and then triggers an SQL query using parameters, that’s where my first problem starts. I execute the statement but then I can&#…