Skip to main content

Meta

Cmd​

<?php
namespace atusch\controller;

use n2n\web\http\controller\ControllerAdapter;
use n2n\util\uri\Path;

class ExampleController extends ControllerAdapter {

public function index(Path $cmdPath, Path $cmdContextPath) {
echo 'cmdPath: ' . $cmdPath . ' cmdContextPath: ' . $cmdContextPath;
}

public function doDetail(array $cmdPathParts, array $cmdContextPathParts) {
echo 'cmdPath: ' . implode('/', $cmdPathParts) . ' cmdContextPath: ' . implode('/', $cmdContextPathParts);
}
}

Request​

n2n\web\http\controller\ControllerAdapter::getRequest()

php-doc of n2n\web\http\Request. Writing it twice doesn't really make sense. Discuss with Thomas how to solve.

Response​

n2n\web\http\controller\ControllerAdapter::getResponse()

php-doc of n2n\web\http\Response. Writing it twice doesn't really make sense. Discuss with Thomas how to solve.

Redirect​

n2n\web\http\controller\ControllerAdapter::redirect()

php-doc of n2n\web\http\controller\ControllerAdapter. Writing it twice doesn't really make sense. Discuss with Thomas how to solve.