Thursday, June 11, 2009

refresh/reload parent mask

i used this function to reload a parent mask in p4a 3

a parent mask would be one that calls another mask (the child). so the function would be in the child mask.

function doReloadParentMask(){
$p4a = p4a::singleton();
//$parent = p4a::singleton('product');
//$parent->destroy();
$p4a->masks->product->destroy();
$p4a->openMask('product');
}

No comments: