Re: Cakephp find order by then group by

2012-10-18 Thread Shiv Shankar
sorry use 'fields' option not field On Thursday, 18 October 2012 18:32:14 UTC+5:30, Shiv Shankar wrote: > > First of of try to do each and everything using arrays wherever possible. > It will maintain the spirit of CakePHP. Use following code : > > $this->Mess

Re: Cakephp find order by then group by

2012-10-18 Thread Shiv Shankar
First of of try to do each and everything using arrays wherever possible. It will maintain the spirit of CakePHP. Use following code : $this->Message->find('all', array( 'conditions' => array('Message.receiver_id'=>$user), 'order' => array('Message.created' => 'Desc'),

Re: findById

2012-08-29 Thread Shiv Shankar
It would return an array. so use print_r($x); not echo. On Wednesday, August 29, 2012 3:38:04 PM UTC+5:30, Nareh Tarasyan wrote: > > Hey, ppl. help me. > I try this code: > > IndexsController.php > $this->set('x', $this->Word->findByid(10)); > > then > view/Indexs/index.ctp > echo "word= ".$x; >

URL rewriting issue with cakephp 1.3.11

2011-09-22 Thread Shiv Shankar
I have configured cakephp on WINDOWS SERVER 2008 using WAMP combination. I had worked a lot on cakephp using LAMP combination and did'n get any problem in the post. But now i am getting the following error. when i use the url http://localhost/cakephp/ URL rewriting is not properly configured on y