How to setup custom page as your start up page in your Frontaccounting |
X

Congrats, You are Subscribed to Receive Updates.

How to setup custom page as your start up page in your Frontaccounting


How to setup custom page as your start up page in your Frontaccounting. Sometimes we need to create custom page with some custom fields. Sometimes we may need to create custom dashboard with some custom functions in a page while Theming.

We may create a custom page aa startup page after user logged in. Lets move to implementation, In your header.inc which is there in your root of fa/includes/page/header.inc

And find the following line.

	$_SESSION["sel_app"] = $sel_app;
	$_SESSION["sel_app"]; 

And copy paste the following line code just below this one.

	$header_check =  'http://'.$_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
	if($header_check == 'http://projects.kvcodes.com/kuwait/') { // your site url
			header("location:http://projects.kvcodes.com/kuwait/dashboard.php");	// redirect domain with path. 
        }

That’s it. If you change the installation path it will suite you. If you have any bug or doubt comment below.

commenter

About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, PHP and Data Analyst. Database Management Advance Level

2 comments

  1. commenter

    With your code below What is the “SERVER_NAME” and “REQUEST_URI” that i need to place. Please elaborate. Thanks

    $header_check = ‘http://’.$_SERVER[“SERVER_NAME”] . $_SERVER[“REQUEST_URI”];

Comment Below

Your email address will not be published. Required fields are marked *

*

Current ye@r *

Menu

Sidebar