http://code.google.com/p/cmclasses/source/detail?r=918
Modified:
/trunk/src/UI/HTML/PageFrame.php5
=======================================
--- /trunk/src/UI/HTML/PageFrame.php5 Tue Nov 22 16:14:43 2011
+++ /trunk/src/UI/HTML/PageFrame.php5 Mon Jan 30 22:25:50 2012
@@ -145,6 +145,10 @@
);
$this->metaTags[strtolower( $type.":".$key )] = $metaData;
}
+
+ public function addScript( $script, $type = "text/javascript" ){
+ $this->addHead( UI_HTML_Tag::create( 'script', $script, array( 'type' =>
$type ) ) );
+ }
/**
* Adds a Stylesheet Link to Head.