PHP Classes

File: Application/Module/Page/Plugin/init_start.php

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Application/Module/Page/Plugin/init_start.php   Download  
File: Application/Module/Page/Plugin/init_start.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 438 bytes
 

Contents

Class file image Download
<?php

use APP\Application\Module\Page\Model\Page;

function
validate_page_view_detail($url)
{
    if (!empty(
$url))
    {
       
$aPages = (new Page())->getAllWithCache();
        if (isset(
$aPages[$url]) && $aPages[$url]['page_status'] == Page::STATUS_ACTIVATED)
        {
            \
APP\Engine\Application::getInstance()->request->setParam('aStaticPage', $aPages[$url]);
            return
true;
        }
    }
    return
false;
}