Getting Started
5 Dec 2016 / 1 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.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page