ejemplo.php 514 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace business\controllers;
  3. use app\models\GeneralModel;
  4. use business\models\BusinessModel;
  5. use oxusmedia\webAppMulti\controller;
  6. class ejemplo extends controller
  7. {
  8. public function index()
  9. {
  10. $this->webApp()->requireLoginRedir();
  11. $this->titulo = 'Página de negocio';
  12. // invocar model de carpeta protected/models
  13. new GeneralModel();
  14. // invocar model de carpeta models del business
  15. new BusinessModel();
  16. $this->render('index');
  17. }
  18. }