Administration
  Home arrow Administration arrow Page 2 - Building a Barebones Content Management System: An Introduction
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Building a Barebones Content Management System: An Introduction
By: Harish Kamath
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 14
    2005-09-14


    Table of Contents:
  • Building a Barebones Content Management System: An Introduction
  • yaapi and patTemplate and patUser = A barebones CMS
  • Getting Started with yaapi
  • Setting it up
  • First Glance

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
    Building A Barebones CMS - Video Tutorial
     
    ADVERTISEMENT

    Free companion video tutorial for this article! Click Here!

    Building a Barebones Content Management System: An Introduction - yaapi and patTemplate and patUser = A barebones CMS
    ( Page 2 of 5 )

    After numerous cups of coffee, many sleepless nights and endless Google searches, I found three useful APIs -- or PHP classes (to be technically correct) -- that I could integrate to fructify my "barebones" CMS.

    So, how about a quick introduction?

    First, I have "yaapi." According to Paul Gareau (the developer behind the API), yaapi (an acronym for Your Article Application Programming Interface) is a "programming interface that makes displaying articles on your webpage easy." In other words, this is a no-frills PHP class, equipped with a bunch of useful properties and utility methods that help manage and retrieve content (stored in a MySQL database) in a logical manner.

    One of the significant advantages of using a CMS to drive a website is the ability to use templates. This is a simple concept that allows the web master to abstract the creative design from the programming bits. If you take a quick look at any popular website, you will not fail to notice that significant components of a web page are constant. For example, you may have a header with a logo and a banner, a left hand menu of hyperlinks and a footer with legal copyright notices, which leaves only the center -- the most dynamic location on a web page -- for you to worry about. 
     
    This is where a templating engine such as "patTemplate" comes in handy. A part of the very popular PHP Application Tools (or PAT) group of APIs, patTemplate is a versatile templating engine that supports a wide range of features, as you shall find out during the course of this series.

    The two -- yaapi and patTemplate -- working hand in hand should be able to fulfill most of my requirements for building a barebones CMS.

    However, one of the major drawbacks of yaapi is the lack of security for its administration module. While I could implement HTTP Authentication to ensure some basic security, I wanted to take this opportunity to get my hands dirty with another useful API developed by the team behind patTemplate -- "patUser." According to the official description at http://www.phptools.de/, patUser is a "user management class that helps you with authentication, group and permission management, statistics and more." It's just the tool needed to password-protect the administration module for yaapi!

    That was a quick introduction to the three packages that I intend to use. Now, it's time to start knocking them off the list, one by one.



     
     
    >>> More Administration Articles          >>> More By Harish Kamath
     

       

    ADMINISTRATION ARTICLES

    - Network Booting via PXE: the Basics
    - Scalix: Linux Administrator`s Guide
    - Network Administration with FreeBSD 7
    - Components of an Information Architecture
    - The Anatomy of an Information Architecture
    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT