It looks like you're new here. If you want to get involved, click one of these buttons!
I want to display a changelog in the fuel backend so I created a file here:
fuel\modules\fuel\views\changelog.php
<div id="fuel_main_content_inner">
<?php echo file_get_contents(APPPATH.'/changelog.md') ?>
</div>
But calling /fuel/changelog just gives me a 404
How can a make this page available and in the best case create a link in the Tools menu.
Or do I have to create an advanced Modul for that?
Thanks! m.
Comments
It would probably be best to create an advanced module for that instead of updating the core fuel/modules/fuel files.
Alternatively, you could create a controller and route in your main application/controllers directory and application/config/routes.php respectively. The controller can inherit from the Fuel_base_controller.php (which will lock the public out and require you to be logged in) and have a method that renders that page.
To add the menu item, you can add the item to the fuel/application/config/MY_fuel.php file under the
$nav['tools']
array where the key is the route path and the value is the label of the menu item.I think the Advanced Module is the way to go, so I just extended the user_guide Module for that. Perfect place.
Thanks for pointing out the alternative way. Good to know.
Just for the record, in case someone is searching for that:
I replaced the dashboard with the other method you pointed out.
fuel/application/config/routes.php
/application/controllers/Dashboard.php
(with my custom code for fuel dashboard modules and whatever else should appear on the dashboardand my custom dashboard views/templates
application/views/_admin/dashboard_ajax.php
(renders fuel specific dashboard items like RSS Feed, Last Modified etc. andapplication/views/_admin/dashboard.php
(the page itself) are copied fromfuel/modules/fuel/views/*
and modified with different CSS classes or whatever else I wanted to change.