dateTag

Navigation:  Development > Function Reference > Helpers > Html >

dateTag

Previous pageReturn to chapter overviewNext page

Create Date Input tag with JS calander. Work for Admin Theme only.
 
App::Html()->dateTag(Name,[Value],[Option]);

 

Parameter

Description

Name

Name of the Input element

Value

Button text

Options

HTML Attributes

 

See bellow example:

 

echo App::Html()
    ->dateTag(
        "data[Signup][joindate]",
        "2015-05-01",
        array(
            "id"=>"joindate"
        )
    );
 
/* 
Return value 
<input type="text" value="2015-05-01" name="data[Signup][joindate]" id="joindate" class="date">
*/