English 中文(简体)
网络应用建筑方法
原标题:Web Application Architecture Approach CodeIgniter

一段时间以来,我一直在寻找良好的建筑模式。 我认为,在良好的应用中,应当有控制器和模块,应当在不同页上重复。 例如,购物车——如果你在网上店铺工作,几乎每页都需要。

对我来说,另一项要求是,它应当支持网站不断变化的风格(themes ́kins)——可以通过决定两个部分的风格来实现——观点和资产(cs、图像、javascript)。 这就意味着,所有意见都应放在一个地方,而不是像在模块推广。

最后,它的结构应当如此:

    application/
    ├────controllers/
    |       ├────home.php
    |       └────products.php
    ├────modules/
    |       └────shopping-cart.php
    └────views/
            └────style_blue/
                    ├────home.php
                    ├────products.php
                    └────modules/
                            └────shopping-cart.php
    assets/
    └────style_blue/
            ├────css/
            |     └────style.css
            ├────js/
            |     └────jquery.js
            └────images/
                  └────header.png

这是完美的结构吗?

  • It can be extended with new modules and controllers.
  • It can have different styles (skins|themes)
  • It is pretty simple and in the same time functional

我是《刑法》的一大狂热分子,我希望与《刑法》一样做一些事情。 是否有可为我工作的额外经验?

最佳回答

http://www.getsstarts.org”rel=“nofollow”http://www.getsstarts.org for some Additional-ons.

I believe this is what you need for your custom styles: http://getsparks.org/packages/template/versions/HEAD/show

它可以根据描述处理多个主题。 此外,该图书馆非常手提。 (我正在使用这一工具,只是没有使用主题部分。)

Furthermore, for modules maybe this is what you need? https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home

问题回答

暂无回答




相关问题
SQL Server - How many users do I *really* need?

I m setting up an application, and I m looking into purchasing a license for SQL Server. My question is pretty simple (though may have a complicated answer...) How many users accounts do I really ...

Object Graph / Persistence Question

I m currently working with an online application that requires multiple screens/steps in order to complete. The application domain is modeled using an object graph. Persistence to and from a database ...

Why does stack get truncated in Exception.StackTrace?

Why does the high part of the stack (in Exception.StackTrace) gets truncated? Let s see a simple example: public void ExternalMethod() { InternalMethod(); } public void InternalMethod() { try ...

ASP.NET MVC and Service Oriented Architecture

I would like to know how do i incorporate a feature like wcf within and MVC application. My current idea of the architecture is as follows: EntityFramework -> ASP.NET MVC (Views) ...

热门标签