- ⌂ controller
- Methods
controller::repo()
Obtain a connection to the default COMAND repository. If a connection is already established, the same repo will be returned.
Prototype
repo repo(array $options = [])
Parameters
- options - Optional associative array of repository connection options. See
comand::connect()
options for valid values.
Return
A repo representing a connected repository is returned.
Example
// the default controller method
public function web__index() {
$repo = $this->repo();
echo('The root folder is: ' . $repo->get_root()->Title );
}