Category Archives: PHP

Laravel whereDoesntHave

So working within laravel, You often find how far ahead taylor and the contributors thought for you. One great thing I recently had was I was trying to describe the need to constrain results of a set of models based on the relationship each model possessed. So what I needed was to be able to

Read more

WordPress theme development

WordPress theme development and an interesting few techniques to employ in your theme development. So over the last few years I’ve been working on the odd project in wordpress. Some have meant the need for custom work becoming projects, such as my wordpress MVC library. It has helped me in numerous projects and hope it

Read more

Traits

In PHP you may realise that you can only extend one class, single inheritance. And you will start to see frustrations in being only to extend one at a time. Sometimes you can’t just keep extending classes. Sometimes you end up in a framework extending length of oh say 15 classes or perhaps even more.

Read more

Magento code performance Tips

Well it’s high time I share a few tidbits of things that have a general purpose in PHP development but apply themselves to Magento code performance. Just a few little short things that may not seem like a lot but really do impact on your performance, especially as your Magento site begins to grow. I

Read more

Another wordpress CRM plugin

Hello, I have been busy a lot lately (the developers catchphrase). But I always want to share anything I can that may help you on your way or can inspire you to do better. About 6 months ago I was asked to make a CRM for a friends WordPress site, they asked for specific things

Read more

PHP – the final keyword

The ‘Final’ Keyword No! I am not starting off on that song by that 80’s dude that your parents sing. I am in fact referring to the not so handy keyword final keyword that is readily available to you from PHP5 onwards. Why use my words when other words can help: The moment you plonk

Read more

WordPress shortcodes for posts & widgets

Hello! This is a nice short code snippet/tutorial on using shortcodes in wordpress widget areas and for the like, in posts. One thing I have always found handy is to have two shortcodes that don’t need to be updated when you move a site from local to production or from a live server to your

Read more

Recursion

Have you ever heard someone use this phrase: it’s a recursive function well lets explain it quick: Recursion: A function that calls itself So have you ever seen code that has many layers/levels of foreach loops do something? I can actually recall a function that would be called and had around 4-5 foreach loops running

Read more

PHP by reference

PHP by reference. Well this is something I thought I would add for those that may get confused by this aspect of PHP, I know for a fact when I started in PHP I was confused to begin with and would’ve much preferred someone to openly, simply and frankly explain it! So here we go…

Read more

Hello world!

Well hello and I think I owe you all a: be patient! I have had my old website up for a good 3 years and in the web world that can be an eternity (hey, a website loading more than 5 seconds is internet eternity). I had been meaning to redevelop to a new site

Read more