Re: Print Msg No record found
controller:
$this->set('data', $this->YourModel->find(...));
view:
if (empty($this->data['YourModel'])) ...
But your requirements may be peculiar to your app. In the view,
include debug($data) to see the contents.
(Set debug to 2 in bootstrap.php)
On Tue, Jul 3, 2012 at 6:13 AM, Prateek Dixit
<prateekdixit2000@gmail.com> wrote:
> When i have no record in my database table then how to print No
> record found error in my page
>
> --
> 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
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home