-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Dibbets
committed
Jun 14, 2016
1 parent
ce4913d
commit dc9d1aa
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|