title: CRON command with Yii
body: <p>I have a code that will automatic create a sitemap.xml . My Url look like this : <a href="http://example.com/sitemap" rel="nofollow">http://example.com/sitemap</a></p>
  
  <p>But now I want it to automatic run every minutes (just test) . I tried 2 way but none of them work :</p>
  
  <p>first is call through URL ,ex:</p>
  
  <pre><code>*/1 * * * * wget http://example.com/sitemap
  </code></pre>
  
  <p>or</p>
  
  <pre><code>*/5 * * * * curl http://example.com/check
  </code></pre>
  
  <p>second is call throught php file , I'm using Yii so i'm not sure what the file .php is ? is this controller file or something else?</p>
  
  <pre><code>*/1 * * * * /usr/bin/php /home/domains/public_html/protected/modules/homepage/controller/HomepageController.php
  </code></pre>
  
  <p>my Sitemap action's code inside HomepageController.php</p>