Codeigniter表达式引擎

发布于 2024-10-18 07:10:48 字数 165 浏览 0 评论 0原文

我刚刚开始使用 codeigniter,我发现它很容易使用。我最近遇到了 expressionEngine,它似乎是 codeigniter 的一个很棒的附加组件。我的问题是,在我安装 expressionEngine 后,这是否会改变我使用 codeigniter 的方式,其中代码进入控制器并在视图文件夹中查看。

I just started working with codeigniter and i found it easy to work with. I recently came across expressionEngine and seems like a great add-on for codeigniter. My questions is, after i install expressionEngine, will that change the way i work with codeigniter where code goes in controller and view in the view folder.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

场罚期间 2024-10-25 07:10:48

苹果和橘子,

Codeigniter 是一个框架,允许您创建像管理系统一样的 Web 应用程序。客户不添加任何内容或触摸任何东西。您可以将 CMS 功能添加到您的 codeigniter Web 应用程序中,但从这个意义上说,您实际上是在 Web 应用程序之上构建您自己的 CMS。

ExpressionEngine 使用 codeigniter 构建,是一个 CMS,允许客户端添加内容,而无需实际授予他们访问您的 HTML 的权限 - 这并不是说您不能授予他们访问权限,但这会违背 CMS 的目的。

因为 expressionEngine 是建立在 codeigniter 之上的,所以可以访问它的功能(我已经看过关于此的帖子,但我自己还没有尝试过)。

我认为如果您有一个带有网站的 Web 应用程序,您会同时使用这两者。通过这种方式,客户端将能够向网站甚至某些应用程序信息区域添加内容,但您将使用 Codeigniter 来构建 Web 应用程序的功能。

我不认为进入ExpressionEngine会浪费一周时间。 LevelUpTuts 有一些关于 expressionEngine 2 的精彩视频教程,并且从 Scratch 尝试 Nettuts+ CodeIgniter,令人惊讶的是,codeigniter。

(对于刚接触CMS的人来说)开发的大致流程是:
- 将您的网站设计转换为 HTML/CMS/jQuery
- 将您的 HTML 转换为 expresionEngine 模板
- 定义您的客户将向其添加内容的频道
- 将这些频道嵌入到您的模板中以动态显示该内容
- 在管理中,分配权限给谁可以将内容添加到您的客户的哪些频道

一旦您尝试它就会开始有意义。

Apples and Oranges,

Codeigniter is a framework that allows you to create a Web Application like an admin system. The customer does not add any content or touch anything. You can add CMS functionality to your codeigniter Web Application however in this sense you are actually building your own CMS on top of your Web Application.

ExpressionEngine, built with codeigniter, is a CMS that allows clients to add content without actually giving them access to your HTML - That is not to say that you can't give them access but this would defeat the purpose of a CMS.

Because expressionEngine is built on top of codeigniter it is possible to access it's functionality (I've seen posts on this but haven't tried it yet myself).

I think you would use the two together if you had a Web Application with a Website around it. In this way the client would be able to add content to the website and even some of the Application information areas but you would use Codeigniter to build the Web Application's functionality.

I don't think it would be a waste of a week to get into expressionEngine. LevelUpTuts has some great video tutes on expressionEngine 2 and try Nettuts+ CodeIgniter from Scratch for, suprisingly, codeigniter.

(For those who are new to CMS) The general process of development is:
- Translate your website design to HTML/CMS/jQuery
- Translate your HTML to expresionEngine Templates
- Define your Channels which your clients will add content to
- Embed those Channels into your templates to display that content dynamically
- In administration, assign permissions to who can add content to which channels for your clients

It will start to make sense once you try it.

找个人就嫁了吧 2024-10-25 07:10:48

您不能将 ExpressionEngine 置于 CodeIgniter 之上,因为 CodeIgniter 是从 ExpressionEngine 中提取的。一直都是 EE,或者使用 CodeIgniter 构建您自己的东西。

You can't layer ExpressionEngine on top of CodeIgniter since CodeIgniter is extracted from ExpressionEngine. It's EE all the way, or use CodeIgniter to build your own thing.

荒人说梦 2024-10-25 07:10:48

如果您有要求,ExpressionEngine 支持 模板内的 PHP 代码

EE(2.0)是基于CI2.0框架构建的CMS。

如果您熟悉 CI,您将能够轻松破解、修改和扩展 EE,以及开发自己的插件等。

当然,您可以安装 EE 和 CI 安装同一个服务器,但两者不直接交互——CI是框架,EE是CMS。

ExpressionEngine supports PHP code inside it's templates if that's what your asking.

EE(2.0) is a CMS built on the CI2.0 framework.

If you are familiar with CI you will be able to hack, modify and extend EE with ease, as well as develop your own plugins etc.

You can of course, have an EE installation and a CI installation on the same server, but the two do not interact directly - CI is a framework, EE is a CMS.

恋竹姑娘 2024-10-25 07:10:48

不确定我是否会将 EE 称为“附加组件”...

EE 是它自己的独立内容管理系统。一般来说,EE 和 CI 不应该混合在一起。虽然 EE 是基于 CI 构建的,但它并不意味着要扩展/更改等...他们 (Ellislab) 会告诉你,如果 EE 不能满足您的要求,那么您需要专门使用 CI。

另外,对于您视为“附加组件”的东西来说,300 美元的许可证相当昂贵。

我建议查看 PyroCMS,它也是一个基于 CI 构建的免费(啤酒和语音)CMS,直接允许“模块” “开发是直接的 Codeigniter 开发,添加了一些元/安装文件,允许您在 Codeigniter 结构中构建所需的额外功能。

Not sure I would call EE an "add-on"...

EE is it's own standalone Content Management System. Generally EE and CI are not meant to be mixed. While EE is built on CI, it is not meant to be extended/changed etc... They (Ellislab) will tell you, If EE doesn't fulfill your requirements, then you need to use CI exclusively.

Plus, a 300$ license is pretty expensive for something that you view as an "add-on".

I would reccomend looking into PyroCMS, which is also a free (beer and speech) CMS built on CI that directly allows for "Module" development which is straight codeigniter development with a few added meta/installation files that would allow you to build the extra functionality you need within the Codeigniter structure.

天荒地未老 2024-10-25 07:10:48

表达式引擎有四个文件。
例如,我有名为“产品”的模块
1)mcp.products用于管理端或管理控制面板只是pyrocms中的管理控制器
2)mod.products 前端代码放置在这里 3)tab.products 选项卡放置在这里 4)upd.products 安装代码。在我们的案例“products_model”中,“views”文件夹中有视图,模型位于“model”文件夹中。只需复制您的控制器方法并将其粘贴到管理端的 mcp.products.php 中即可。并复制控制器方法并将它们粘贴到前端侧的 mod.products.php 中。在 udp 文件中放置表结构。它将像您在 Pyrocms 中一样对待。

There are four files for expression engine.
For Example i have module named "Products"
1)mcp.products for admin end or admin control panel just admin controller in pyrocms
2)mod.products front end code is placed here 3)tab.products tabs are here 4)upd.products installation code. There are views in "views" folder and model is in "model" folder in our case "products_model". Just copy your controllers methods and paste them in mcp.products.php on admin side. and copy your controllers methods and paste them in mod.products.php on front end side. in udp file place the table structure.and it will treat as you are in Pyrocms.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文