| Mojolicious :: Plugin :: FormFields. ¾ç½ÄÀÇ °´Ã¼ ¹× µ¥ÀÌÅÍ ±¸Á¶¸¦ »ç¿ëÇÕ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Mojolicious :: Plugin :: FormFields. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~shaw/
Mojolicious :: Plugin :: FormFields. ű×
Mojolicious :: Plugin :: FormFields. ¼³¸í
Mojolicious :: Plugin :: FormFields´Â °´Ã¼¿Í µ¥ÀÌÅÍ ±¸Á¶¸¦ Çü¼ºÇÏ´Â °´Ã¼¿Í µ¥ÀÌÅÍ ±¸Á¶¸¦ ¹ÙÀεùÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. À¯È¿¼º °Ë»ç¸¦ ¼öÇàÇÏÁö ¾Ê½À´Ï´Ù. ÄÁÆ®·Ñ·¯ ÇÏÀ§ ÆíÁý {³» $ self = shift; MY $ USER = $ self-> users-> find ($ self-> param ( 'ID')); $ self-> stash (user => $ »ç¿ëÀÚ); } ÇÏÀ§ ¾÷µ¥ÀÌÆ® {³» $ self = shift; $ self-> users-> update ($ self-> param ( 'user')); } View % = Çʵå ( 'user.name') -> ÅؽºÆ® % = Çʵå ( 'user.age') -> ¼±Åà () % = Çʵå ( 'user.password') -> ºñ¹Ð¹øÈ£ % = Çʵå ( 'user.taste') -> ¶óµð¿À ( 'me_gusta') % = Çʵå ( 'user.taste') -> ¶óµð¿À ( 'estoy_harto_de') % = Çʵå ( 'user.orders.0) ID ') -> ¼û°ÜÁø # ¼û°ÜÁø # ³» $ kinfolk = Çʵå ('userkinfolk '); $ Person (@ $ kinfolk) {% = $ Person-> ¼û±è ( 'ID') % = $ Person-> ÅؽºÆ® ( 'À̸§') %} # ¶Ç´Â '»ç¿ëÀÚ'¸Å°³ º¯¼ö % $ user = Çʵå ( '»ç¿ëÀÚ'); % = $ USER-> ¼û±è ( 'ID') % = $ USER-> ÅؽºÆ® ( 'À̸§') % = $ USER-> ·¹À̺í ( 'admin') % = $ user-> È®Àζõ ( 'admin') % = $ user-> ¾ÏÈ£ ( 'password') % = $ user-> ¼±Åà ( '¿¬·É', , ] % = $ USER-> ÆÄÀÏ ( '¾Æ¹ÙŸ') % = $ USER-> TEXTAREA ( 'BIO', SIZE => '10x50') % MY $ KINFOLK = $ USER-> Çʵå ( 'KINFOLK'); $ Person (@ $ kinfolk) {% = $ Person-> ÅؽºÆ® ( 'À̸§') # ... %} Á¦Ç°ÀÇ È¨ÆäÀÌÁö
Mojolicious :: Plugin :: FormFields. °ü·Ã ¼ÒÇÁÆ®¿þ¾î