The CMS Module - RelationalExtend/RelationalExtend GitHub Wiki

The CMS Module is located within the fuel/app/modules/cms/ folder. It is a basic FuelPHP Module.

The CMS Module allows us to customize the CMS backend. By default the controller looks as follows (ready to customize):

<?php
/**
 * CMS
 *
 * @author     Ahmed Maawy
 * @copyright  2011 - 2012 Ahmed Maawy
 */

namespace cms;

class Controller_CMS extends \Controller_Admin {

	protected $controller_path = "cms/cms/";
	protected $default_admin_extension_path = "cms/cms/";
	
	protected $is_abstract_controller = false;

	public function before()
	{
		parent::before();
	}
}

#Addon functions that implement add-on functionality

There are 3 special functions that add extra functionality to the CMS backend of the website.

  • admin_settings : Brings up a "Settings" section to the top menu. Use this function as a controller action to render custom functionality for this section.
  • admin_navigation : May allow you to define custom navigation interfaces. The "Navigation" section will pop up if this function is constructed. Use it as a controller action.
  • admin_users : The "Users" menu will pop up. Will also force authentication if made present. So make sure you also implement the action_login and action_logout action entries to your controller if you implement this function.