tipsyphp/tipsy-mvc

为 Tipsy 开发的 MVC 扩展

v1.0.2 2016-10-21 05:39 UTC

This package is not auto-updated.

Last update: 2024-09-20 21:35:43 UTC


README

一个根据 rails 目录结构设计的 MVC 适配器。

不幸的是,Composer 不允许执行依赖脚本,因此需要安装说明。参考 https://getcomposer.org.cn/doc/articles/scripts.md#what-is-a-script-。查看 https://github.com/tipsyphp/tipsy-example-mvc/blob/master/composer.json 以获取自动安装的示例 composer 文件。

安装

  1. composer require tipsyphp/tipsy dev-master && composer require tipsyphp/tipsy-mvc dev-master
  2. php vendor/tipsyphp/tipsy-mvc/install.php

目录结构

app
  controllers
    home
	  index.php
  models
  view
    home.phtml
	layouts
	  default.phtml
config
  config.ini
public
  .htaccess
  index.php

有关更多信息,请参阅 Tipsy 文档