|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
I am interested in knowing if it would be wise to store my site's templates in mysql. I am coding a simple site in xhtml 1.0 and am currently using files to store global templates used by all actions. Would there be any downfall to storing header/footer templates, etc. in mysql and use php to cache the templates (as opposed to file storage).
|
|
#2
|
|||
|
|||
|
It will be a pain to: debug, code, deploy, version on your machine, etc.
Definitly not the best solution. You better have to cache the result of your templates with a good library/framework. |
|
#3
|
|||
|
|||
|
I am aware of the process, but can you further your response regarding the use of a good library/framework. Not sure I understand.
|
|
#4
|
|||
|
|||
|
I don't know what that other guy is saying, but yeah, its perfectly fine. I've worked on a 25k+ member site that did just this, no problems.
|
|
#5
|
|||
|
|||
|
Yea, I didn't see any problems with it. Most professional website scripts out there today do this, so I don't see the issue. I would like annlis to comment back though.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Storing templates in MySQL and pulling with php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|