etextimage This widget allows you to display the text as an image.

  1. Documentation
  2. Change Log

This widget allows you to display the text as an image.

Archive does not contain fonts. Place your preferred font in the folder /protected/extensions/ETextImage/fonts

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions/ETextImage
Usage

0) Place your preferred font in the folder /protected/extensions/ETextImage/fonts

1) Override CController::actions() and register an action of class ETextImageAction with ID 'textImage':

public function actions()
	{
		return array(
			'textImage'=>array(
				'class' => 'application.extensions.ETextImage.ETextImageAction',
			),
		);
	}

2) In the controller view, insert a widget.

<?php $this->widget('application.extensions.ETextImage.ETextImage',
                        array(
                              'textImage' => "(495)1234567",
                              'fontSize' => 10,
                              'fontFile' => 'tahoma',
                              'transparent'=>false,
                              'foreColor'=>0x2040A0,
                              'backColor'=>0x55FF00,
                             )
                       );

$this->widget('application.extensions.ETextImage.ETextImage',
                        array(
                              'textImage' => "Super Puper Paratruper Text",
                              'fontSize' => 8,
                              'fontFile' => 'arial',
                              'transparent'=>true,
                              'foreColor'=>0x2040A0,
                              'backColor'=>0x55FF00,
                             )
                       );
?>

Change Log

March 30, 2010
  • Initial release.
1 0
4 followers
403 downloads
Yii Version: 1.1
License: (not set)
Category: Others
Tags:
Developed by: kosenka
Created on: Mar 30, 2010
Last updated: 14 years ago

Downloads

show all