PHP - CMS
Hey. I need help coding a CMS. I want to make it from scratch as I want to put it in a portfolio. I can code PHP … Not amazingly well but I can code in it.
There are just a few questions i want to ask and any help will be majorly appriciated.
- What sort of things do I need to include in a CMS? ie. What functions, what pages
- Where do I start?
And thats about everything. If anyone could help that would be awsome.
T.I.A
DarkMantis wrote:
- What sort of things do I need to include in a CMS? ie. What functions, what pages
A CMS is composed of the following:
- Tables for users, page content, and user content
- A login page / main page
- Pages to edit content using PHP & MySQL
- Pages that pull content from the MySQL database to display some
That's it, in a nutshell. The proper question to ask at this point is: "What content and types of content am I planning to manage?"
- Where do I start?
Written outlines, diagrams, and sketches would be a good place to start. Make it more real than mysterious.
DarkMantis wrote:
- Where do I start?
And thats about everything. If anyone could help that would be awsome. T.I.A Building on what zephyr has already said, IMHO its always good to start with "pseudo code" . Which is an easily readable and writable "code" that you can use to illustrate your ideas for the code that will be used for the CMS. It will help you build a general layout for the way you want it to be built.
i.e. this is pseudo code
if filetype is valid then
execute upload and display a loading screen
else
show a generic failure message
end if
for this :
<?php
if (is_valid($file)) {
upload($file);
loading_screen($filename);
} else {
show_failure();
}
?>```
This will help with making your ideas have a shape and general outline, this way (like zephyr said) it will make them more real than mysterious.
References: http://en.wikipedia.org/wiki/Pseudocode#Examples_of_pseudocode