Table of Contents
- 1. WebApp Directory structure
- 2. Sample App
- 3. Dreamhost servers
- 4. Offline
- 5. Crazy Maik
- 6. Actions and Commands
- 7. session fragment
- 8. Network
- 9. functionality
- 10. printing
- 11. HitiPPR_GetPrinterInfo
- 12. PrintingPhotoUtility
- 13. Network Discovery
- 14. update yii apps
- 15. ACT I. Scene I. Verona. A...
- 16. Scene II. A Street.
- 17. Scene III. Capulet's house.
- 18. Scene IV. A street.
- 19. Scene V. Capulet's house.
- 20. PROLOGUE
- 21. ACT II. Scene I. A lane b...
- 22. Scene II. Capulet's orchard.
- 23. Scene III. Friar Laurence...
- 24. Scene IV. A street.
- 25. Scene V. Capulet's orchard.
- 26. Scene VI. Friar Laurence'...
- 27. ACT III. Scene I. A publi...
- 28. Scene II. Capulet's orchard.
- 29. Scene III. Friar Laurence...
- 30. Scene IV. Capulet's house
- 31. Scene V. Capulet's orchard.
- 32. ACT IV. Scene I. Friar La...
- 33. Scene II. Capulet's house.
- 34. Scene III. Juliet's chamber.
- 35. Scene IV. Capulet's house.
- 36. Scene V. Juliet's chamber.
- 37. ACT V. Scene I. Mantua. A...
- 38. Scene II. Verona. Friar L...
Sample App
Under x0data.app
we find a sample webApp built upon
- the Yii 2.0 framework
- the advanced template webapp that comes with Yii
However, the sample WebApp has been modified in several ways. The goal is to quickly start a new webapp for a new url or idea that we have.
The sample webapp has the following entry-points
The identity class is set as 'identityClass' => 'common\models\User'
. Our User class extends either from User_with_db.php
or User_without_db.php
. This allows for easy switching between User registration with a database, or in an array hardcoded in the User_without_db.php
class.
publish assets
This sample app will publish assets if they are not there, even in production mode. But only in development mode, the assets will be (re)published on every request. This is achieved by `common/config.main.php':
if (YII_ENV_DEV)
{
$config['components']['assetManager']['forceCopy'] = true;
}
However, if the server supports Options +FollowSymLinks
we can comment out the forceCopy
and get superior performance and always-up-to-date assets by adding in `common/config.main.php':
$config['components']['assetManager']['linkAssets'] = true;
