Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Dibbets committed Jun 14, 2016
1 parent ce4913d commit dc9d1aa
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## October Metro Applications ##

This should make it easy to implement applications into your octoberCMS installation.

In your controller where you wish to integrate applications have a view(for example index.html)
where you have the following code

<?php echo $this->renderApps();?>

In the controller itself add the following *use* statement

use Applications\ApplicationController;

and have the extend the applicationcontroller

class UserApplications extends ApplicationController

Then in the controller register your applications you wish to display

public function __construct()
{
parent::__construct();
$this->registerApplication('UserSettingsApplication');
$this->registerApplication('FooBar');
$this->loadApplicationAssets();
BackendMenu::setContext('ExitControl.Desktop', 'desktop', 'userapplications');
}
To create a new application:

$> php appCreate create:application FooBar

in the folder where appCreate resides.

Then the application will be added in the applications folder where you can edit it and add the functionality you wish.


0 comments on commit dc9d1aa

Please sign in to comment.