Social\Controller\AddThisController::init PHP Method

init() public method

Initialize controller
public init ( ) : void
return void
    public function init()
    {
        if (!$this->params('isForwarded')) {
            $this->form = new Form\AddThis();
            $this->model = $this->getServiceLocator()->get('AddThisModel');
            $this->form->setModel($this->model);
        }
    }