This is a discussion on "CMS Framework" within the PHP Forum section. This forum, and the thread "CMS Framework are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
CMS Framework
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
CMS Framework
Hi!
Ok i have created a basic CMS for my site, it is basic and it was more a practice and learning task as I have only recently got started with PHP. My problem, is that if I was now to do a site for a client I would need to copy paste and edit all the code. I have heard a couple fo people on ehre saying rather than using joomla or anything like that creating your own Framework is better in the long run, as you will know the system inside out. Right call me naive but my question is what is a framework? and how do I create a CMS framework that I will be able to easily apply to the majority of sites I create. it just seems there must be an easier way than to create from scratch for every site I make. I know there are a few PHp gurus on here and would love to hear from you. If your willing to give me an indepth explanation then you can PM me or email me (email in sig). Thanks in advance for your help. Mike |
|
|
|
#2
|
|||
|
|||
|
Re: CMS Framework
The way I do it is that I have a cms.php that writes a CMS into the $content variable. Then the template just needs to echo $content and the CMS is written into the site. Does that make sense?
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#3
|
|||
|
|||
|
Re: CMS Framework
Erm not really. Sorry to be a pain.
So what is cms.php? I'll tell you how my CMS is set up. Basically my site is 1840dsgn.co.uk and my cms is cms.1840dsgn.co.uk Within cms.1840dsgn.co.uk there are various pages like: addPortfolio.php editPortfolio.php moderateComments.php users.php uploadImage.php uploadFile.php login.php as well as includes like Connector.php checkLogin.php All data input is put into the mysql database. So...you say you have 1 file called cms.php, how do you have all this content in the one file. By includes this wouldn't work would it? On 1840dsgn.co.uk, data is pulled from the database and displayed. Am i going completely the wrong way about this? lol im really confused and I know I'm a pain but i relaly wanna learn and have been searching tutorials everywhere and can't find any kind of pointers so I thought you guys might be able to help me out! |
![]() |
| Tags |
| cms system, framework |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| latest iteration of the .NET framework | welshstew | ASP.NET Forum | 1 | Dec 7th, 2007 20:56 |