Re: id of the current user

2016-02-08 Thread Paul Vaughan
In CakePHP 3.2 I am using: $userid = $this->request->session()->read('Auth.User.id'); I hope that's useful. Paul. On 4 February 2016 at 15:53, Vishwadeep Kapoor wrote: > Is there any way to get the value of the current login user in cake php, i > have search for

Re: CAKE PHP TUTORIAL FOR BEGINNERS

2016-02-08 Thread John Andersen
Hi Priyatam Saha Which version of CakePHP have you downloaded and installed? Which tutorial have you followed? Enjoy, John On Sunday, 7 February 2016 18:48:33 UTC+2, priyatam saha wrote: > > Dear sir, >I am a new commer to cakephp.I have download and installed cakephp.Now > I create a app

Re: Error in Database Connection BUT dabase.php is correct

2016-02-08 Thread John Andersen
Check that your user "user" has permissions to use the databases. Enjoy, John On Sunday, 7 February 2016 18:48:33 UTC+2, Douglas Diniz Landim wrote: > > It was a site that was running on a host. > > This accommodation accidentally got deleted the domain for the site. > > After restoring the

Re: $this->render('index');

2016-02-08 Thread John Andersen
Is that the whole search method in your controller? If yes, then the render call is inside the if statement at the beginning and will thus not be invoked due to the return statement just after the if statement. Enjoy, John On Saturday, 30 January 2016 06:32:22 UTC+2, Maxwell Ochieng wrote: >