FilChi Weblog

Archive for the ‘Developer’ Category


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

Advertisements

In CakePHP 1.2 beta version, when you attempt to use/set Sessions in app/config/core.php, you might encounter this problem:

Fatal error: Class ‘ConnectionManager’ not found in CORE/cake/libs/session.php on line 704.

When I tried changing these settings:

Configure::write(‘Session.save’, ‘database’);
Configure::write(‘Session.table’, ‘cake_sessions’);
Configure::write(‘Session.database’, ‘default’);
Configure::write(‘Session.start’, false);

The error appears.


Email from Mark William Campillanes is shown below:

Hi,

An International Company is greatly in need of a Ruby on Rails
Programmer. The post offers a promising career growth and of course a very
competitive compensation package. I decided to shoot an e-mail to you
because I just would like to ask and also try out if ever you can refer or
you know someone who is apt for the position. I am very much willing to
discuss further the details of the above-mentioned job vacancy to qualified
and interested individuals. This is for a permanent employment. We are
sincerely eyeing for someone who can lead the account with sufficient
knowledge and background in ruby on rails. We are very much willing to
elaborate the lucrative components of this post. You can reach me at
0916-5812765

Thank you so much

God Speed!

Mark


1. Be more consistent with the system’s layout to make existing features of the system immediately obvious to the eye of the user.

2. Be more accurate with the information that the system is viewing.

3. Always be updated with the latest version of the latest PHP framework which the system is built on.

4. Be able to run faster and improve performance.

5. To finish what have been already started.


Yesterday, I just tried to learn how to use JQuery with Ext in case of need for future sideline projects. It is not that easy at first however, because, to understand the integration better, you still have to understand how ExtJS runs and how to start coding ExtJS for your projects.

Read the rest of this entry »


I was doing this web report, and I thought of improving its user interface design, so I decided to use jquery ajax tabs UI.

But because the ajax-ed content is very large, the tab, when clicked, looks like this in Firefox:

ajax content caching

AFAIK, Firefox does not cache ajax content, which is contrary to what Internet Explorer does.

I just want to share additional info regarding the ajax tabs:

everytime you select the tab with ajax content, the tab starts to process ajax. Meaning,

even when not necessary, the ajax still runs. That sucks, huh!? 😦

I overlooked that in the JQuery Tabs options params, you can set the ajax cache to true and the ajax won’t run everytime you click on the tab.
(Source: JQuery Ajax Tabs )
Code:   $(‘.selector’).tabs({ cache: true });
$(‘.selector’).tabs({ ajaxOptions: { async: false } });


Sabiclub.com is looking for web developers and graphic designers. If you are interested, you can send your resume to katrina.villanueva@sabiclub.com. You can also visit their website @ www.sabiclub.com


Flickr Photos

Advertisements