Spaces:
Sleeping
Sleeping
File size: 621 Bytes
07c3cdd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <?php
try {
$form = $_POST['form'];
$FolderUid = $form['FOLDER_UID'];
//if exists the row in the database propel will update it, otherwise will insert.
$tr = AppFolderPeer::retrieveByPK( $FolderUid );
if ( ( is_object ( $tr ) && get_class ($tr) == 'AppFolder' ) ) {
$tr->delete();
}
G::Header('location: appFolderList');
}
catch ( Exception $e ) {
$G_PUBLISH = new Publisher;
$aMessage['MESSAGE'] = $e->getMessage();
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
G::RenderPage( 'publish', 'blank' );
}
|