Re: Console, shell and cronjob woes

2015-06-09 Thread phpMagpie
*Update: *
As I could run this as root I decided to create a cronjob as root and this 
works.

However, I want to create cronjobs under each user on the server rather 
than as root.  So I now need to know why CakePHP/Croogo behaves differently 
depending on which user is running a cronjob even though I'm using the same 
command and the user/group the site belongs to has the necessary rights.

Thx, Paul

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: containable

2015-06-09 Thread phpMagpie
On Sunday, June 7, 2015 at 8:33:23 PM UTC+1, Lokesh S wrote:
>
> Can we use containable in a model, Can anyone please suggest me on this ...
>
 
Containable is a behavior which are applied to models, so the model is 
exactly where Containable is supposed to be used.

In your Controller you would use 
$this->ModelName->find('all', array(
  'contain' => array('RelatedModel1', 'RelatedModel2')
));

In your Model you would use 
$this->find('all', array(
  'contain' => array('RelatedModel1', 'RelatedModel2')
));

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Auth Component Logout renews Session

2015-06-09 Thread Piyuesh Makkar
public function logout() {
-
 $this->Session->renew();


 }

See Above code at AuthComponent::logout, my question is why it renews the 
session on logout.

Problem Case:
When user open a page with Auth login/logout in incognito browser window. 
Then *upon logout there will always be a orphan session* entry in 
cake_sessions table or an unused file in /tmp/sessions/.

Is this OK ?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Moving from Dev to Prod, Fatal Error - Appears to be server specific issue, not seeing the error on Google

2015-06-09 Thread Paul Sharratt
Hi All,

I'm in the process of moving CakePHP 3.0 from my dev environment to 
production here:

http://letsride.com.au/admin/


Error message is:

Warning (2): register_shutdown_function(): Invalid shutdown callback '' 
passed [CORE/src/Error/BaseErrorHandler.php, line 91]


Fatal error: Call to undefined method Cake\Datasource\ConnectionManager::
_config() in /home/letsridecom/public_html/admin/vendor/cakephp/cakephp/src/
Datasource/ConnectionManager.php on line 80



Pretty sure I've got the correct dependencies set up. I've php a phpinfo 
here for people to check if they want:

http://letsride.com.au/admin/getversion.php

Any ideas?

Cheers,

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Why does CakeRequest::clientIp() not have option for only read REMOTE_ADDR?

2015-06-09 Thread ura . beta . momo
Why does CakeRequest::clientIp() not have option for only read REMOTE_ADDR?

If user manipulate HTTP_CLIENT_IP or HTTP_CLIENTADDRESS header, 
CakeRequest::clientIp() returns manipulated IP.


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


What are the things should be considered before hiring a CakePHP development company?

2015-06-09 Thread Victor jack
Over the decade, being the earliest PHP framework, CakePHP is very popular 
and widely utilized by most of the web developers. Since its existence, 
numerous web development companies like Agriya  
have flourished in the online world for rendering optimum CakePHP 
development services.

Read more: 
http://blogs.agriya.com/2015/06/08/things-considered-hiring-cakephp-development-company/

Regards,
Victorjack,
www.agriya.com


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.