Example #1
0
 public function init()
 {
     parent::init();
     $this->applyTemplateController('Controller\\programs\\Template');
     $this->categories = Categories::getInstance();
     $this->programs = new \Model\programs\Programs($this->categories, new \Model\articles\Artciles(new \Model\articles\Categories()));
 }
Example #2
0
 public function init()
 {
     parent::init();
     $this->applyTemplateController('Controller\\programs\\Template');
     $this->categories = \Model\programs\Categories::getInstance();
     $this->programs = Programs::getInstance();
 }
Example #3
0
 public function init()
 {
     parent::init();
     \OWeb\manage\Extensions::getInstance()->getExtension('bbcode\\JBBCode');
     $this->applyTemplateController('Controller\\programs\\Template');
     $this->categories = \Model\programs\Categories::getInstance();
     $this->programs = Programs::getInstance();
 }
Example #4
0
 public static function getInstance()
 {
     $class = self::getInstanceNull();
     if ($class == null) {
         $obj = new Programs(Categories::getInstance(), Artciles::getInstance());
         self::setInstance($obj);
         return $obj;
     }
 }
Example #5
0
 *
 * PHP version 5.3 and above
 *
 * LICENSE: This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see {http://www.gnu.org/licenses/}.
 */
$this->addHeader('2Collone.css', \OWeb\manage\Headers::css);
?>
<div class="uk-grid" >
    <div class="uk-width-3-4">
        <div>
            <?php 
$this->displayController();
?>
        </div>
    </div>
    <?php 
$catTree = \OWeb\manage\SubViews::getInstance()->getSubView('\\Controller\\programs\\widgets\\ColloneDroite');
$catTree->addParams('cats', \Model\programs\Categories::getInstance())->display();
?>
</div>