예제 #1
0
 public function init()
 {
     parent::init();
     $this->categories = Categories::getInstance();
     $this->articles = Artciles::getInstance();
     $this->applyTemplateController('Controller\\articles\\Template');
 }
예제 #2
0
 public static function getInstance()
 {
     $class = self::getInstanceNull();
     if ($class == null) {
         $obj = new Artciles(Categories::getInstance());
         self::setInstance($obj);
         return $obj;
     }
 }
예제 #3
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('oweb.articles.css', \OWeb\manage\Headers::css);
?>
<div class="uk-grid uk-grid-divider uk-margin-top">
    <div class="uk-width-3-4">
        <div>
            <?php 
$this->displayController();
?>
        </div>
    </div>
    <?php 
$catTree = \OWeb\manage\SubViews::getInstance()->getSubView('\\Controller\\articles\\widgets\\ColloneDroite');
$catTree->addParams('cats', \Model\articles\Categories::getInstance())->display();
?>
</div>