Archive for category 'PHP'

2012
26
Feb

Overloading Codeigniter DB Driver

Working with Microsoft SQL Server and PHP isn’t always the easiest thing to do. There are always like quarks you have to work around and even big problems that have to be fixed before anything else can be done. One of the most annoying things I have found is that MSSQL doesn’t have an offset … Continue reading

2011
20
Sep

Now I’m Confused

I’m working on a Magento module and I got an error message saying “An error occurred while saving the page.” Right under it I gut a success message saying “The page has been saved.”

2011
19
Sep

Custom CodeIgniter Validation Methods

CodeIgniter’s Form Validation library isn’t bad. It takes a little getting use to but it can be very powerful. Most of the validation that comes with CodeIgniter are pretty much the only ones you will ever need. Every now and then you will need something else. Extending CodeIgniter libraries is very easy. These are some … Continue reading

2011
16
Sep

Blocks in Magento

One of the things Magento got right is blocks. It’s one of the few things I am continually impressed by. There are a lot of ways to add a static block to the page. XML is probably the most common place to add a static block. You find whatever block you want to add your … Continue reading

2011
18
Jul

Setting Up Virtual Hosts in Zend Server CE on OS X

What is a virtual host? Virtual hosting is a method for hosting multiple domain names on a computer using a single IP address. Shared hosting uses this same method for all of the sites they host. Aren’t those URLs you use in Zend Server getting pretty ugly? Would you like to change http://localhost/my/awesome/website into http://www.super-awesome.local … Continue reading

2011
16
Jul

Installing Zend Server CE on OS X: A Guide For the Terminal Timid

I use MAMP Pro both at home and at work for development. It quick, it’s easy and I really don’t have to fiddle with it a lot after it is set up. It’s perfect for me. At work we have a project to be built with Codeigniter sitting on a Linux machine but we wanted … Continue reading