Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

miniMVC framework/boilerplate

Featured Replies

I meant to release this a while back, I just couldn't be bothered writing up the basic documentation for it.

 

Here's a copy of the README, should explain everything:

 

 

miniMVC

An absolute bare-bones basic MVC framework/boilerplate for tiny PHP projects

 

--------------------------------------------------------------------------------

miniMVC is intended to be used for extremely small PHP projects, where you want

to seperate the code from the user interface.

 

miniMVC does NOT provide any existing classes, and only provides a dummy

controller, model and view. However, it does provide the basis of loading

these into your project.

 

--------------------------------------------------------------------------------

Mini-Documentation for miniMVC

 

-All controllers go in Application/Controllers, and are loaded

via Application::loadController('controllerName'). However, if you need to use more

than one controller, this framework is probably too small for your needs.

The controller's filename MUST be the same as the name of the class

contained inside the controller. For example, a controller named blog.php

would contain inside it class Blog. Furthermore, all controllers must extend

the class Application

 

-All models go in Application/Models, and are loaded via

Application::loadModel('modelName'). They are then accessible through

Application::model['modelName']. Again, the model's filename must be

the same as the name of the class it defines. For example, a model named

comments.php must contain within it class Comments.

 

-All views go in Application/Views, and are loaded via

Application::loadView('viewName', $array). The $array is optional, and if

passed, is extracted, and the resulting variables are usable in the view.

 

--------------------------------------------------------------------------------

License: Creative Commons

 

Anyway, it's available on github, right here. It's nothing advanced, and I'm sure you guys could do it in 5 or so minutes, this just saves time.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.