phpyazilim
Kodlanmak Güzeldir :)
- Ad
- E****
- Soyad
- A******
- Katılım
- 31 Ekim 2019
- Konum
- Hollanda
- Konular
- 182
- Mesajlar
- 817
- Ticaret - 100%
- Meslek
- Web Yazılım
Detay
- Meslek
- Web Yazılım
- Tecrübe
- 15 Yıl
- Uzmanlık alanları
- Php - PDO
- İş referanslarım
- Phptema.com
- Diğer sitelerim
- Biz bir aileyiz.
- Üyelik tipi
-
- Kurumsal
Photoshop
-
- İleri düzey90%
İllüstratör
-
- İleri düzey90%
UI / UX tasarım
-
- İleri düzey90%
PHP
-
- İleri düzey90%
CSS3
-
- İleri düzey90%
JavaScript
-
- İleri düzey90%
Ek sayfa oluşturma kodu hk;
Hakkimizda.php aşağıdaki şekilde olacak ve hakkimizda.tpl yi de kullandığınız tema içine koyacaksınız.
Hakkimizda.php aşağıdaki şekilde olacak ve hakkimizda.tpl yi de kullandığınız tema içine koyacaksınız.
PHP:
<?php
use WHMCS\ClientArea;
use WHMCS\Database\Capsule;
define('CLIENTAREA', true);
require __DIR__ . '/init.php';
$ca = new ClientArea();
$ca->setPageTitle('Hakkımızda');
$ca->addToBreadCrumb('index.php', Lang::trans('globalsystemname'));
$ca->addToBreadCrumb('hakkimizda.php', 'Hakkımızda');
$ca->initPage();
//$ca->requireLogin(); // Uncomment this line to require a login to access this page
// To assign variables to the template system use the following syntax.
// These can then be referenced using {$variablename} in the template.
//$ca->assign('variablename', $value);
// Check login status
if ($ca->isLoggedIn()) {
/**
* User is logged in - put any code you like here
*
* Here's an example to get the currently logged in clients first name
*/
$clientName = Capsule::table('tblclients')
->where('id', '=', $ca->getUserID())->pluck('firstname');
// 'pluck' was renamed within WHMCS 7.0. Replace it with 'value' instead.
// ->where('id', '=', $ca->getUserID())->value('firstname');
$ca->assign('clientname', $clientName);
} else {
// User is not logged in
$ca->assign('clientname', 'Random User');
}
/**
* Set a context for sidebars
*
* @link http://docs.whmcs.com/Editing_Client_Area_Menus#Context
*/
/**Menu::addContext();
/**
* Setup the primary and secondary sidebars
*
* @link http://docs.whmcs.com/Editing_Client_Area_Menus#Context
*/
/**Menu::primarySidebar('announcementList');
Menu::secondarySidebar('announcementList');*/
# Define the template filename to be used without the .tpl extension
$ca->setTemplate('hakkimizda');
$ca->output();