Quote:
Originally Posted by imbamt3
how can i add custome page ?
|
It's not supposed for normal users to add custom pages. This is a ready to use cms for admins who don't have money for a professional website.
If you really want to try it, you have to be familiar with ionut's (author) code. There is no framework, no PSR (php standard recommendation) and ofc no guideline how to do use it, so you have to study this ****** code yourself.
index.php
Code:
include 'pages/'.$page.'.php';
In the directory: "/pages" you have to add a new php file (it's something like a code mess of view and controller logic). Via the $page variable the php specific file will be included.
The $page variable will be declared here:
"include 'include/functions/pages.php';"
Create a new case in this pages.php file such as:
Code:
case 'news':
$page = 'news';
$title = $lang['news'];
include 'include/functions/news.php';
break;
From my point of view I highly recommend everyone to not use it.