class Subscription extends TPage
{
public function onLoad( $param )
{
//Here your code will come for dynamic controls
}
}
Getting the ClientManager controller...
$clientScriptManager = $this->getPage()->ClientScript;Including a javascript file to be included in the Head Section
$clientScriptManager->registerHeadScriptFile("js_file_key","js_file_location")Including a javascript code to be included in the Head Section
$clientScriptManager->registerHeadScript("block_script_key","block_script_in_string");Adding a control inside a named TContent control(
<com:TContent ID="content"></com:TContent>)$this->content->add( "your new control" );For example:
$this->content->add( new TTextBox() );You can also put static HTML...they also be put in the order
$this->content->add( "<h1>This is a heading coming from the PHP script</h1>" );Link
No comments:
Post a Comment