Dienstag, 29. Dezember 2015

Little CMS - phpReports

phpReports is a little Content-Management-System which doesn't need the whole installation and setup-overload like Joomla or Wordpress. So it is perfect if you want to write you webpage by your own code and want to display an handle small reports or notifications to the user.

How does it work?

Think about a container of all of your reports. The framework provides access into this container. It is possible to select a specific report out of the container, or to select all reports by year, or to select all reports you worte. If you successfully include the framework into your website you only have to add new reports to this container, while the container is only a folder on the server. Reports are written in html. There are two files for every report. The first one has the suffix "s". This means "short" and those files describe the short-version of the report you might want to show in an overview. The other file has no suffix an includes the whole report. So in the end you have to create html-files for your reports and paste it into your report-folder.

Nothing works without configuration

But the configuration is straitforward. If you have a look to the files which comes with phpReports you will find a file called Configurator.php. If you open this file you found the things you can configurate:
  • report_dir: The directory/container for your reports
  • image_dir: The directory for the images you use within the reports.
  • report_parameter: The URL-parameter for the report.
  • headline_for_latest_events: The headline for the overview of short-version of reports.
  • event_page: The file which contains the whole content of reports.
  • template_dir: The directory for templates for notifications and other stuff that has not primary to do with reports.
  • report_not_found_temp: The template for the page which is shown if no report was found. Usually you put this template in the template-directory.
That's all.  To use the core of phpReports you don't have to configurate all of these things, but the blue ones.

Embedding of phpReports

To embedd the framework you should read the readme within the github. With this information and the example you should be able to use it.

So have a look at: https://github.com/gundermann/phpReports

Keine Kommentare:

Kommentar veröffentlichen