src/Admin/MultisitesCmsMainExtension.php
public function doAddSite() {
		$site = $this->owner->getNewItem('new-' . Site::class .'-0', false);
		$site->write();

		return $this->owner->redirect(
			singleton(CMSPageEditController::class)->Link("show/$site->ID")
		);
	}
public function doAddSite() {
		$site = $this->owner->getNewItem('new-' . Site::class .'-0', false);
		$site->write();

		return $this->owner->redirect(
			singleton(CMSPageEditController::class)->Link("show/$site->ID")
		);
	}
public function doAddSite ( ) { $ site = $ this -> owner -> getNewItem ( 'new-' . Site :: class . '-0' , false ) ; $ site -> write ( ) ; return $ this -> owner -> redirect ( singleton ( CMSPageEditController :: class ) -> Link ( "show/$site->ID" ) ) ; }
AddSiteForm action to add a new site
AddSiteForm action to add a new site