我们可以使用 ExpressionEngine 自定义 PHP/Mysql
我正在研究将 expressionEngine 作为我正在从事的项目的 CMS。我不确定 EE 是否可以与自定义 PHP/JQuery 一起使用。我想允许用户上传图像,每个用户的图像都会进入以用户 ID 命名的用户文件夹中。然后,用户可以通过单击“显示所有图像”来访问他上传的图像...类似的东西。我在纯 PHP 中完成了这项工作,但问题是这是否可以在 EE 中完成,以及这样做的效率或容易程度如何。
I'm looking into expressionEngine as a CMS for a project i'm working on. I'm not sure if EE works with Custom PHP/JQuery. I'm want to allows users to upload images, Each user's images would go into the user's folder named after his userid. User can then access his uploaded images y clicking on show all images... Something along this liken. I have this done in Pure PHP, but the questions is can this be done in EE and how efficient or easy it is to do so.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不明白为什么你不能在 EE 中完成这些事情。 EE 有一些很好的图像库设置,并且自定义编程(从 EE 2.0 开始)依赖于 CodeIgniter。
http://www.packtpub.com/article/expressionengine-creating-a -photo-gallery
愿意学习“EE”(现在的“CodeIgniter”)方法。但当然,您可以轻松地在 EE 之上构建自己的系统。
http://net.tutsplus。 com/tutorials/php/codeigniter-from-scratch-file-uploading-and-image-manipulation/
一个好处是 EE 社区非常友好和活跃。另外还有一些出色的开发人员,例如 Leevi Graham:
http://leevigraham.com/
http://ee-garage.com/
还有一些更具体的示例:
http://codeigniter.com/user_guide/libraries/file_uploading.html
http://jefim.eu/blog/2009/10/image-file-upload-with-codeigniter/
http://codeigniter.com/forums/viewthread/80610/
一些更好的信息:
http://net.tutsplus.com/articles /web-roundups/30-awesome-codeigniter-tutorials-for-all-skill-levels/
I don't see why you couldn't accomplish these things within EE. EE has some good image gallery setups, and custom programming (as of EE 2.0) relies on CodeIgniter.
http://www.packtpub.com/article/expressionengine-creating-a-photo-gallery
Be willing to learn the "EE" (now "CodeIgniter") way of doing it. But sure, you could easily build your own system on top of EE.
http://net.tutsplus.com/tutorials/php/codeigniter-from-scratch-file-uploading-and-image-manipulation/
A bonus is that the EE community is very friendly and active. Plus there are some great developers, such as Leevi Graham:
http://leevigraham.com/
http://ee-garage.com/
And some more specific examples:
http://codeigniter.com/user_guide/libraries/file_uploading.html
http://jefim.eu/blog/2009/10/image-file-upload-with-codeigniter/
http://codeigniter.com/forums/viewthread/80610/
Some more good information:
http://net.tutsplus.com/articles/web-roundups/30-awesome-codeigniter-tutorials-for-all-skill-levels/
我没有太多接触ExpressionEngine,但是我为使用过EE的设计师做过一些自由工作。您可以使用 EE 中的模板并将自己的 PHP 代码注入其中,没有问题。您只需在每个模板的基础上调整一些设置(启用 PHP 代码并将 PHP 处理设置为在输入阶段或输出阶段发生 - 但不完全确定这样做的效果是什么)。
基本上,你可以在 EE 中使用你自己的 PHP。
I haven't touched ExpressionEngine a lot, but I have done some freelance work for designers who have used EE. You can use templates in EE and inject your own PHP code into them no problem. You just have to tweak a couple of settings on a per template basis (enable PHP code and set PHP processing to occur at either the input stage or the output stage - not entirely sure what the effect of that is though).
Basically, yeah you can use your own PHP in EE.
ExpressionEngine (EE) 基于 CodeIgniter (CI) 一个免费的 PHP (MVC) 框架。因此,您可能必须创建一个自定义控制器和模型才能执行此操作,但这是一个简单的请求,因此应该很容易。从这里开始:http://codeigniter.com/
ExpressionEngine (EE) is based on CodeIgniter (CI) a free PHP (MVC) framework. So you you may have to create a custom controller and model to do this but its a simple request so should be easy. Start here: http://codeigniter.com/
如上所述,有多种方法可以实现您正在寻求的功能。最简单的方法涉及依赖 EE 模板代码中的几个精心设计的条件语句,但此方法会将所有图像转储到一个文件夹中(而不是将它们存储在以每个用户 ID 命名的文件夹中)。
如果您发现确实想打破这种结构并将每个用户的照片存储在一个唯一的文件夹中,您可以使用 EE API。该 API 允许您执行许多强大的操作,并且根据手头的任务,比标准 PHP 更方便使用。
As mentioned above, there are several ways of achieving the functionality that you're seeking. The easiest methods involve relying on a couple of carefully crafted conditional statements in EE template code, but this method would dump all images into one folder (instead of storing them within a folder named after each user's ID).
If you find that you really want to break out of this structure and store each user's photos in a unique folder, you could use the EE API. The API allows you to do many powerful things and can be much more convenient to use than standard PHP , depending on the task at hand.