Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Yii framework simple extension to shorten an html code.

branch: master

added readme with mkd

latest commit fe4b786a77
server@dimeng.home.gr authored April 02, 2011
Octocat-spinner-32 EReadMore.php
Octocat-spinner-32 README.mkd added readme with mkd April 02, 2011
README.mkd

EReadMore

A simple extension to shorten an html code.

Requirements

Description

This a common functionality found in blogs, where you see a part of an article and there is link usually named read more where get redirected to the full article.

Use

Simple case

In the view add:

<?php $this->beginWidget('application.extensions.EReadMore.EReadMore', array(
     'linkUrl'=>$data->url
 ));?>
 <div>
     <h1>EReadMore</h1>
    <p>A simple extension to shorten an html code.</p>
    <h2>Requirements</h2>
      <ul>
          <li><a href='php.net/manual/en/intro.dom.php' >DOMDocument</a></li>
      </ul>
 </div>
 <?php $this->endWidget(); ?>

Advanced use

Check the EReadMore code options to see what you can set.

Resources

Something went wrong with that request. Please try again.