Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Helper Clippy
#1

[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
#2

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

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

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

[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.
#6

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




Theme © iAndrew 2016 - Forum software by © MyBB