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
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'),
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;
>
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