I am trying to get my neighbors query based in my 'year_built' value (2001
to 2011 as values) and placed in alphabetical order

 

So if you were viewing A 2001 next would be possibly B 2001 with prev null

So if listed would appear like

 

A 2001

B2001

D 2002

A 2003

G2005

Z2005

D2006

L2007

And so on so they are grouped in years and sorted alphabetically.

 

I have $this->set('neighbors',$this->Builds->find(

                                                                'neighbors',
array('field' => 'year_built', 'value' => $build['Build']['year_built'], 

 
'conditions' => array('published' => 1))));

 

Any help would be great.

 

Thanks

 

 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to