FilChi Weblog

Posts Tagged ‘cakephp


if you still remember that on my previous post, I was able to create a bootable ubuntu Hardy Heron on my usb flash drive. But, I just re-formatted my usb drive to experiment again on a different idea.

Read the rest of this entry »


Two days before this is posted on this blog, I encountered an issue with the sessions in cakephp on my personal cakephp project. I felt frustrated when I realized that the sessions do not load when logging in.

Read the rest of this entry »


Why do I hate the “noob” word? Some people might misinterpret someone called “noob” as being stupid. Let me clarify its meaning: noob means newbie, people! And that means, you are basically somewhat new to something. Being noob is not the same as being not knowledgeable about all things. I won’t let anyone call me a “noob” anymore. try me. dare me. make my day…

I just don’t get it. I didn’t say “you’re a noob” to anyone. But I am called a noob?! Grrr….


No, actually, I have had a lot of things in mind to blog about but, sad to say, I don’t have time for it. They are still here in my drafts posts. They are very interesting posts, actually…

drafts posts


If you want to call a controller/action in crontab, you simply must:

1. create a copy of index.php in your app’s webroot directory,
and rename it to cron_dispatcher.php or to any filename.

2. after this, somewhere in line 78 of index.php of your app’s webroot directory,

require CORE_PATH . ‘cake’ . DS . ‘bootstrap.php’;

put code:

if($argc == 2) {
$Dispatcher= new Dispatcher();
$Dispatcher->dispatch($argv[1]);
}

this code will get argument from php commandline having index = 1.

so, in your crontab,

* * * * php -q /var/www/html/cake/webroot/cron_dispatcher.php Controller/action


Flickr Photos