Re: wiki as php object?
| From: | Matthew Weier O'Phinney | Date: | Sun, 23 Jan 2005 04:24:24 +0000 |
| Subject: | Re: wiki as php object? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207065@lists.php.net to get a copy of this message | ||
* Kurt Yoder <ktyphp@yoderhome.com>:
> I am creating a php site that will eventually include a wiki. The twist
> is that visitors to my site will each be able to create their own
> sections. Each section should have its own wiki, completely independent
> of all the other wikis. I could of course code up my own wiki from
> scratch, but would prefer not to have to re-invent the wheel.
>
> I have found many wiki implementations that are "full-blown"
> applications. Has anyone seen a wiki implementation that is more
> "integration friendly"? Ideally, a wiki could be created, accessed, and
> displayed as an object so that I could completely encapsulate it within
> my own code. This would give me complete control over url's, look and
> feel, etc.
PEAR's Text_Wiki class can be used to do the WikiText -> HTML
translation (and vice versa); it wouldn't be difficult to write an
object around that class to handle storage and data retrieval. (I've
actually been planning on something like that for use with my
Cgiapp.class.php project -- http://freshmeat.net/projects/cgiapp).
Other than that -- the only PHP-based wikis I've seen all act as their
own application and are not encapsulation friendly.
--
Matthew Weier O'Phinney | mailto:matthew@garden.org
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org