如何在Zend Framework中存储cron作业的脚本? [英] How do you store your scripts for cron jobs in Zend Framework?

查看:127
本文介绍了如何在Zend Framework中存储cron作业的脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为ZF依赖于mod重写所有的URL,它不是立即显现我在哪里我应该存储本地脚本使用cron作业。

Because ZF depends on mod rewrite for all it's URLs, it's not immediately apparent to me where I should store local scripts for use with a cron job.

有没有任何建议,或者是否有正式接受的方式?

Does anyone have any recommendations, or is there an "officially accepted" way?

推荐答案

我使用模块化目录结构在我的网站的设计,使我有控制器,视图等为我的网站的每个单独的模块创建。包含在每个模块中我有一个脚本(或cron)目录,存储该特定模块的所有cron脚本。

I use the Modular Directory Structure in the design of my websites so that I have controllers, views, etc created for each separate module of my websites. Included within each module I have a scripts (or a cron) directory that stores all of the cron scripts for that particular module.

就我个人而言,当从Zend Framework访问资源以及从实际的Web应用程序访问资源时,我发现这很简单。

Personally I find that this keeps things simple when it comes to access resources from Zend Framework as well as from the actual web application.

这篇关于如何在Zend Framework中存储cron作业的脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆