/demos/Zend/Wildfire/application/controllers/Boot/Zend-Log-Writer-Firebug/IndexController.php

https://github.com/decaoz/zf1 · PHP · 13 lines · 10 code · 3 blank · 0 comment · 0 complexity · 036b8b8c62f3ddc19cb971b040b88d6f MD5 · raw file

  1. <?php
  2. require_once 'Zend/Controller/Action.php';
  3. class IndexController extends Zend_Controller_Action
  4. {
  5. public function indexAction()
  6. {
  7. $logger = Zend_Registry::get('logger');
  8. $logger->log('This is a log message!', Zend_Log::INFO);
  9. }
  10. }