Skip to content

I want to use timeField in Forms #15943

Answered by niden
s-ohnishi asked this question in Q&A
Apr 17, 2022 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Have a look here:

https://github.com/phalcon/cphalcon/blob/5.0.x/phalcon/Forms/Element/AbstractElement.zep#L521

This is the tag service that is used by each element. In the future we will rework this so that it is automatically injected in the constructor of the element as well as the form itself.

For now it is used to generate the necessary HTML per element

What you can also do is create an element class yourself for time like this

namespace Phalcon\Forms\Element;

use Phalcon\Tag;

/**
 * Phalcon\Forms\Element\Time
 *
 * Component INPUT[type=time] for forms
 */
class Time extends AbstractElement
{
    /**
     * @var string
     */
    protected $method = "inputTime";
}

inputTime is a s…

Replies: 2 comments 6 replies

Comment options

niden
Apr 18, 2022
Maintainer Sponsor

You must be logged in to vote
1 reply
@s-ohnishi
Comment options

Comment options

niden
Apr 19, 2022
Maintainer Sponsor

You must be logged in to vote
5 replies
@s-ohnishi
Comment options

@s-ohnishi
Comment options

@s-ohnishi
Comment options

@niden
Comment options

niden Apr 20, 2022
Maintainer Sponsor

@s-ohnishi
Comment options

Answer selected by s-ohnishi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants