自定义OpenCart电子商务应用程序 [英] Customization of OpenCart E-commerce application

查看:79
本文介绍了自定义OpenCart电子商务应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已经下载了opencart电子商务应用程序并尝试修改index.php页面,但我无法看到该页面的html编码只有PHP编码可见。

当我在浏览器中查看页面源时,它会在同一个index.php文件中显示带有php代码的完整html,但是当我在编辑器中打开此文件时,它只显示php部分



我是php的新手请帮助

Hello,
I have downloaded opencart e-commerce application and trying to modify the index.php page but i am unable to see html coding of that page only php coding is visible.
When i view page source in browser it shows the complete html with php code in the same index.php file but when i open this file in editor it shows only php part of it

I am newbie for php please help

推荐答案

嗯,是的。

HTML由PHP生成。

这就是php的目的。



如果你是完全新的php我建议你不要立即深入了解opencart之类的代码。



opencart的index.php启动一个应用程序。不只是一个简单的页面。

有一个很好的改变,它不包含任何html生成信息,因为这可能会在源代码中包含的函数中完成。



大部分时间都没有必要改变任何一个PHP来实现你的目标。

如果目标是改变外观和感觉。你应该首先更改样式表/ css文件。

如果目标是改变行为,首先查找已经制作的插件。



如果这些都没有帮助您需要更改或添加PHP代码。您应该首先关注php的一些教程。
Ehm, yes.
The HTML is generated by the PHP.
That is the purpose of php.

If you are completly new to php I would suggest you do not dive into the code of something like opencart immediately.

The index.php of opencart starts an application. Not just a simple page.
There is a good change it does not contain any html generation information since that will probably be done in functions included in the source.

Most of the time there is no need to change any of the php to accompish you're goals.
If the goals is to change to look and feel. You should first change the stylesheet/css files.
If the goal is to change the behaviour, look for already made plugins first.

If none of that helps an you need to change or add php code. You should first follow some tutorials on php.


这篇关于自定义OpenCart电子商务应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆