Skip to content

Instantly share code, notes, and snippets.

@sebacruz
Created March 1, 2012 22:12
Show Gist options
  • Save sebacruz/1953612 to your computer and use it in GitHub Desktop.
Save sebacruz/1953612 to your computer and use it in GitHub Desktop.
Controlador de ejemplo con partner personalizado desde el código.
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Standalone_Signup_Example extends Controller_Standalone_Signup_v5 {
/**
* Sets the session to use in this app
*
* @var string
* @access public
*/
public $session = 'Standalone-Signup-Example';
/**
* Sets the default template for this app
*
* (default value: 'standalone/signup/clickonero/template')
*
* @var string
* @access public
*/
public $template = 'standalone/signup/example/template';
/**
* Handle the current user.
*
* (default value: 'user_standalone_clickonero')
*
* @var string
* @access public
*/
public $user = 'user_standalone_example';
/**
* __construct function.
*
* @access public
* @param Request $request
* @param Response $response
* @return void
*/
public function __construct(Request $request, Response $response) {
parent::__construct($request, $response);
$this->partner->name('example_partner');
$this->partner->param('subid1', 'example-subid1');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment