Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

APP_ID is the name of your application

 

Describe App Structure

  • Ajax: This directory contains Ajax handler classes
  • assets: This directory contains raw assets such as the images, css, javascript, ...
  • Block: This directory contains block classes
  • Controller: This directory contains controller classes
  • Service: This directory contains service classes
  • hooks: This directory contains plugin scripts
  • views: This directory contain template scripts
  • phrase.json: This file declares language phrases
  • icon.png: This is icon of your app
  • Install.php: This file contains installation script of your app
  • start.php: This file contains bootstrap scripts.

...

In some cases, you will have to modify permissions of these folder to be able to put your code in them.

...

Write Your First Controller

Add new php class IndexController under directory ./PF.Site/Apps/TodoList/Controller/
paste example code.

...