Include models in Cakephp without going through index.php

Posted by Nicklas Ansman on Stack Overflow See other posts from Stack Overflow or by Nicklas Ansman
Published on 2010-06-05T10:25:43Z Indexed on 2010/06/05 10:32 UTC
Read the original article Hit count: 213

Filed under:
|
|

Hey!

I'm using CakePHP to build a site which has a crawler that mines data from different sites. The problem is that I would like to be able to call the crawler from command line (since it can take hours for it to finnish) and I would like to the use models in CakePHP when saving the data.

Is there a file I could just include that includes the rest for me? If I just include the index.php it dispatches the call which I don't want.

Regards Nicklas

© Stack Overflow or respective owner

Related posts about php

Related posts about mvc