Yii 1.1: epastebin

Submit pastes to www.pastebin.com
1 follower


  • Version: 0.2
  • Author: Dimitrios Meggidis


Render a pastebin.com submit form to your view.


First of all, you must register to Pastebin.com to get a developer key.


Add extension to the config file (config/main.php):


In controller add:

public function actions()
        return array(

In view add:

Minimal options:

$this->widget('EPastebin', array(
        "loginKey"=>"Your developer key from pastebin.com"));

All available options:

$this->widget('EPastebin', array(
        "loginKey"=>"Your developer key from pastebin.com",       
        // The view that contains the form under extension/EPastebin/views/
            "format"=>"php", //Default for format selection
            "expire"=>"10M"  //Default for expire seltion


  • better messages to be returned
  • create hide button on flash message
  • css of flash message to overlay the other divs.


Be the first person to leave a comment

Please to leave your comment.

Create extension