ARKADAŞLAR MERHABA ;
WHMCS 8 SÜRÜMÜ KULLANIYORUM.
ÖZEL BİR SAYFA EKLEDİK.
ANCAK .PHP OLMADAN SAYFAYI CALIŞTIRMAK İSTİYORUM FAKAT HATA DÜŞÜYOR.
BİLGİSİ OLAN VARMI
SU ANDA KULLANDIGIM ŞABLON AŞADIDAKI GIBIDIR.,
<?php
use WHMCSAuthenticationCurrentUser;
use WHMCSClientArea;
use WHMCSDatabaseCapsule;
define('CLIENTAREA',true);
require__DIR__.'/init.php';
$ca=new ClientArea();
$ca->setPageTitle('Your Page Title Goes Here');
$ca->addToBreadCrumb('index.php', Lang::trans('globalsystemname'));
$ca->addToBreadCrumb('mypage.php','Your Custom Page Name');
$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);
$currentUser=new CurrentUser();
$authUser=$currentUser->user();
// Check login status
if($authUser){
/** * User is logged in - put any code you like here * * Use the User model to access information about the authenticated User */
$ca->assign('userFullname',$authUser->fullName);
$selectedClient=$currentUser->client();if($selectedClient){
/** * If the authenticated User has selected a Client Account to manage, * the model will be available - put any code you like here */
$ca->assign('clientInvoiceCount',$selectedClient->invoices()->count());}
}else{
// User is not logged in$ca->assign('userFullname','Guest');
}
/** * 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('mypage');
$ca->output();
Whmcs özel sayfa url si değiştirme
3
●195
- 03-06-2021, 23:16:17.htaccess dosyanızı açın
RewriteEngine on
RewriteRule ^announcements$ ./announcements.php [L,NC] bu kodu yapıştırın
^announcements$ olan kısım php uzantısız olacak isim > ./announcements.php burasıda açılacak olan php uzantısı
yani yukarıdaki kod siteismi.com/announcements yazıldığı zaman php uzantısız çalıştırılmış olacak
iyi forumlar.
eskopa adlı üyeden alıntı: mesajı görüntüle - 04-06-2021, 00:12:28bunun la alakası yok hocam.WHMCSTR adlı üyeden alıntı: mesajı görüntüle
bi tane özel sayfa yaptık. sayfa normal bir şekilde çalışıyor ve .php olarak acılıyor.
.php olmadan acmaya calıstıgımızda 404 hatası veriyor.
symfony rootları ıle veya whmcs ıle alakalı konu.
dediğiniz değişkeni de denedik htacces üstünde gene olmadı. - 22-06-2022, 14:30:41hocam konu eski ama sorunu çözebildiniz mi?eskopa adlı üyeden alıntı: mesajı görüntüle
