Making a template for a cms help.

Struggling with PHP or HTML? Got any tips? Drop in here to share your questions and answers. Newbies and gurus welcome!

Making a template for a cms help.

Postby TheT » January 2nd, 2008, 2:16 am

I am (trying) to make a basic cms, as part of the cms i want to have a theme system. To do this i have included a html page into my index.php file which will be the template. I have a variable named $content which will have dinamic content depending on what the page ID is. My problem is that i want to be able to put $content where i want my content to be on the html template page so that when it is included in my index it will display the content but when i do this it just desplays $content rather than the content that it represents. I have seen other cms's that do this by including {content} on the html page rather than $content, if this is easyer then i am happy to do that. Also is see this -> alot in the other cms's code, what does it mean? Any help would be great.
Thanks.
User avatar
TheT
Rank 1
Rank 1
 
Posts: 5
Joined: December 14th, 2007, 11:17 pm

Return to PHP & HTML Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron