Double baseurl in Cakephp Authentication tutorial

2013-07-13 Thread Sen
Hi all, I'm new with cakephp and right now testing authentication tutorial, why the return url when using Auth.redirect() always return double baseurl, my testing url is like this : http://localhost/cakeblog and when it redirect after login success (previous page was posts/add), it always retur

Re: CodeIgniter VS CakePHP

2012-02-02 Thread sen li
i like cakephp better, now in working , i coding with ci, but i like ci, no layouts, no elements, but it just have easy model, no maps. In other words, some functions you must build them by manual,for example layouts,elements,orm,pageTitle and so on... My english is poor, I 'm sorry, maybe, someo

Re: cakephp error interrupts my jquery callback

2012-02-02 Thread sen li
why not to arrange the data by manual ? like: json_encode() or $json = '{"successful": false }' die($json); maybe, it's better to add header before responsing. 2012/2/2 phpMagpie > Your save operation should fail gracefully and return validation errors > rather than spitting codes, then it c

Re: Is there a way to disable before callbacks in model->read method

2012-02-02 Thread sen li
callbacks? Is it mean that you want to disable the relations for example hasMany,hasOne,manyToMany,belongTo,and so on? thanks! 2012/2/2 thatsgreat2345 > If you do model->find('first') you can disable callbacks in the second > parameter. > model->find('first',array('callbacks'=>false)) > > On F

Two foreignKey belongsTo same Model

2008-09-11 Thread Sen
Hi all, i need some help. I have two table, let's say User and Transaction with this kind of relation : User has some common fields : id username password Transaction : created_id is a foreign key to model User (id) modified_id is a foreign key to model User (id) too how do define th