XianZaiZhuCe
V2EX  ›  PHP

关于 CI 框架表单数据提交后在哪里处理

  •  
  •   XianZaiZhuCe · Sep 28, 2015 · 3055 views
    This topic created in 4073 days ago, the information mentioned may be changed or developed.

    我想要对表单提交的数据先进行处理,貌似提交的数据直接是在 model 里面获取的(如$this->input->post('title'))。我自己觉得应该是在 controller 里面处理后再提交给 model 。
    请问怎么弄,谢谢

    3 replies  •  2015-10-02 22:40:06 +08:00
    itchina110
    itchina110
    Sep 28, 2015❤️1
    1
    你在 controller 中也能获取得到提交过来的数据的。
    XianZaiZhuCe
    XianZaiZhuCe
    OP
    Sep 28, 2015
    2
    @itchina110 会了。谢谢。
    EDDYCJY
    EDDYCJY
    Oct 2, 2015
    3
    多看看手册
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2587 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:04 · PVG 19:04 · LAX 03:04 · JFK 06:04
    ♥ Do have faith in what you're doing.