Re: Please Help : I Can't get data of both associated models that are being $hasMany and $belongsTo model

2010-10-13 Thread Ashwani Kumar
*Class Outfit* * * jeremybu...@classoutfit.com jeremybu...@mac.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 12 Oct 2010, at 18:28, Ashwani Kumar wrote: Hi Jeremy! I added $authors = $this-Book-Author-find('list

Please Help : I Can't get data of both associated models that are being $hasMany and $belongsTo model

2010-10-12 Thread Ashwani Kumar
Hi again! I'm getting some issue in getting associated array. as you know that when we fetch some data from a model that's associated with another model via $hasMany or $belongsTo, we also get data of that associated mode. But i'm not getting data of that associated model. I've two tables :

Re: Please Help : I Can't get data of both associated models that are being $hasMany and $belongsTo model

2010-10-12 Thread Ashwani Kumar
are extending your reach and getting back more data, but in a very controlled way. I hope that helps. Jeremy Burns *Class Outfit* * * jeremybu...@classoutfit.com jeremybu...@mac.com http://www.classoutfit.com On 12 Oct 2010, at 15:31, Ashwani Kumar wrote: Hi again! I'm getting some issue

Re: Please Help : I Can't get data of both associated models that are being $hasMany and $belongsTo model

2010-10-12 Thread Ashwani Kumar
do: 'empty' = 'Please choose an author' Jeremy Burns *Class Outfit* * * jeremybu...@classoutfit.com jeremybu...@mac.com http://www.classoutfit.com On 12 Oct 2010, at 17:59, Ashwani Kumar wrote: Hi jeremy! Thanx for the reply. I deleted all files from cakephp except authors_controller

Model association problem - not getting expected array using $hasMany and $belongsTo association

2010-10-11 Thread Ashwani Kumar
Hi all! Today was trying to learn associations but i couldn't succeed. I'm getting some issue in getting associated array. I've two tables : authors - id - name - email - website books - id - isbn - title - description -

Re: Header already sent error after saving data.

2010-10-09 Thread Ashwani Kumar
all right thanks. I got a new thing to learn in cakephp, from you. Thanks a lot once again. On 10/9/10, euromark dereurom...@googlemail.com wrote: not in the view (if it contains HTML) but that doesnt matter because at this point the spaces are ok! On 9 Okt., 06:40, Ashwani Kumar

Header already sent error after saving data.

2010-10-08 Thread Ashwani Kumar
Hi all I'm trying to save some data using add() method in cakephp. This is add () method : function add() { if (!empty($this-data)){ if ($this-Book-save($this-data)) { $this-Session-setFlash('Data

Re: Header already sent error after saving data.

2010-10-08 Thread Ashwani Kumar
the same path in summer 2010). It prevents this from happening. On 8 Okt., 19:23, Ashwani Kumar ashwani.mail...@gmail.com wrote: Hi all I'm trying to save some data using add() method in cakephp. This is add () method : function add() { if (!empty($this-data

Re: Newbie

2010-10-03 Thread Ashwani Kumar
really well. Then I'd just pile into a real life app; in my view, nothing beats getting stuck in and solving real challenges. Jeremy Burns *Class Outfit* * * jeremybu...@classoutfit.com jeremybu...@mac.com http://www.classoutfit.com On 2 Oct 2010, at 06:18, Ashwani Kumar wrote: Thanx

Newbie

2010-10-01 Thread Ashwani Kumar
Hi all, I'm an intermediate level PHP developer, and i'm gonna learn CakePHP. but i don't know how to start with it. However i know a bit about MVC pattern, though i don't know about the convention and syntax of Cakephp. I've had a videotutorial of cakephp, in which i learn, how to bake a

Re: Newbie

2010-10-01 Thread Ashwani Kumar
Burns Class Outfit jeremybu...@classoutfit.comhttp://www.classoutfit.com On 1 Oct 2010, at 11:19, Ashwani Kumar wrote: Hi all,         I'm an intermediate level PHP developer, and i'm gonna learn CakePHP. but i don't know how to start with it. However i know a bit about MVC pattern