CodeIgniter Forums
CodeIgniter Helper Clippy - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: CodeIgniter Helper Clippy (/showthread.php?tid=37718)



CodeIgniter Helper Clippy - El Forum - 01-18-2011

[eluser]Vamsii[/eluser]
Clippy for codeigniter

Quote:Clippy is a very simple Flash widget that makes it possible to place arbitrary text onto the client's clipboard.

Instructions :

*Move the clippy_helper.php to your application/helpers directory .
*Move the clippy.swf as to a directory , usually where you host your static content.
*Edit clippy_helper.php and change $clippy_url to the location where clippy.swf is located.
*Now you can use the helper in your controllers/views , etc.
*Load the helper in your controller $this->load->helper('clippy_helper');
*Then you can use a new function called clipit(); in your controller/view, etc.

I just made a helper . so all credits to the original creator .
Examples :
Code:
<?php echo clipit(); ?>

Code:
<?php echo clipit("CI is awesome"); ?>

Code:
&lt;?php echo clipit('Github <3');?&gt;

Please leave some feedback , as it helps me to learn more things about CI .

New Download location :
https://github.com/vamsiikrishna/clippy-for-codeigniter


CodeIgniter Helper Clippy - El Forum - 01-31-2011

[eluser]anaxamaxan[/eluser]
@vamsii Thanks! I was just about to do this myself. Glad I checked the forum first. Works great so far.


CodeIgniter Helper Clippy - El Forum - 01-31-2011

[eluser]Phil Sturgeon[/eluser]
Now here is me thinking you had revived the MS Word "Clippy" Sad


CodeIgniter Helper Clippy - El Forum - 01-31-2011

[eluser]anaxamaxan[/eluser]
Well you did see that jquery plugin...? http://plugins.jquery.com/project/clippy


CodeIgniter Helper Clippy - El Forum - 04-26-2011

[eluser]Kevin Smith[/eluser]
Thanks for the helper, Vamsii. It's a big help! One thing I would suggest: remove the closing PHP bracket, per the CodeIgniter Style Guide recommendation. It's optional for the parser, and if there are any blank lines after the closing tag (as there were in the version that I downloaded), it could throw up some errors or blank screens.


CodeIgniter Helper Clippy - El Forum - 06-11-2011

[eluser]Vamsii[/eluser]
yeah.. I have changed the code and you can download from github also .
https://github.com/vamsiikrishna/clippy-for-codeigniter