sintonia/legacy/application/controllers/ThirdPartyController.php

29 lines
734 B
PHP
Raw Permalink Normal View History

<?php
/**
2021-10-11 16:10:47 +02:00
* Class ThirdPartyController abstract superclass for third-party service authorization.
*/
2021-10-11 16:10:47 +02:00
abstract class ThirdPartyController extends Zend_Controller_Action
{
/**
* @var string base url and port for redirection
*/
protected $_baseUrl;
/**
* @var Application_Service_ThirdPartyService third party service object
*/
protected $_service;
/**
2021-10-11 16:10:47 +02:00
* Disable controller rendering and initialize.
*/
2021-10-11 16:10:47 +02:00
public function init()
{
$this->_baseUrl = Config::getPublicUrl();
$this->view->layout()->disableLayout(); // Don't inject the standard Now Playing header.
$this->_helper->viewRenderer->setNoRender(true); // Don't use (phtml) templates
}
2021-10-11 16:10:47 +02:00
}