Skip to content
/ z-fw Public

php-zend inspired node "framework" for serving webpages in MVC style.

License

Notifications You must be signed in to change notification settings

git-j/z-fw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

z-fw

php-zend inspired node "framework" for serving webpages in MVC style.

start a zend-like enviroment that serves webpages

npm install (installs jquery)
npm start (runs the server)

reloads controlle&view-files when a request is made. new controllers and views can be added easily without updating the server code can be customized and extended

controller

  • indexController.js
  • otherController.js
    • always implement
      indexAction()
    • may implement
      createAction() / removeAction()

htdocs

  • static files like css, 3rdparty js or images

views

  • index
    • index.html
  • other
    • index.html
  • a html-file named like the implemented action from the controller
    eg otherController::createAction loads views/other/create.html
  • html-files contain static content and define application-code with <?js expression ?> (similar to statements
    the expression is eval'd and can access a 'self' object that can be filled in the controller

About

php-zend inspired node "framework" for serving webpages in MVC style.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published