brucespang / BruceCMS-2.0
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.htaccess | Tue Nov 03 17:07:41 -0800 2009 | |
| |
README | Sat Dec 26 12:27:08 -0800 2009 | |
| |
inc/ | Sun Jan 03 10:59:37 -0800 2010 | |
| |
install.php | Sat Jan 02 18:22:53 -0800 2010 | |
| |
manage/ | Sun Jan 03 10:59:37 -0800 2010 |
README
README -- BruceCMS 2.0
Why BruceCMS?
1. It's Simple
2. It's Simple
The main reason to use BruceCMS is the simplicity of the Templating System. It's Really Simpleā¢. All that's needed to st
art editing content with the BruceCMS is a simple php variable.
NOTE: BruceCMS 2.0, while functional, is most likely highly insecure, and probably doesn't work half of the time. It may
not be the best idea to use BruceCMS 2.0 in a production environment, but if you want to, knock your socks off.
Getting Started:
-Copy everything into the BruceCMS directory. Be sure to copy the .htaccess. If something isn't working, it may have
not been copied.
-Create a MySQL Database for BruceCMS
-Run install.php
Using BruceCMS:
-Drop an html file into the BruceCMS root directory.
-Replace the things that you want to edit with <?=$variable_name?>
-Some predefined variables are:
$title
$default_page
$content (You'll have to create content with the management interface to fully use $content)
-If you want to use other variables, you have to create them under the Variables section in the management interface.
-Menus can be created using the management interface. To add a menu to your template, use <?=$menu_name?>
-Create a page using the management interface, and set the template to your html file.
-Go to: http://yourserver/pathtoBruceCMS/yourpage
It is possible to include variables and menus in your pages content. There'll be an error if you don't create them
before using them, but after you create them, they'll work fine.
Most Languages have a 'Hello World' that shows how one creates a (simple) program in that language. Here's BruceCMS's
very Simple Blog:
<?=$content?>
Enjoy!