Re: Bo field form db

2011-06-15 Thread KooT
it > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 15 Jun 2011, at 13:06, KooT wrote: > > > > > > > > > Im trying to get data from DB. > > I have table post: title, body etc from > > tutorialhttp://book.cakephp.org/view/1528/Blog > >

Bo field form db

2011-06-15 Thread KooT
Im trying to get data from DB. I have table post: title, body etc from tutorial http://book.cakephp.org/view/1528/Blog but i have add there some columns like: link, media Now when im geting data in posts_controller: $this->set('posts', $this->Post->find('all', array('order' => 'id DESC', 'limit

AJAX Div moving

2009-01-05 Thread KooT
I want to create page with movig div's. 10 blocks movind down with content from diffrent categorry. Is there any modules/helper that will help in this kind of things? or maybe i need to use some JS library like jQuery. The real problem is that im not good in JS.. Thanks for any help. --~--~

Re: LEFT JOIN association type

2008-05-01 Thread KooT
On 1 Maj, 13:03, validkeys <[EMAIL PROTECTED]> wrote: > Your film model belongs to your type model and your type model hasMany > of your film model. So use those associations and you will get hwat > you are looking.. let me know if that works for you Yes, its working! In Film model: var $belo

LEFT JOIN association type

2008-05-01 Thread KooT
How to make this query below, with one of this association type: hasOne, hasMany ,belongsTo, hasAndBelongsToMany ? Its just one simple LEFT JOIN, but i cant figure out how to make it... function getData() { $ret = $this->query("SELECT films.id, films.title, films.body, films.pubdate, types.