Example #1
0
{
    /**
     * A simple property that define if the admin content is showed in admin view or raw (you can use headers if you want in your admin code).
     */
    public static $show_admin_view = true;
    /**
     * A property that define the index of admin
     * 
     */
    public static $admin_controller = array('admin', 'vendor/phangoapp/admin/controllers/admin/admin_admin');
    /**
     * The name of the default admin home.You need change it if you changed the admin controller 
     * 
     */
    public static $name_admin = '';
    /**
     * A simple method for create urls for use in admin
     *
     * With this method you can create easily urls for your admin site
     *
     * @param string $text_admin The module to admin
     * @param array $parameters An array with format key value used for set get values in the new url
     */
    public static function set_admin_link($text_admin, $parameters = array())
    {
        #return Routes::make_module_url(ADMIN_FOLDER, 'index', 'home', array($text_admin), $get=$parameters);
        return Routes::make_simple_url(ADMIN_FOLDER, array($text_admin), $parameters);
    }
}
AdminUtils::$name_admin = I18n::lang('phangoapp/admin', 'admin', 'Admin');