adding width in the controller and pmDashlet class

This commit is contained in:
Fernando Ontiveros
2011-10-31 17:27:26 -04:00
parent 2103c45c23
commit 2d7729ba4b
4 changed files with 41 additions and 48 deletions

View File

@@ -39,7 +39,14 @@ class Dashboard extends Controller {
throw new Exception('Parameter "DAS_INS_UID" is empty.');
}
$this->pmDashlet->setup($data->DAS_INS_UID);
$this->pmDashlet->render();
if (!isset($_REQUEST['w']) ) {
$width = 300;
}
else {
$width = $_REQUEST['w'];
}
$this->pmDashlet->render( $width);
}
catch (Exception $error) {
//ToDo: Render a image with the error message