UPDATE: I’ve finally managed to install passenger version 2.0.6 on our company’s server. Everything went smooth.
I had the urge to attempt to have Ruby on Rails Applications running on our fedora core 7 web server along with Cakephp applications today. I thought to use Phusion Passenger otherwise known as a apache module to enable rails applications to run on apache (that’s how I understand it.)
Read the rest of this entry »
I was just asked by another filipino cakephp developer about how to make model associations but the associations are not in primary keys. I already had been into this situation before, but I didn’t pursue a work around because, I felt it was not following good convention with regards to cakephp.
Well anyway, his db structure is like this. He has employees table , and belongs to Departments Table. But he said that an employee record has a department code. Meaning, to relate employees to departments, you must use a code. not an id, or a primary key.
I was a bit challenged. but it was easy to make a solution.
In short, I did this:
{code type=php}
var $belongsTo = array(
“Departments”=>array(
“className”=>”Departments”,
“foreignKey”=>”",
“conditions”=>”Employees.Deparment_code=Department.code”
)
);
{/code}
it works, wow!
Last week, I just finished upgrading the old version of one of the online sales reports and I informed them about our changes. But just this monday, one of our users provided us a feedback regarding the sales report.
“I was more used to the old version”, she said. This person is one of our users who mostly use our web app to get financial/sales data on our agents to compute for their monthly sales incentives.
The difference is that the old version has no AJAX feature compared to the new version.


I just explained it to her that the changes would be more helpful and beneficial because there are new features added, more bugs are fixed.
“Maybe I am just resisting myself against the use of the new version.” She just admits.
I decided to upgrade our company’s web application made in cakephp 1.1 to cakephp 1.2 RC3. I also found out that my code really needs to be refactored anyway, so it is really a good decision.
I also realized that there are really good benefits for doing this. Let me cite them one by one.
1. You tend to practice more how to build web applications in cakephp. You will discover new ways to improve your current coding ways and practices.
2. You tend to discover new things about cakephp that you haven’t known yet.
3. You tend to offer your users more new ways of interacting with your web app built in cakephp.
4. You tend to change your attitude, your mindset when thinking of better ways to improve your coding.
Overall, you won’t regret it. Experience is still the best teacher, and being persistent will keep you learning something new.
http://www.inquirer.net/vdo/player.php?vid=1734
I just wanted to share this link as to enlighten startups in the Philippines with regards to proper criterias of good startups according to Ayala.
Recent Comments