src-dev/Mouf/Controllers/MoufController.php
public function createComponent($instanceName, $instanceClass, $selfedit) {
        $this->selfedit = $selfedit;

        if ($selfedit == "true") {
            $this->moufManager = MoufManager::getMoufManager();
        } else {
            $this->moufManager = MoufManager::getMoufManagerHiddenInstance();
        }


        $this->moufManager->declareComponent($instanceName, $instanceClass);
        $this->moufManager->rewriteMouf();

        // Redirect to the display component page:
        $this->displayComponent($instanceName, $selfedit);
    }
public function createComponent($instanceName, $instanceClass, $selfedit) {
        $this->selfedit = $selfedit;

        if ($selfedit == "true") {
            $this->moufManager = MoufManager::getMoufManager();
        } else {
            $this->moufManager = MoufManager::getMoufManagerHiddenInstance();
        }


        $this->moufManager->declareComponent($instanceName, $instanceClass);
        $this->moufManager->rewriteMouf();

        // Redirect to the display component page:
        $this->displayComponent($instanceName, $selfedit);
    }
public function createComponent ( $ instanceName , $ instanceClass , $ selfedit ) { $ this -> selfedit = $ selfedit ; if ( $ selfedit == "true" ) { $ this -> moufManager = MoufManager :: getMoufManager ( ) ; } else { $ this -> moufManager = MoufManager :: getMoufManagerHiddenInstance ( ) ; } $ this -> moufManager -> declareComponent ( $ instanceName , $ instanceClass ) ; $ this -> moufManager -> rewriteMouf ( ) ; // Redirect to the display component page: $ this -> displayComponent ( $ instanceName , $ selfedit ) ; }
The action that creates a new component instance.

@Action
@Logged
@param string $instanceName The name of the instance to create
@param string $instanceClass The class of the component to create
The action that creates a new component instance .