Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmtrs/epastebin
Yii framework extension to submit pastes to www.pastebin.com
https://github.com/dmtrs/epastebin
Last synced: about 2 months ago
JSON representation
Yii framework extension to submit pastes to www.pastebin.com
- Host: GitHub
- URL: https://github.com/dmtrs/epastebin
- Owner: dmtrs
- Created: 2011-03-10T08:07:45.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-03-10T08:59:41.000Z (almost 14 years ago)
- Last Synced: 2024-04-20T19:41:02.707Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
EPastebin
---------
Version: 0.2
Author: Dimitrios Meggidis
Repository: [dmtrs/etbar](http://www.github.com/dmtrs/EPastebin)###Description
A simple class to start with yii framework extensions. This extension
will render a pastebin submit form to your view.###Requirements
First of all, you must register to [Pastebin.com](http://www.pastebin.com)
to get a developer key.###Implement
Add extension to the config file (config/main.php):
~~~
[php]
'imports'=>array(
...
'application.extensions.EPastebin.*'
...
~~~In controller add:
~~~
[php]
public function actions()
{
return array(
....
'epastebin'=>array(
'class'=>'CPastebinAction'
),
....
);
}
~~~
In view add:Minimal options:
~~~
[php]$this->widget('EPastebin', array(
"loginKey"=>"Your developer key from pastebin.com"));
~~~All available options:
~~~
[php]$this->widget('EPastebin', array(
"loginKey"=>"Your developer key from pastebin.com",
// The view that contains the form under extension/EPastebin/views/
"form"=>"_form",
"default"=>array(
"format"=>"php", //Default for format selection check options.php
"expire"=>"10M" //Default for expire seltion check options.php
),
));
~~~##TODO
~~~~
- better messages to be returned
- create hide button on flash message
- css of flash message to overlay the other divs.
~~~