How to remove AppGini 25.13 -- Vertical navigation bar

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
chewliew
Posts: 8
Joined: 2025-05-12 13:12

How to remove AppGini 25.13 -- Vertical navigation bar

Post by chewliew » 2025-08-30 03:54

Dear Sir,

The new AppGini 25.13 released have this Vertical navigation bar.
How to remove that REMOVE the navigation bar?

In my app, I am actually hiding all the tables from the user's dashboards.
Reason being I do not want them to see ANY tables in SQL, and mess around with the values of the records.
I only limit users to see certain fields and allow them to edit/update those fields, all other fields are hidden from users for security and data consistency reasons

Please let me know how to remove that REMOVE the navigation bar.

Thanks.

Best regards,

Liew

chewliew
Posts: 8
Joined: 2025-05-12 13:12

Re: How to remove AppGini 25.13 -- Vertical navigation bar

Post by chewliew » 2025-08-31 03:35

I found this line in header.php,

<?php echo VerticalNav::html(); ?>

Removed this line and the vertical navigation bar will go away.
However, this header.php is auto generate every time we generate AppGini.

Anyone know a better way to do this?

Best regards,

Liew

saymaad
AppGini Super Hero
AppGini Super Hero
Posts: 61
Joined: 2024-06-03 16:17

Re: How to remove AppGini 25.13 -- Vertical navigation bar

Post by saymaad » 2025-09-01 09:28

1. Set Navigation Preference in Project Settings
In AppGini 25.13, there's a built-in option to set the default navigation menu orientation. You can do this via:
AppGini > Project > Properties > Application Appearance > Default Navigation Menu Orientation > Horizontal
default-nav-menu-option.png
default-nav-menu-option.png (20.84 KiB) Viewed 1053 times
This ensures that your application default to the horizontal menu and users have an option to switch to the vertical navigation if they prefer, which might align more closely with your desire to hide the vertical nav.

2. Force Horizontal Menu via Code
To enforce the default globally, add the following line to hooks/__bootstrap.php:

Code: Select all

@define('DEFAULT_NAV_MENU', 'horizontal');
This sets the default menu layout for all users similar to the above, without regenerating your app and retaining user preference for vertical nav.

3. Hide User's Ability to Change Menu Layout (Optional)
If you don't want users to switch to the vertical menu via their profile page (membership_profile.php), you can hide the toggle buttons using jQuery.

Add the following to hooks/header-extras.php (this is refered at all times unlike the footer-extras.php if my memory serves me well):

Code: Select all

<?php if (basename($_SERVER['PHP_SELF']) == 'membership_profile.php') : ?>
	<script>
		$j(() => {
			$j('#nav-menu').remove();
		});
	</script>
<?php endif; ?>
This will remove the button group that lets users toggle between horizontal and vertical menu layouts on their profile page.


chewliew
Posts: 8
Joined: 2025-05-12 13:12

Re: How to remove AppGini 25.13 -- Vertical navigation bar

Post by chewliew » 2025-09-12 12:29

Thanks saymaad for the explanation.

Sorry for the late reply.

I keep using the version 25.13 for the past 2 weeks.
Using this version, XAMP mysql seems to keep crashing for more than usual with version 25.12.
I think this is the 4th time I reinstall XAMP within the 2 weeks.

1) This time, after re-install, trying to export all the files from Appgini, it give this :
1.png
1.png (42.41 KiB) Viewed 94 times
The directory is created, tried it with "/" or without "/", Appgini still would not allow to export .

2) When accessing from browser: It give this error:
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\apr\settings-manager.php on line 200

I tried to re-install back to version 25.12, also the same thing.

Now I am totally stuck and can not continue to run anything.

saymaad
AppGini Super Hero
AppGini Super Hero
Posts: 61
Joined: 2024-06-03 16:17

Re: How to remove AppGini 25.13 -- Vertical navigation bar

Post by saymaad » 2025-09-12 16:27

Hello chewliew,

The "AppGini can't write to this folder" error, even when the folder exists, indicates a permissions issue. The core problem is likely that AppGini doesn't have the necessary rights to write or access that folder. This can happen if you manually created the folder or XAMPP was installed with a different user, there has been a few posts on this topic recently, I don't remember if they were solved or not, please try searching for them as well. Before you search, I would recommend that you:
  1. Right-click the AppGini application and choose Run as administrator. This is often the simplest fix as it gives the program elevated permissions to bypass Windows security restrictions on file and folder access.
  2. Manually check the permissions of your target export folder. Right-click the folder, go to Properties > Security, and ensure your Windows user account has Full Control permissions. If not, edit the permissions to grant them.
  3. Try a simple directory like C:\Users\<YOUR WINDOWS USERNAME>\AppGini_Exports and then copy to the XAMPP folder manually as a temporary workaround.
Memory Exhausted Error
Allowed memory size exhausted error is a server-side issue, not an AppGini bug. This error means your PHP script is trying to use more memory than is currently allocated to it in your XAMPP configuration. The memory limit is set in the php.ini file, to fix this, you need to edit your php.ini file, which is located in your XAMPP installation directory
onoehring wrote:
2025-09-07 08:42
Hi saymaad
thanks for the explanation. Great input.

Olaf
You're welcome Olaf! Glad to contribute alongside folks like you who make this forum so valuable.

Post Reply