Yii 1.1: wikiext

A Wiki extension for Yii
6 followers

This extension is just a simple Wiki parser-class for Yii, extended from CodeHolic's (Creole) Wiki Markup Parser

Resources

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions

Usage

See the following code example:

Yii::import('application.extensions.wikiext.wikiext');
 
// or you can include it in the config/main.php file
// if needed
// ...
// 'import'=>array(
//      'application.models.*',
//      'application.components.*',
//        'ext.wikiext.*'
// )
// ...
$wiki=new wikiext();
$wiki->parse( $string );

Change Log

April 26, 2010

  • Initial release.

Total 5 comments

#9240 report it
unkar at 2012/07/31 04:05am
same problem

get_class() expects parameter 1 to be object, array given

/srv/www/guesswhat/protected/extensions/wikiext/wikiext.php(100)

088 $target->set_attribute($attr, $value); 089 } 090 } 091
092 function match($data) { 093 return preg_match($this->regex, $data, $matches, PREG_OFFSET_CAPTURE) 094 ? $matches : false; 095 } 096
097 function apply($node, $data, $options = array()) { 098 $tail = $data; 099
100 if (!get_class($this->fallback)) { 101 $this->fallback = $this->fallback 102 ? new creole_rule($this->fallback) 103 : new creole_rule_default_fallback(); 104 } 105
106 while (true) { 107 $best = false; 108 $rule = false; 109
110 for ($i = 0; $i < count($this->children); $i++) { 111 if (!isset($matches[$i])) { 112 if (!get_class($this->children[$i])) { Stack Trace

0

– /srv/www/guesswhat/protected/extensions/wikiext/wikiext.php(100): get_class(

#3685 report it
imehesz at 2011/04/27 09:15pm
answer

@shahram

hello,

so, I looked at the code, and the problem is PHP5.3 - I checked on the Creole site if they have a PHP5.3 version of their Class, but they don't have it :/

I might be able to fix it, but I'd need more time.

You might wanna take a look at this instead: http://www.yiiframework.com/forum/index.php?/topic/13692-simplewiki-for-yii/

I hope this helps ...

--i

#3674 report it
Shahram at 2011/04/27 08:59am
@imehesz

Dear imehesz,

Thank you for your quick support.

Currently, I am using Yii/1.1.6 on Mac OS X 10.6.7 running Apache/2.2.17 (Unix) PHP/5.3.4 with 20090626 PHP API.

I thank you for your help in advanced.

#3673 report it
imehesz at 2011/04/27 08:44am
sure

shahram,

Thanks for trying to use it, sorry that it doesn't work :/

I'm more than happy to help. Could you please tell me more about your environment? Operating system, PHP version?

thanks, --iM

#3670 report it
Shahram at 2011/04/27 07:17am
Error!

Hello
After using this extension I got following error:

PHP Error

get_class() expects parameter 1 to be object, array given
/Library/WebServer/Documents/danaservers/protected/extensions/wikiext/wikiext.php(100)

I seems that the error is coming from parse() function. Can you help me to solve the problem?

Thank You

Leave a comment

Please to leave your comment.

Create extension
Downloads
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: imehesz
  • Category: Others
  • Votes: +2 / -1
  • Downloaded: 680 times
  • Created on: Apr 26, 2010
  • Last updated: Apr 26, 2010