Check the Flash Tutorials of DFP2 everything is there.
As soon as i have time ill try posting a Full Guide about creating a full admin panel with DataAssist and DFP2 etc.
Nobody mentions in the forum about deleting files while deleting the record in db...
You need to delete file or youll have your server with too many orphans.
Also when you generate thumbnails you need to add another DELETE behavior for them and need to manualy code the 2nd behavior which should be set after DELETE1 succesfully completes. Manually code for the _thumb or any suffixes you use on the UPload behavior.
I promise ill write a small guide for all people that need it so its step by step.
Hope i helped you.
BTW u need delete file behavior on both update and detail page (if you have added the option to add a delete button there) and delete page if you have it created separately for confirmation.
And if you using thumbs, u need a 2nd 3rd 4th (as many file resizes u got in your upload behavior including your first file, in general as many file things u see in DFP2 file box that you have added you need so many Delete behaviors in the appropriate page to work, but with the 2nd+ behaviors set to run after DELETE1 has been succesfully completed.
This is what u need to manually code in DELETE2 +
<?php
$WA_DeleteFileResult1 = false;
if(isset($_POST["Delete_x"])){
$WA_DeleteFileResult1 = WA_FileAssist_DeleteFile("../assets/images/photos/", $row_WADAimages_img['filename_img']);
}?>
<?php
$WA_DeleteFileResult2 = false;
if($WA_DeleteFileResult1){
$WA_DeleteFileResult2 = WA_FileAssist_DeleteFile("../assets/images/photos/", str_replace(".jpg","_thumb.jpg",$row_WADAimages_img['filename_img']));
}
?>
depending on what extensions you use (i force all to be made jpg as im working with logos and i dont care about transpaency and its easier for delete behavior) you do the str_replace thing. I got 1 thumbnail created. [Filename]_thumb.jpg so i take the original [Filename].jpg and change it to it by using the str_replace function. It is very easy. If you got 5 thumbs, _thumb1,_thumb2 you need to copy paste the <?php ?> code as many times and change the DeleteFileResult2 to DeleteFileResult(numbering) and the _thumb.jpg to _thumb(numbering) etc.
Or you can add the server behavior from the behaviors panel and just add the str_replace thing on the box or manualy after at code.
Hope this helps a lot of people.
By the way, new helper file of DFP2 works properly. Goo job WebAssist.