rudiedirkx
(Yiiframework)
1
I have a string. I want to show it using Markdown. How?? Why are there no examples? I would expect something useful on http://www.yiiframework.com/doc/api/1.1/CMarkdown/ but there really isn’t.
Is it a static function? Do I have to init it somewhere before? Is it part of CHtml? Etc etc
An example would be greatly appreciated. Thanks!
mbi
(mbi)
2
<?php $this->beginWidget('CMarkdown');?>
This is my markdown formatted content
<?php $this->endWidget();?>
Mukke
(Ruben Decleyn)
3
What i did was just using the standard way:
$markdown = new CMarkdown;
echo $markdown->transorm($text);
because you wont always need a widget.