Created
August 16, 2010 15:05
-
-
Save oelmekki/527085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Whatever extends Frontend | |
{ | |
public function getSomething( $aParam ) | |
{ | |
$template = new FrontendTemplate( 'mod_something' ); | |
$template->aParam = $aParam; | |
return $template->parse(); | |
} | |
} | |
class Blob extends Module | |
{ | |
protected $strTemplate = 'mod_blob'; | |
protected function compile() | |
{ | |
$this->import( 'Whatever' ); | |
$this->Template->something = $this->Whatever->getSomething( 'hello something' ); | |
} | |
} | |
class Inscription extends Module | |
{ | |
protected generate() | |
{ | |
$this->import( 'Whatever' ); | |
return $this->Whatever->getSomething( 'hello something' ); | |
} | |
protected compile(){} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment