Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konapun/homegrownmvc-skeleton
Skeleton for projects built using HomegrownMVC
https://github.com/konapun/homegrownmvc-skeleton
Last synced: 22 days ago
JSON representation
Skeleton for projects built using HomegrownMVC
- Host: GitHub
- URL: https://github.com/konapun/homegrownmvc-skeleton
- Owner: konapun
- Created: 2014-01-14T22:41:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-06T16:40:26.000Z (almost 9 years ago)
- Last Synced: 2024-04-14T19:58:14.756Z (7 months ago)
- Language: PHP
- Size: 633 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HomegrownMVC Skeleton
Skeleton for project using [HomegrownMVC](https://github.com/konapun/HomegrownMVC) with the recommended setup:
* Models: HomegrownMVC
* Controllers: HomegrownMVC
* Views: [Smarty](http://www.smarty.net/) (included in /lib/Smarty)
* Database: [PDO](http://php.net/pdo) (add your connection params in /config/environments/production.json)
* Requests: HomegrownMVC
* Configuration: [tiered-configuration](https://github.com/konapun/tiered-configuration) read in and made available as static functions via `Config`## Getting started
1. Assuming you have installed PDO with drivers for the database of your choice, simply download this project and put it in your webroot.
2. Ensure your Apache config has `AllowOverride` enabled so this project's .htaccess can do URL rewrites.
3. Next, open config/environments/production.json (or whatever specific environment file you're using) and edit PDO connection parameters for your database. **If you're NOT using a database then set the USE_DATABASE parameter to false in /config/environments/GLOBAL.json**.
4. Make sure your permissions are correctly set. The server needs to be able to read and execute every folder/file and needs to be able to write to /tmp and /templates_c.
5. Start creating controllers and defining your routes, and creating models (see [HomegrownMVC documentation](https://github.com/konapun/HomegrownMVC) for details).
6. Create your pages in views as Smarty templates and invoke the view engine from your controller.
- A sample error controller and error page is included and can be used as an example