Page 1 of 1

PHP code generator - working or not?

Posted: 2018-06-17 20:22
by rprevost
Hello to you all,
Just purchased a copy of AppGini version 5.7.2. Created new project. Put it online. Works okay.
Brought many changes via AppGini. Used PHP code generator button. Uploaded via FTP. Result: no change.

Then I emptied content of target directory on my computer. Used Generator button. Saved all files to empty directory.
Emptied target directory on server (except config.php). Uploaded generated files and folders.
Clear history, cache, everything on Google Chrome.
Went to the website and ... same thing. It is as if the code generator was not working.

Tried another browser (Firefox), same thing.

Any idea on what is happening? Freaking behaviour I must say.
How can I check if the generated code reflects the changes I made with AppGini?
I changed "Table group" and width of first table on home page (preferences). No changes on website.

Regards,

rp

Re: PHP code generator - working or not?

Posted: 2018-06-17 20:43
by pbottcher
Hi,

can you try to add the

Code: Select all

apc_clear_cache();

after

Code: Select all

	
error_reporting(E_ERROR | E_WARNING | E_PARSE);

in the index.php file

and see if it helps.

Re: PHP code generator - working or not?

Posted: 2018-06-18 13:28
by rprevost
Hello,
Thank you for you suggestion.

I just did it. Then I cleared the history in the browser. Result the same. No change reflected on the website.
Any other thoughts.
Regards,
rp

Re: PHP code generator - working or not?

Posted: 2018-06-18 15:38
by pbottcher
Hi,

can you restart you Web-Server?
Also can you add the following to the index.php, like in my last post

Code: Select all

echo ("<br><br><br><br>test");

and check if you see the word test on the left side below the home icon.

Re: PHP code generator - working or not?

Posted: 2018-06-18 18:38
by rprevost
Hello,
I added echo ("<br><br><br><br>TEST"); to the end of the index.php file as you can see below.

Result: The word TEST is not displayed on the screen.

What is wrong here?

Regards,

rp
=====================================
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
apc_clear_cache();
$currDir = dirname(__FILE__);
include("{$currDir}/defaultLang.php");
include("{$currDir}/language.php");
include("{$currDir}/lib.php");

$x = new DataList;
$x->TableTitle = $Translation['homepage'];
$tablesPerRow = 2;
$arrTables = getTableList();

// according to provided GET parameters, either log out, show login form (possibly with a failed login message), or show homepage
if(isset($_GET['signOut'])){
logOutUser();
redirect("index.php?signIn=1");
}elseif(isset($_GET['loginFailed']) || isset($_GET['signIn'])){
if(!headers_sent() && isset($_GET['loginFailed'])) header('HTTP/1.0 403 Forbidden');
include("{$currDir}/login.php");
}else{
include("{$currDir}/home.php");
}
echo ("<br><br><br><br>TEST");
==========================================

Re: PHP code generator - working or not?

Posted: 2018-06-18 19:14
by rprevost
Look, I finally quit on this thing. I will start anew.
Thank you.

Re: PHP code generator - working or not?

Posted: 2018-06-18 19:18
by pbottcher
Hi,

yep, you should have added the line at the top of the script (after the apc_clear_cache(); statement.

Hope your new start will bring the results you are looking for.

The code generator itself is working fine. I'm using it myself.