Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
IBM Wiki tutorial with CakePHP No 2

IBM Wiki tutorial with CakePHP No 2



|Views: 1,122 |Likes:
Published by Gerhard Sletten
Create a Wiki web application with the PHP framework CakePHP. By IBM. Writing the core code. User login and logout. Working with entries and how to keep a history (revision of versions) of these. Parse wiki text. File uploads.
Create a Wiki web application with the PHP framework CakePHP. By IBM. Writing the core code. User login and logout. Working with entries and how to keep a history (revision of versions) of these. Parse wiki text. File uploads.

More info:

Published by: Gerhard Sletten on Sep 14, 2007
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Create an interactive production wiki using PHP,Part 2:Developing the basic wiki code
Fueling Criki with user registration, entry storage, and custommarkup rendering
Skill Level: IntermediateDuane O'Brien(d@duaneobrien.com) PHP developerFreelance06 Mar 2007This"Create an interactive production wiki using PHP" tutorial series creates a wiki from scratch using PHP, with value-added features useful for tracking production.Wikis are widely used as tools to help speed development, increase productivity, andeducate others. Each part of the series develops integral parts of the wiki until it iscomplete and ready for primetime, with features including file uploading, acalendaring "milestone" system, and an open blog. The wiki will also contain projectswhose permissions are customizable to certain users.
Section 1. Before you start
This"Create an interactive production wiki using PHP" series is designed for PHP application developers who want to to take a run at making their own custom wikis.You'll define everything about the application, from the database all the way up tothe wiki markup you want to use. In the final product, you will be able to configuremuch of the application at a granular level, from who can edit pages to how open theblog really is.At the end of this tutorial, Part 2 of a five-part series, you will have the basics of yourwiki up and running, including user registration, page creation and editing, historytracking, and file uploads. It sounds like a lot, but if you've completedPart 1, you'rewell over halfway there.
Developing the basic wiki code © Copyright IBM Corporation 1994, 2006. All rights reserved.Page 1 of 29
About this series
Part 1of this series draws the big picture. You determine how you want theapplication to look, flow, work, and behave. You'll design the database andrough-out some scaffolding. Part 2 focuses on the primary wiki development,including defining the markup, tracking changes, and file uploads. InPart 3, youdefine some users and groups, as well as a way to control access to certain aspectsof individual wiki pages and uploaded files.Part 4deals with a Calendaring andMilestones feature to track tasks, to-dos, and progress against set goals. And in Part5, you put together an open blog to allow discussion of production topics andconcerns.
About this tutorial
This tutorial focuses on writing the core code for the wiki engine. With the databasein place, your next task is getting the wiki engine up and running, including usercreation, signing in, rendering the markup, page creation, file uploads, and more.With these tasks done, your application ("Criki") will take a definite shape. Coveredtopics include:User registrationPage creationRendering markupFile uploads
It is assumed that you have some experience working with PHP and MySQL. Wewon't be doing a lot of deep database tuning, so as long as you know the basic insand outs, you should be fine. You may find it helpful to download and installphpMyAdmin, a browser-based administration console for your MySQL database.
System requirements
Before you begin, you need to have an environment in which you can work. Thegeneral requirements are reasonably minimal:An HTTP server that supports sessions (and preferably mod_rewrite).This tutorial was written using Apache V1.3 with mod_rewrite enabled.PHP V4.3.2 or later (including PHP V5). This was written using PHPV5.0.4
developerWorks® ibm.com/developerWorksDeveloping the basic wiki codePage 2 of 29© Copyright IBM Corporation 1994, 2006. All rights reserved.
Any version of MySQL from the last few years will do. This was writtenusing MySQL V4.1.15.You'll also need a database and database user ready for your application to use.The tutorial will provide syntax for creating any necessary tables in MySQL.Additionally, to save time, we will be developing Criki using a PHP framework calledCakePHP. Download CakePHP by visitingCakeForge.organd downloading thelatest stable version. This tutorial was written using V1.1.13. For information aboutinstalling and configuring CakePHP, check out the tutorial series titled "Cook up Websites fast with CakePHP" (seeResources).
Criki so far
At the end of Part 1, you were given the opportunity to redesign the default layoutinto something that better suited your own tastes. How did you do? It's OK if youdidn't get a chance to work on this particular piece. Thesource codefor this tutorialcontains a basic layout that includes links to the various controllers. You will beediting this as the series goes on. Copy the file app/views/layouts/default.thtml fromthe code archive into your own app/views/layouts/ directory. It should look like Figure1.
Figure 1. Criki so far
ibm.com/developerWorks developerWorks® Developing the basic wiki code © Copyright IBM Corporation 1994, 2006. All rights reserved.Page 3 of 29

Activity (23)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Anank Junaidi liked this
Mustfeez Rasul liked this
fedith liked this
rabeyaHossain liked this
ashista81 liked this
John Dicosta liked this
swapna246 liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->