Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reviewed and splitted the persistence guide #56

Merged
merged 4 commits into from
Dec 17, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions app/helpers/Content/Category/DevelopCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,35 @@ public function getItems()
]),
new EmptySubCategory('Understanding Piwik', [
new Guide('how-piwik-works'),
new Guide('all-about-analytics-data'),
new Guide('http-request-handling'),
new Guide('piwiks-extensibility-points'),
]),
new Guide('mvc-in-piwik'),
new EmptySubCategory('Web Interface', [
new Guide('controllers'),
new Guide('views'),
new Guide('pages'),
new Guide('menus'),
new Guide('widgets'),
new Guide('working-with-piwiks-ui'),
new Guide('visualizing-report-data'),
]),
new EmptySubCategory('HTTP Reporting API', [
new Guide('apis'),
new Guide('piwiks-reporting-api'),
]),
new Guide('piwik-on-the-command-line'),
new EmptySubCategory('Archiving and data', [
new Guide('all-about-analytics-data'),
new Guide('persistence-and-the-mysql-backend'),
new Guide('plugin-data'),
]),
new Guide('piwik-configuration'),
new Guide('persistence-and-the-mysql-backend'),
new EmptySubCategory('Security', [
new Guide('security-in-piwik'),
new Guide('permissions'),
]),
new Guide('internationalization'),
new Guide('tests'),
new Guide('piwiks-reporting-api'),
new Guide('scheduled-tasks'),
new EmptySubCategory('Piwik Core development', [
new Guide('contributing-to-piwik-core'),
Expand Down
4 changes: 4 additions & 0 deletions app/helpers/Redirects.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public static function getRedirects()
'/api-reference/metadata' => '/api-reference/reporting-api-metadata',
'/api-reference/segmentation' => '/api-reference/reporting-api-segmentation',
'/guides/automated-tests' => '/guides/tests',
'/guides/mvc-in-piwik' => '/guides/controllers',
'/guides/mvc-models' => '/guides/apis',
'/guides/mvc-views' => '/guides/views',
'/guides/mvc-controllers' => '/guides/controllers',
];
}
}
4 changes: 1 addition & 3 deletions docs/mvc-models.md → docs/apis.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
category: Develop
previous: http-request-handling
next: mvc-views
---
# Piwik APIs (Models)
# Piwik APIs

Piwik APIs serve two purposes: they serve the data used in controller methods and they [automatically expose plugin functionality through an HTTP API](/guides/piwiks-reporting-api).

Expand Down
1 change: 0 additions & 1 deletion docs/mvc-controllers.md → docs/controllers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
category: Develop
previous: mvc-views
---
# Controllers

Expand Down
4 changes: 0 additions & 4 deletions docs/http-request-handling.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
---
category: Develop
previous: mvc-in-piwik
next: mvc-models
---
# How Piwik Handles HTTP Requests

Piwik's MVC (Model-View-Controller) implementation is the first bit of code that is executed when Piwik handles an HTTP request.

Every request that is sent to Piwik's reporting side (as opposed to Piwik's tracking side) is sent to the `index.php` file in Piwik's root directory. This file creates an instance of the [FrontController](/api-reference/Piwik/FrontController) and uses it to dispatch the current request.

The FrontController looks for the `module` and `action` query parameters. If `action` is missing, it takes the default value `"index"`. Piwik then invokes the matching controller method:
Expand Down
26 changes: 0 additions & 26 deletions docs/mvc-in-piwik.md

This file was deleted.

5 changes: 3 additions & 2 deletions docs/pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A page can contain any corporate related content, key metrics, news, help pages,

## Creating a page

Creating a page means creating [a controller](/guides/mvc-controllers) and [a Twig template](/guides/mvc-views).
Creating a page means creating [a controller](/guides/controllers) and [a Twig template](/guides/views).

You can use the console for this:

Expand Down Expand Up @@ -87,5 +87,6 @@ So far you have created a page but you can still not access it. To add it to one

You can also read the following guides:

- [Controllers](/guides/mvc-controllers.md)
- [Controllers](/guides/controllers.md)
- [Controllers](/guides/views.md)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

->Views

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

- [Security in Piwik](/guides/security-in-piwik.md)
Loading