gy-doc-code
[ class tree: gy-doc-code ] [ index: gy-doc-code ] [ all elements ]

Source for file Model.php

Documentation is available at Model.php

  1. <?php
  2. namespace Gy\Core\Component\Mvc;
  3.  
  4. if (!defined("GY_CORE") && (GY_CORE !== true)) die( "gy: err include core" );
  5.  
  6. class Model
  7. {
  8.     public $url; // ссылка на шаблон
  9.  
  10.     public function __construct($url)
  11.     {
  12.         $this->url = $url;
  13.     }
  14.  
  15.     /**
  16.      * includeModel - подключить файл с моделью компонента
  17.      */
  18.     public function includeModel()
  19.     {        
  20.         require_once $this->url; // !!!
  21.     }
  22. }

Documentation generated on Sat, 27 Apr 2024 11:17:29 +0300 by phpDocumentor 1.4.3