Codeigniter, PHP

Wolf CMS: Related pages plugin

For many small projects I’ve been using Wolf CMS.  a really nice and fairly lightweight application for managing content.  What I like about it is that the core code is quite minimal, but allows you to extend using plugins.

Recently I’ve been asked to build a site that requires a the ability to relate other pages to the one an editor is currently editing.

The plugin can be downloaded here. Note: This version is for Wolf 0.7.2 and above. The older plugin for Wolf 0.6 is also available. Once installed in the plugins directory and enabled in the administration screen, the following tab is now available when editing pages: Once installed in the plugins directory and enabled in the admininistration screen, the following tab is now available when editing pages:

Related pages plug-in screenshot

See the documention screen for sample frontend code which lists the related pages.

Please be aware that I really did knock this together rather quickly, but it works for me.  If anyone finds any bugs, please let me know.

Codeigniter, PHP

Using the Zend framework Lucene library – Part 2

Note: Since this article was written I’ve moved to WordPress, and have not implemented the example code listed below.

In a previous article I talked about using a library from the Zend framework to create a site search.  As you try out this functionality using the search box, above right.

I never finished the article, so I’ll explain here how I implemented this using CodeIgniter.  I’ll also detail how I built the ‘quick results’ tool (click in the search box).
Continue reading

Codeigniter, PHP

Using the Zend framework Lucene library

I know, only a few articles in, so I don’t really need a site search function.  But you never know, I might actually keep writing (even if no-one is reading) and so I’ve been looking around for some solutions.

I’ve looked at a few, for example: Swish-e, and Sphider.  Nothing really float my boat, until I had a look at the Zend Framework.  It’s another MVC based PHP framework, though it looks a little heavier than CodeIgniter.  The documentation is not as good either, but it did have a Lucene library.
Continue reading

Codeigniter, JavaScript, PHP

CodeIgniter and Ajax

I’ve been asked to create a dashboard for many devices across our network.  To display real-time information on each component, I’m thinking of using Web services, and AJAX.  Like most aspects of coding, using a framework to do all the heavy lifting, rather than developing your own, is a sensible approach.

So today I took a look at jQuery, a JavaScript framework.  I have to admit, I’m pretty impressed.  It did not take me long to come up with some example code, that degrades well when JavaScript is disabled in the browser.
Continue reading