This category is all about writing clean, modern PHP for real web applications. You will find guides that cover everything from basic syntax and functions to object oriented programming, design patterns, and working with external APIs. Each tutorial focuses on practical examples you can drop into projects right away, such as handling forms safely, organizing your code into reusable components, and structuring apps so they are easy to extend later.
I also dig into everyday developer concerns like debugging, logging, and error handling so you can track down problems quickly in production. Articles highlight common security mistakes, show you how to avoid them, and walk through performance tips that keep your PHP code running fast under load. Whether you are maintaining legacy sites or starting fresh with a new project, this PHP category is designed to help you write code you are not embarrassed to deploy.
Today I am going to show you some different methods that can be used while using the SOAP API V2 method versus V1. There are a couple of settings that you should be aware of in Magento regarding the API that can impact your API call. You can find these settings here: System > Configuration…
Have you recently discovered that when you try to submit a rating from the backend you receive a 404 error? I ran into this issue with a client of mine and after several minutes of debugging installed 3rd party extensions, I found that this is indeed a core coding issue with Magento’s code. The Magento…
I decided to write this post since there is not much documentation related to getting the customer group id for a coupon. The best way to achieve this is to grab the customer group id using the function getCustomerGroupIds(). Below is a simple and fast way to get this using the salesrule/rule model. Now you…
When creating forms for Magento, it is helpful to know the different types of built-in fields that can be used while creating a form. The below examples can be used to create an admin form by extending the Mage_Adminhtml_Block_Widget_Form block. Hidden Field Text Time Textarea Submit Select Example 1 Example 2 Radio Example 1 Example…
If you have an array that contains a hundred different values, you may be wondering how you can check if that array contains a certain string. As you may already know, you can use the foreach() function to echo out each value contained inside the array. But let’s imagine that we simply want to execute…