Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Read me
  • Loading branch information
harikrishnanp committed May 24, 2014
1 parent 3a4a8d8 commit 6d9d0df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Usage
===========

Add this in protected/config/main.php of Yii


`'components'=>array(
'RemotePrint' => array(
'class' => 'RemotePrint',
Expand All @@ -21,5 +23,5 @@ Where ip is the IP of coputer in which printer is connected. Port id the port of

Do print from your controller as

`$data = 'Test Print';
echo Yii::app()->RemotePrint->print_data($data);`
`$data = 'Test Print';`
`echo Yii::app()->RemotePrint->print_data($data);`

0 comments on commit 6d9d0df

Please sign in to comment.