After a couple of hours of work, JBlogs is finally written in an object-oriented manner. To use JBlogs is far easier than before thanks to this.
Getting started requires a simple few edits to data.php file and then putting this code on your website:
PHP
$jblogs = new jblogs(); $meta_data = $jblogs->getMetaData(); $jblogs->generatePosts();
Since I first learned to program in early 2005 I have always been an object-oriented programmer. PHP became an exception in 2012 to this rule but I have since begun to move some of my own work to an object-oriented PHP. This change does mean you must be using PHP 5 or later by the way!
Posted in BalfBlog
Comments
Powered by DASH 2.0