Tags

PHP

All things PHP.

Read more

Version 2

This is for KO2 mods

Read more

List manager

I seem to work with lists quite a lot, I decided to make it easier by creating an object based list manager which works quite well.

The main usage for this was to allow things that live in <head> sections to be added/modified on the fly inside a controller without having to deal with multiple base templates.

Installation

I install…

Read more

Clean - PHP Tidy and Kohana

So I need a cleaner method of parsing my HTML output to ensure that my really badly written markup doesn’t get passed to the end user. I decided to give PHP Tidy a whirl and here is the solution I came up with. I can’t take much credit for this because I gleened large parts from the…

Read more

Version 3

This is for KO3 mods

Read more

Coding WTF of the day.

I came across this snippet today on the PHP manual page.. The page was actually about a function called scandir() which lists all files in a directory. This is of interest as I have always used the old school opendir() system to achieve this. The point however was that browsing the comments, I noticed this.

Engine change update

I changed it around.

I decided to really break the model system down hardcore after I wrote the last article. I now have 7 models dealing with data in many ways.

Model_file

This model deals with files directly, this includes checking for readability, existence, etc.

Model_directory

This model deals with directories, this sometimes includes asking Model_file, and Model_process (below) for…

Read more

A change of engine

What?

I changed the engine on my main site, I decided to write a new project in KO3 (Kohanaphp v3) to trial it more than anything.
My goal was simple, create a document engine that would serve documents like a wiki with a blog style front-end to show them in chronological order.

When?

The complete project…

Read more