I was kinda exploring things and I am very curious how to upload something at github.com so, there it is!
You can go to github and get my cakecms there.
http://github.com/phpcurious/cakecms/tree/master
please don’t be too harsh on your comments about my code. I have not perfected cakephp yet and on using Git either! Please don’t get mad at me if you see that the tmp is also being included in the repository. T_T
I thought to blog about some important things to take note of when building a web application using CakePHP Framework that is ACL-controlled. Some of these I have experienced and learned as valuable lessons.
Read the rest of this entry »
I want to clarify the usage of ‘required’=>true in cakephp as a validation rule to your forms.
When using this rule, you must not confuse yourself with the other validation rule ‘notEmpty’ as told by teknoid. And from the cookbook it says,
This key should be assigned to a boolean value. If ‘required’ is true, the field must be present in the data array.
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.
Recent Comments