My name is Stefan Ashwell and when I'm not coding personal projects or painting miniatures, I'm a Software Engineer at Holmes Media in Market Harborough.

This blog is a place for me to write about things that require that little bit extra to solve. We all have gaps in our knowledge and every now and then I need to reach out on search engines or blogs to find an answer. Often, these answers come from multiple sources. This blog serves as a personal resource, but if it's helpful for me I'm sure it'll help others too!

CodeIgniter

CodeIgniter Base Model

Posted on 14 September 2016

Why Use a Base Model? I like to use a base model for common CRUD tasks that every model will need to perform. Rather than duplicating lots of code to retrieve database records this stuff can be written once and used by all of them. Of course, some models might need something slightly different, which […]

Continue reading

User Authenication in CodeIgniter – Some advanced techniques

Posted on 12 July 2016

Today we look at user authentication in codeigniter and some best practices to use when building a secure login environment for members of an application. Our goal here is not just to allow users to login and access members only content. We can do this very easily by setting some session data after checking the […]

Continue reading

CodeIgniter Development Series

Posted on 11 July 2016

What is This Series? Welcome to a new series on Code Bastard – CodeIgniter Development. I’ve been using CodeIgniter extensively now for over 5 years, and have learnt a lot over that time. With this series I’d like to add some meaningful tutorials discussing how you can use CodeIgniter in real world situations. What I […]

Continue reading