Getting Started with PHP Button
23 Feb 20231 minute to read
This section explains briefly about the necessary steps required to render and configure EJ Button control using PHP wrapper classes.
Create a PHP Project and add necessary scripts and styles with the help of the given PHP Getting Started Documentation.
Create Button Widget
Create a Button control by instantiating the PHP wrapper class available in EJ namespace as shown below.
<table>
<tr>
<td >My First Button</td>
<td>
<?php
$button = new EJ\Button("myButton");
echo $button ->text("BUTTON")->render();
?>
</td>
</tr>
</table>
Execute the above code to render the following output.