• 请不要在回答技术问题时复制粘贴 AI 生成的内容
yakczh
V2EX  ›  程序员

yaf的application/actions里的东西是不是可以每个controller里公用的?

  •  
  •   yakczh · Dec 11, 2013 · 3352 views
    This topic created in 4549 days ago, the information mentioned may be changed or developed.
    仿照 http://www.wapm.cn/phpdoc/zh/yaf-action-abstract.execute.html 这里面的例子写了个 ListAction 放在application/actions 下面, 在TestController里面写了 public $actions = array(
    "action" => "actions/List.php"
    ); 用 /test/list去访问但是提示404:There is no method listAction in TestController::$actions
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1005 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 22:33 · PVG 06:33 · LAX 15:33 · JFK 18:33
    ♥ Do have faith in what you're doing.