Home  >  Article  >  Backend Development  >  Kohana调用自身类的定时脚本如何使用?

Kohana调用自身类的定时脚本如何使用?

WBOY
WBOYOriginal
2016-06-06 20:28:051110browse

使用Kohana框架

写个定时脚本定时做一些数据库操作

不能使用curl调用mvc方式

要能直接调用内部类的方法的脚本该怎么写?

据说Kohana支持这种脚本

回复内容:

使用Kohana框架

写个定时脚本定时做一些数据库操作

不能使用curl调用mvc方式

要能直接调用内部类的方法的脚本该怎么写?

据说Kohana支持这种脚本

特意注册了个号回答:
kohana框架中,可以用task来实现在cli中运行。
参考:http://kohanaframework.org/3.3/guide/minion/tasks

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn