Location: PHPKode > projects > Itshomi PHP Framework > itshomi/components/compinstaller/Compinstaller.php
<?php
/*
 * MainMenu.php
 * Copyright ALM Software Technologies
 * Created by fm 
 * Date created Jul 20, 2008
 * Description:
 * 
 */
class Compinstaller extends ImiComponent{
    function play(){
        $comp = $_REQUEST['comp'];
        try{
        	$comp = $this->navigator->getInstance($comp);
        	$comp->install();
			$this->addViewData('FEEDBACK','Component '.$_REQUEST['comp'].' was successfully installed');
        }catch(Exception $e){
        	addlog($e->getMessage());
			$this->addViewData('FEEDBACK','Failed to install Component '.$_REQUEST['comp'].'. Please view your log files for details'); 
        }
    }
}   
?>
Return current item: Itshomi PHP Framework