[英]CMS as a admin page in php/mysql
Can you make a CMS page with just two pages. 您能否仅用两页制作CMS页。 Everything I have been seeing has been using like 6 pages.
我所看到的所有内容都已经使用了6页。 All I need is an admin page and a index page.
我需要的只是一个管理页面和一个索引页面。 So is that possible?
那有可能吗?
All I need is an admin page and a index page.
我需要的只是一个管理页面和一个索引页面。 So is that possible?
那有可能吗?
Sure. 当然。 You can even make a CMS page with just one page - you'd call the page with different GET parameters (like
index.php?page=index
and index.php?page=admin
) and build conditions into the file to do one thing or the other, depending on what the value of page
is. 您甚至可以只用一个页面制作CMS页面-您将使用不同的GET参数调用该页面(例如
index.php?page=index
和index.php?page=admin
),并在文件中构建条件以执行一件事或其他,取决于page
的值。
The question is how much sense this makes architecture-wise - the bigger a source code file becomes, the harder it is to manage. 问题是这在体系结构方面有多大意义-源代码文件变得越大,就越难以管理。 Splitting up larger classes and source files usually makes sense.
拆分较大的类和源文件通常很有意义。
Yes, its posible. 是的,可能的。 If you would like to use MySQL take a look on http://www.slimframework.com/ .
如果您想使用MySQL, 请访问http://www.slimframework.com/ 。 This is very simple framework which saves your development time.
这是一个非常简单的框架,可以节省您的开发时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.