Page 1 of 1
Initial Start or Home Page Incorrect
Posted: 2015-04-02 11:08
by primitive_man
One of the applications I've created with AppGini, for some reason always starts on the wrong page.
The App is a simple membership system - keeping track of members, dues, associated activities etc...
The initial page should always be the Login Page - but it invariably defaults to the membership List page - with the message: 'Sorry! You don't have permission to access this table. Please contact the admin.' then it goes to the Homepage (Login Page) ?
Anyone know of a reason why?
Re: Initial Start or Home Page Incorrect
Posted: 2015-04-02 20:33
by patsd102
You maybe have saved the view.php page in your browser.
Try the home.php.
Re: Initial Start or Home Page Incorrect
Posted: 2015-04-04 04:41
by shasta59
Do you have a link you can post so we can take a look and see what is happening?
And, did it ever work properly?
The initial page should show up in your browser as:
http://yourwebsite/folder_name/index.php?signIn=1
You may or may not have a subfolder where all the files reside so you can ignore 'folder_name' in the above text.
What happens when you put in just the website and the subfolder (if present)? Your website software should look for index.htm, index.html, index.php as a minimum.
Did you just copy the files as output in AppGini to your website? Or did you change the organization in any way?
Please supply answers to the above and we may be able to help you figure this out.
Alan
Re: Initial Start or Home Page Incorrect
Posted: 2015-04-04 10:17
by primitive_man
Sorry for the delayed reply -
1. If I put in '
http://yourwebsite/folder_name/index.php?signIn=1' it goes to the correct login page, but if I just enter the folder, ie, '
http://localhost/c_members/' it goes to my membership List page.
2. I have decreased the timeout on my echo membership List by setting it to o - which ensures the access error message only pops up for a second - a quick fix, I know.
3. I believe it's something to do with the fact that I don't use the 'Homepage' option, i.e., the default homepage (home.php) with the table links.
Re: Initial Start or Home Page Incorrect
Posted: 2015-04-04 15:31
by shasta59
The quick way I would fix that is to, in the c_members folder put in a index.html page with a redirect to the correct page
Here is the code from the index.html page as generated by AppGini
Code: Select all
<!doctype html public "-//W3C//DTD html 4.0 //en">
<html>
<head>
<meta http-equiv="Refresh" content="0;url=index.php">
<title>Loading ...</title>
</head>
<body></body>
</html>
Just change url=index.php to whatever page you want and it will make it load the way you wish. It will take a few seconds.
Alan
Re: Initial Start or Home Page Incorrect
Posted: 2015-04-14 19:39
by primitive_man
Thank you. I changed index.php to : index.php?signOut=1 and it works correctly.