Skip to content

Instantly share code, notes, and snippets.

@oelmekki
Created August 16, 2010 15:05
Show Gist options
  • Save oelmekki/527085 to your computer and use it in GitHub Desktop.
Save oelmekki/527085 to your computer and use it in GitHub Desktop.
<?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