Re: Multiples lists of different tables :S

2009-07-24 Thread Abraham Boray
Thx Piotr ,I'm goign to check out that ! On Jul 21, 6:18 pm, Piotr Kilczuk wrote: > Hello, > > > Wot makes things harder in CakePHp is how to select records from a > > table depending on another one !! ill explain further. > > > I got4 example 2 tables :: > >   1-Categories > >   2-Posts > > >  

Re: Multiples lists of different tables :S

2009-07-21 Thread Piotr Kilczuk
Hello, > Wot makes things harder in CakePHp is how to select records from a > table depending on another one !! ill explain further. > > I got4 example 2 tables :: >   1-Categories >   2-Posts > >  I want to get all the posts records whom r in a specific category . >  let's say that i want all th

Re: Multiples lists of different tables :S

2009-07-21 Thread Abraham Boray
Actually I fixed All that problems related to JSON ,& I got all my records on the web page via ajax call (That's Perfect). Wot makes things harder in CakePHp is how to select records from a table depending on another one !! ill explain further. I got4 example 2 tables :: 1-Categories 2-Pos

Re: Multiples lists of different tables :S

2009-07-21 Thread Piotr Kilczuk
Hello, > How can I generate A valid JSON Format with JQUERY (AGAIn I tried > alost all the tutorials on the web ,but still without solution :S ) But how do you want your JSON/XML to look like? I guess you don't like having 'Category' as a key, but pls supply us some examples of the desired forma

Re: Multiples lists of different tables :S

2009-07-21 Thread Abraham Boray
Thank you "3lancer.eu" that's solves my problem =) My next step is to generate : 1- xml or 2-json from the database records . i tried to do so ,and i succeeded , but i think the cakePHp generate a non standard JSON format . 4 example (JSON) ,from my categories table : it ge

Re: Multiples lists of different tables :S

2009-07-14 Thread 3lancer.eu
Hello, > Actually I have 4 tables in my database : > > 1-comments > 2-posts > 3-categories > 4-work > > And i have a lonely page : default.php (my web site is juste 1 page ). > which is located in my webSite Root. Any reason not to follow the Cake MVC pattern / file structure? > So i want to ge

Multiples lists of different tables :S

2009-07-14 Thread Abraham Boray
Actually I have 4 tables in my database : 1-comments 2-posts 3-categories 4-work And i have a lonely page : default.php (my web site is juste 1 page ). which is located in my webSite Root. So i want to get all the tables records in my page(default.php) ,all my models r working ,my controllers a