简体   繁体   English

Wordpress 能否用于创建与预先存在的 php 文件和数据库相关联的网页?

[英]Can Wordpress be used to create webpages that tie into pre-existing php files and database?

I have a website that I've developed, which includes hand-written php, html, css, and js.我有一个自己开发的网站,包括手写的php、html、css和js。 I also created the MySQL database.我还创建了 MySQL 数据库。

I've recently brought someone on who is going to make the website look better, but his experience is limitted to working with Wordpress.我最近请来了一个打算让网站看起来更好的人,但他的经验仅限于使用 Wordpress。 I'm wondering if it makes sense for him to the the front-end "skin" work with Wordpress and for me to edit the files as needed so they submit data to my php files and connect to my database.我想知道对他来说,使用 Wordpress 进行前端“皮肤”工作是否有意义,而我可以根据需要编辑文件,以便他们将数据提交到我的 php 文件并连接到我的数据库。 If the php generated by Wordpress is reasonable, this seems doable in theory.如果 Wordpress 生成的 php 是合理的,这在理论上似乎是可行的。

The other way would be to take the html genrated by his php and use that as my starting point for hooking into my php processing files and database.另一种方法是采用由他的 php 生成的 html 并将其用作连接到我的 php 处理文件和数据库的起点。

He sent me a dump of the files created after he created a simple webpage and there seemed to be a lot of extra stuff in there.他向我发送了他创建一个简单网页后创建的文件的转储,其中似乎有很多额外的东西。

Can anyone with experience in this comment?任何有此评论经验的人都可以吗? I'm hoping there's an easy way to do this.我希望有一种简单的方法可以做到这一点。

Thanks.谢谢。

The default procedure for me that always worked well:对我来说总是运行良好的默认程序:

  • You provide outlines/simple sketchups/your old layout, so the "designer" knows vaguely how you want it to be你提供了大纲/简单的草图/你的旧布局,所以“设计师”模糊地知道你想要它是怎样的

  • You define what the site should do ("there should be a button to...", "there should be a list of..., when you click on it...").您定义站点应该做什么(“应该有一个按钮来...”,“应该有一个...列表,当您单击它时...”)。 So he knows what happens and what site follows another.所以他知道会发生什么,以及什么网站跟随另一个。 That's important .这很重要 He must understand the site.他必须了解这个网站。

  • The better you do the above, the better the results you get from the designer will be你做的越好,你从设计师那里得到的结果就会越好

  • The designer generates layouts in pure HTML with CSS: Example sites with example data, where everything you said before is integrated.设计师在纯 HTML 和 CSS 中生成布局:带有示例数据的示例站点,其中集成了您之前所说的所有内容。

  • You cut up the HTML-code and integrate it yourself in your php-code您剪切 HTML 代码并将其自己集成到您的 php 代码中

This procedure has also the benefit, that an external designer does not get in contact with your application's internal php-code (and cannot "steal" it).此过程还有一个好处,即外部设计人员不会接触到您应用程序的内部 php 代码(也不能“窃取”它)。 And you can dry up your internal code when you integrate the HTML you get.当你集成你得到的 HTML 时,你可以干掉你的内部代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM