Category Archives: cakephp

Coding in an illusion of choice

How to code the illusion of choice in cakephp

Easier Search||Filtering With Controller::postConditions()

Using postCondition to simplify your search or filtering feature.

menggunakan cakephp’s beforeFind

I found out that on cakephp 1.2 RC3 you must use the new $Model->find() style or the query will break.

1
2
3
4
5
6
7
8
9
10
11
//in the controller use this…
$this->Post->find(’first’, $params);
 
//instead of the ‘old’ style…
$this->Post->find($conditions);
 
//so that in the model, you can do something like this…
function beforeFind($queryData) {
$queryData[’conditions’]["`Post`.`post_type`"] = "personal";
[...]

Cakephp Talk di veryimportantprogrammer.com

Saya akan bagi talk mengenai cakephp di event veryimportantprogrammer.com hari ini. Ini akan menumpu kepada cakephp secara am dengan harapan pendengar dapat melihat macam mana membina aplikasi cakephp.
Kebetulan terjumpa coding lama yang boleh saya guna untuk demo.
Files dan slides akan saya letakkan di sini selepas talk. Coding lama tu perlu kepada sedikit comments untuk memudahkan [...]

Contoh penggunaan find dalam cakephp 1.2

contoh menggunakan find mengikut cakephp 1.2

RSS for Posts RSS for Comments