Exemplo n.º 1
0
 /**
  * bootstrap application
  * @param Application $application
  * @return mixed
  */
 public function boot(Application $application)
 {
     $initializer = $application->getManager()->getInitializer();
     $initializer->after('Cti\\Core\\Module\\Console', array($this, 'registerCommands'));
     $application->getFenom()->addSource($this->getPath('resources fenom'));
 }
Exemplo n.º 2
0
 public function get(Application $application)
 {
     $application->getCoffee()->build('application');
     $application->getFenom()->display('index', array('script' => 'public/js/application.js', 'direct' => $application->getDirect()->getUrl()));
 }
Exemplo n.º 3
0
 function display()
 {
     $this->application->getSencha()->getCoffeeCompiler()->validate($this->script);
     $this->application->getFenom()->display($this->template, array('base' => $this->base, 'direct' => $this->direct, 'script' => 'public/js/' . $this->script . '.js', 'title' => $this->title, 'styles' => $this->styles));
 }
Exemplo n.º 4
0
 public function boot(Application $application)
 {
     $application->getFenom()->addSource($this->getPath('resources fenom'));
 }
Exemplo n.º 5
0
 /**
  * @param array $difference
  * @return string
  */
 public function getMigrationCode($difference)
 {
     return $this->application->getFenom()->render('migration', array('difference' => $difference));
 }
Exemplo n.º 6
0
 /**
  * if no method was found you can process request by yourself
  * chain is url pieces delimited by /
  * you can inject any parameter (thanks to di)
  * @param Web $web
  * @param array $chain
  */
 function processChain(Application $application, Web $web, $chain)
 {
     $application->getFenom()->display('url', array('base' => $web->getUrl(), 'request' => $web->getUrl(implode('/', $chain))));
 }