This extension outputs lipsum text for use as placeholder to mimic real text, but without any meaning to not distract viewer.
Extract file to components or extensions and then assign it enywhere, where some text would go.
// This will output 2 different lipsum paragraphs, each into different tab $this->widget('CJuiTabs', array( 'tabs' => array( 'Privacy' => new ELipsum, 'Other' => new ELipsum, ) ));
Total 3 comments
On line 23 of ELipsum.php
should be
Edit: Here's how to genere Lorem Ipsum on other languages too http://www.yiiframework.com/wiki/426/multilanguage-lorem-ipsum-text-generator/
The idea of
__toString()is to not call it directly, you can just doecho new ELipsumYou can get lipsum text by following syntex:
$test = new ELipsum; print $test->__toString().''; print $test->__toString().''; print $test->__toString();
You can get different different paragraphs.
Note: I have put this file in component folder.
Thanks.
Leave a comment
Please login to leave your comment.