Administration
  Home arrow Administration arrow Page 2 - Building a Barebones Content Managemen...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Developerworks
 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: 4 stars4 stars4 stars4 stars4 stars / 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:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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


       · Looking forward to the rest of the articles in this series. It would be great if you...
       · Hi,:lol: This tutorial has excellent timings. Good work Harish..Regards
       · Yes - this is a good point. By default, yaapi allows you to add a single image to...
       · hi, I'm wondering what you mean by execute command in the 3 last line. what am I...
       · Hi,With respect to your query, you have to execute the command from the command...
       · Hi, thanks the help. I'm getting an error when I try to run that line. I've tried...
     

       

    ADMINISTRATION ARTICLES

    - 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
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway