html :: formandler

¹«½º¸¦ »ç¿ëÇÏ´Â HTML ¾ç½Ä
Áö±Ý ´Ù¿î·Îµå

html :: formandler ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Gerda Shank
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~gshank/

html :: formandler ű×


html :: formandler ¼³¸í

HTML :: FormAndler´Â ¾ç½Ä ±¸Á¶¿Í ¾ç½Ä ·»´õ¸µ°£¿¡ ±ú²ýÇÑ ºÐ¸®¸¦ À¯ÁöÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ±×°ÍÀº ´ç½ÅÀÌ ¾ç½Ä°ú Çʵ带 ¿©·¯ °¡Áö À¯¿¬ÇÑ ¹æ¹ýÀ¸·Î Á¤ÀÇ ÇÒ ¼ö ÀÖ½À´Ï´Ù. HTML ¿ë ·»´õ·¯¸¦ Á¦°øÇÏÁö¸¸ ¸ðµç Á¾·ùÀÇ presentation.html :: FormAndHandler¿¡ ´ëÇÑ »ç¿ëÀÚ ÁöÁ¤ ·»´õ·¯¸¦ Á¤ÀÇÇÏ¸é ¾ç½Ä Çʵå¿Í À¯È¿¼º °Ë»ç±â¸¦ Á¤ÀÇ ÇÒ ¼ö ÀÖ½À´Ï´Ù. µ¥ÀÌÅͺ£À̽º¿Í ºñ µ¥ÀÌÅͺ£À̽º ¾ç½Ä ¸ðµÎ¿¡ »ç¿ëÇÒ ¼ö ÀÖÀ¸¸ç µ¥ÀÌÅͺ£À̽ºÀÇ ÇàÀ» ÀÚµ¿À¸·Î ¾÷µ¥ÀÌÆ®Çϰųª ÀÛ¼ºÇÕ´Ï´Ù. HTML Æû¿¡¼­ ¿ÀÁö ¾Ê´Â ±¸Á¶È­ µÈ µ¥ÀÌÅ͸¦ ó¸®ÇÏ´Â µ¥ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ¸ñÇ¥°¡ ÄÁÆ®·Ñ·¯ / ÀÀ¿ë ÇÁ·Î±×·¥ ÇÁ·Î±×·¥ ÀÎÅÍÆäÀ̽º¸¦ °¡´ÉÇÑ ÇÑ °£´ÜÇÏ°Ô À¯ÁöÇÏ°í ÄÚµå º¹Á¦¸¦ ÃÖ¼ÒÈ­ÇÏ´Â °ÍÀÔ´Ï´Ù. ´ëºÎºÐÀÇ °æ¿ì ÄÁÆ®·Ñ·¯¸¦ ¾ç½ÄÀ¸·Î ÀÎÅÍÆäÀ̽ÌÇÏ´Â °ÍÀº ÄÚµåÀÇ ¸î ÁÙÀÔ´Ï´Ù. FormHandler´Â 1 ºÐÀÌ ¼Ò¿äµÇ´Â ´Ü¼øÇÑ HTML º¯°æÀ» ¸¸µå´Â ¹æ¹ýÀ» ¾Ë¾Æ ³»·Á°í ½Ã°£À» º¸³»Áö ¾Ê¾ÆµµµË´Ï´Ù. ´ç½ÅÀÌ _can_ uncan_can_can_ ¶Ç´Â ¿øÇϴ¸¸Å­ HTML »ý¼ºÀ» ÀÚµ¿È­ ÇÒ ¼ö ÀÖÀ¸¸ç ÅÛÇø´ À§Á¬ ¶Ç´Â ¼ø¼öÇÑ ÆÞ ·»´õ¸µ Ŭ·¡½º¸¦ »ç¿ëÇÏ¿© ¹«¾ùÀÌ ÀÚµ¿À¸·Î ¼öÇàµÇ´ÂÁö, ¾îµð¿¡¼­ ¼öÇàµÇ´ÂÁö¿¡ ´ëÇÑ Á¦¾î°¡ ¿ÏÀüÈ÷ Á¦¾îµË´Ï´Ù. »ç¿ëÀÚ Á¤ÀÇ ·»´õ·¯¸¦ Á¤ÀÇÇÏ°í ·»´õ¸µ µÈ ¾ç½ÄÀ» Ç¥½Ã ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿øÇÏ´Â ¾ç½ÄÀ» ³í¸®Àû ÀÎ ºÎºÐÀ¸·Î ºÐÇÒÇÏ°í Formandler Ŭ·¡½º, ¿ªÇÒ, Çʵå, À¯È¿¼º °Ë»ç Ä÷º¼Ç, º¯Çü ¹× ¹«½º À¯Çü Á¦¾à Á¶°Ç¿¡¼­ ¿ÏÀüÇÑ ¾ç½ÄÀ» ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. »ç¿ëÀÚ ÁöÁ¤ ¹æ¹ýÀ» ÆûÀ» ó¸®ÇÏ°í ¿øÇÏ´Â ¼Ó¼ºÀ» Ãß°¡ÇÏ°í, ¹«½º ¸Þ¼Òµå ¼öÁ¤ÀÚ¸¦ »ç¿ëÇϽʽÿÀ. FormHandler ¾ç½ÄÀº Perl Ŭ·¡½ºÀ̹ǷΠÇÒ ¼öÀÖ´Â ÀÏ¿¡ ¸¹Àº À¯¿¬¼ºÀÌ ÀÖ½À´Ï´Ù .html :: FormHandler´Â ¾ç½Ä ¹× Çʵå Ŭ·¡½º¿¡ Àû¿ëµÇ´Â ¿ªÇÒÀ» ÅëÇØ ·»´õ¸µÀ» Á¦°øÇÕ´Ï´Ù (·»´õ·¯¸¦ ¿ÜºÎ °´Ã¼·Î ¾µ ¼ö ¾ø¾ú´ø ÀÌÀ¯°¡ ¾øÀ½). ¾î´À Çϳª). ÇöÀç HTML :: FORMANDLER¿Í °°Àº ¿ÃÀοø ¼Ö·ç¼Ç :: Render :: Simple and HTML :: FormAndler :: Render :: Render :: render :: render :: Å×À̺í Çʵå À§Á¬ Ŭ·¡½º ¹× HTML :: FormHandler : Çʵå¿Í ¾ç½Ä¿¡ ÀÚµ¿À¸·Î Àû¿ëµÇ´Â ¿øÀÚ ¿ªÇÒÀÌ ´õ ¸¹Àº À§Á¬ ¿ªÇÒÀÔ´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº HTML :: FormHandler :: Manual :: ·»´õ¸µÀ» ÂüÁ¶ÇϽʽÿÀ. (±×¸®°í ÇÚµå ºôµå ¾ç½ÄÀ» ½±°Ô »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù - FormHandler´Â »ó°üÇÏÁö ¾Ê½À´Ï´Ù.) FormHandlerÀÇ ÀϹÝÀûÀÎ ÀÀ¿ë ÇÁ·Î±×·¥Àº Catalyst, DBIX :: Class, Template Toolkit À¥ ÀÀ¿ë ÇÁ·Î±×·¥¿¡ ÀÖÁö¸¸ »ç¿ëÇÒ ¼ö´Â ¾ø½À´Ï´Ù. FormHandler´Â ¸ðµç Perl ÀÀ¿ë ÇÁ·Î±×·¥¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. FormHandler ¼³¸í¼­ ¹× ÀÚ½À¼­´Â HTML :: FormHandler :: Manual.SynopsSee ¼³¸í¼­¿¡¼­ "html :: FormHandler :: Manual"¿¡¼­ ¼³¸í¼­¿¡¼­ ãÀ» ¼ö ÀÖ½À´Ï´Ù. HTML :: FormHandler¸¦ »ç¿ëÇϽʽÿÀ. # ¶Ç´Â »ç¿ëÀÚ Á¤ÀÇ ¾ç½Ä : myApp :: Form :: »ç¿ëÀÚ; ³» $ form = html :: formandler-> new (....); $ Form-> ÇÁ·Î¼¼½º (params => $ params); $ rendered_form = $ ¾ç½Ä -> ·»´õ¸µ; if ($ Form-> À¯È¿¼ºÀÌ °ËÁõ µÈ) {# {# validated form actions} else {# À¯È¿¼ºÀÌ °ËÁõµÇÁö ¾ÊÀº ÀÛ¾÷À» ¼öÇàÇÕ´Ï´Ù} ¶Ç´Â '°á°ú'(¾ç½Ä °ª ¹× ¿À·ù ¸Þ½ÃÁö ¸¸ Æ÷ÇÔ)¸¦ »ç¿ëÇÏ·Á´Â °æ¿ì : »ç¿ë myApp :: form; # ¶Ç´Â ÀÏ¹Ý ¾ç½Ä : HTML :: FormHandler »ç¿ë; MY $ Form = MyApp :: Form-> New (....); ³» $ result = $ form-> ½ÇÇà (params => $ params); if ($ RETERT-> À¯È¿¼ºÀÌ °ËÁõ µÈ) {# À¯È¿¼ºÀÌ °ËÁõ µÈ ¾ç½Ä Á¶Ä¡¸¦ ¼öÇàÇÕ´Ï´Ù} else {# vison-vity actions $ result- result-> ·»´õ¸µÀ» ¼öÇàÇÕ´Ï´Ù. } »ç¿ëÀÚ Á¤ÀÇ ¾ç½Ä Ŭ·¡½ºÀÇ ¿¹ : ÆÐÅ°Áö MyApp :: Form :: »ç¿ëÀÚ; HTML :: FormHandler :: Moose; 'html :: formHandler'¸¦ È®Àå; ¹«½º :: UTIL :: TypeConstraints; '+ item_class'=> (±âº»°ª => '»ç¿ëÀÚ')°¡ ÀÖ½À´Ï´Ù. has_field 'name'=> (type => text '); HAS_FIELD 'AGE'=> (type => 'posInteger', apply => ); HAS_FIELD 'BIDUNDATE'=> (type => 'dateTime'); HAS_FIELD 'BIDUNDATE.MONTH'=> (À¯Çü => '¿ù'); HAS_FIELD 'BIDUNDATE.DAY'=> (type => 'monthday'); HAS_FIELD 'BIDUNDATE.YEAR'=> (À¯Çü => '³â'); has_field 'Ãë¹Ì'=> (type => dultiple '); has_field 'ÁÖ¼Ò'=> (type => 'text'); has_field 'µµ½Ã'=> (type => 'text'); has_field 'state'=> (type => 'select'); has_field 'À̸ÞÀÏ'=> (type => 'À̸ÞÀÏ'); '+ ÀÇÁ¸¼º'=> (±âº»°ª => ÇÏÀ§ {,]}); subtype 'minimumage'=> 'int'=> {$ _> 13} => ¸Þ½ÃÁö { "´Â µî·Ï ÇÒ¸¸ Å­ ¿À·¡µÇÁö ¾Ê½À´Ï´Ù. ¾Æ´Ï¿À html :: formandler :: ¹«½º; 1; »ç¿ëÀÚ Á¤ÀÇ ¾ç½Ä Ŭ·¡½º¸¦ »ç¿ëÇÏÁö ¾Ê´Â µ¿Àû Çü½Ä - 'field_list'¼Ó¼ºÀ» »ç¿ëÇÏ¿© Çʵ带 ¼³Á¤ÇÏ´Â °Í : My $ form = html :: formandler-> new (name => user_form ', item = > $ user, field_list => * /, message => 'À¯È¿ÇÏÁö ¾ÊÀº ¹®ÀÚ°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù' }, 'select_bar'=> {type => 'select', options => \ @select_options, multiple => 1, size => 4,},],); FormHandler´Â Ã˸Ÿ¦À§ÇÑ »ç¿ëÀÚ Á¤ÀÇ ÄÁÆ®·Ñ·¯¸¦ Á¦°øÇÏÁö ¾Ê½À´Ï´Ù. ÇÊ¿äÇÏÁö ¾ÊÀ¸¹Ç·Î. FormHandler¿¡ ÀÎÅÍÆäÀ̽ºÇÏ´Â °ÍÀº ¸î ÁÙÀÇ ÄÚµå ÀÏ»ÓÀÔ´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº HTML :: FORMANDLER :: MANUAL :: CATALYST ÀÚ¼¼ÇÑ ³»¿ë ¶Ç´Â CATALYST :: MANUAL :: Tutorial :: 09_advancedcrud :: 09_FormHandler.ProductÀÇ È¨ÆäÀÌÁö


html :: formandler °ü·Ã ¼ÒÇÁÆ®¿þ¾î