HOW TO copy existing datagrid pages to PHP AdminPanel?

Talk and info about common issues and learn how to do almost anything with ApPHP AdminPanel

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

administrator
Site Admin
Site Admin
Posts: 5988
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO copy existing datagrid pages to PHP AdminPanel?

Postby administrator » Aug 28th, '09, 10:19

You need to perform next steps:

1. Create an appropriate menu option with the page name exactly as your existing datagrid page.
http://www.apphp.com/php-adminpanel/ind ... enu_Option

2. Copy your existing datagrid page to the folder, named pages/

3. Insert at the top of the page
require_once("../inc/checkAdminPagePermissions.php");

4. Write valid path to each of these constants:
define ("DATAGRID_DIR", "<DATAGRID_DIR>"); /* Ex.: "datagrid/" */
define ("PEAR_DIR", "<DATAGRID_DIR>pear/"); /* Ex.: "datagrid/pear/" */

5. Write valid database connection parameters.
$result_conn = $db_conn->connect(DB::parseDSN('mysql://'.$DB_USER.':'.$DB_PASS.'@'.$DB_HOST.'/'.$DB_NAME));
if(DB::isError($result_conn)){ die($result_conn->getDebugInfo()); }

6. Check another paths, you may use. For example for images etc.

That is all!

Return to “ApPHP AdminPanel {HOW TO}”