Created
March 1, 2012 22:12
-
-
Save sebacruz/1953612 to your computer and use it in GitHub Desktop.
Controlador de ejemplo con partner personalizado desde el código.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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