epastebin Submit pastes to www.pastebin.com

EPastebin

  • Version: 0.2
  • Author: Dimitrios Meggidis
Description

Render a pastebin.com submit form to your view.

Requirements

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

Implement

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

'imports'=>array(
        ...
        'application.extensions.EPastebin.*'
        ...

In controller add:

public function actions()
	{
		return array(
            ....
            'epastebin'=>array(
                'class'=>'CPastebinAction'
            ),
            ....
		);
	}

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/
        "form"=>"_form", 
        "default"=>array(
            "format"=>"php", //Default for format selection
            "expire"=>"10M"  //Default for expire seltion
        ),
    ));
TODO
  • better messages to be returned
  • create hide button on flash message
  • css of flash message to overlay the other divs.
Links
0 0
1 follower
487 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: tydeas_dr
Created on: Mar 10, 2011
Last updated: 7 years ago

Downloads

show all

Related Extensions