Getting Started

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.

  • html
  • <table>
            <td >My First Button</td>
                $button =  new EJ\Button("myButton");
                echo $button ->text("BUTTON")->render();

    Execute the above code to render the following output.