PHP Classes

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

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Application/Module/User/Plugin/init_start.php   Download  
File: Application/Module/User/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: 405 bytes
 

Contents

Class file image Download
<?php

use APP\Application\Module\User\Model\User;

function
validate_user_profile_view($url)
{
    if (!empty(
$url))
    {
       
$oUser = (new User())->getOne($url, 'user_name');
        if (
$oUser && $oUser->user_id)
        {
            \
APP\Engine\Application::getInstance()->request->setParam('aCurrentUserProfile', $oUser->toArray());
            return
true;
        }
    }
    return
false;
}