Skip to content

Setting Bootstrap navbar active class in Laravel 5

I’ve been wondering around looking for solutions, but can’t really understand especially when creating helpers. I’m new in Laravel and I want a simple or if not a detailed instruction on how to set …

how to use not null condition in YII2

Hi i want to use not null condition in my yii2 query how should i use that. i don’t want city and state null. My query is $query = new Query; $query->select(‘ID, City,State,…

How to add woocommerce custom order status?

I have added new custom order status to woocommerce by using following function. whenever I go to edit order and changed the order status to newly added custom order status and click on Save Order button. After loading the order status automatically changes to Pending Order not stands in newly added custom or…

readfile downloads an empty file and wrong file type

I am using the code below to download a csv file from a button click. JS: csv.php: download.php: When I execute the function, the file downloaded is download.php despite the correct headers being passed (confirmed via console), the file is also empty. Also when I use print() it prints the CSV data so I know t…

Guzzle returns cURL error 3: malformed

I want to try out the guzzle library and am following through their quickstart tutorial to make http requests to an api. Yet it doesn’t seem to work, because I get the following error: Since I have never worked with cURL before, I don’t even know how to respond to that error message. Here is my co…