Re: 3.0: Saving new entity with belongsToMany data

2014-12-29 Thread Joe T.
i figured out part of my trouble, but the purpose of the original post still remains. The parent record in Listings wasn't saving correctly because i didn't have an `active` field in the form (*facepalm*). Corrected that. Still having trouble with the date field, kinda frustrated there. But to

Re: CakePHP 3.0.0-beta3 released

2014-12-29 Thread Farid Aditya
hi mark I have a question already can cakephp version 3 is used for the production phase for a very simple site? or I still have to use cakephp version 2. because I come from areas that do not use the English language, I use Inflector :: rules. in cakephp version 2 I put like this in Inflector :

Re: cant send email

2014-12-29 Thread ajt
Hi, I already have this line below and it doesnt work at all. I just get timed out and if I increase the time to -1 in php.ini it does nothing Whats wrong with this cakephp email as this is annoying now. $Email = new CakeEmail('gmail'); -- Like Us on FaceBook https://www.facebook.com/CakePHP

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

2014-12-29 Thread Salines
Thank you. -- 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 ca

Re: cant send email

2014-12-29 Thread Andras Kende
http://book.cakephp.org/2.0/en/core-utility-libraries/email.html To load a config from EmailConfig you can use the config() method or pass it to the constructor of CakeEmail: $Email = new CakeEmail(); $Email->config('default'); //or in constructor:: $Email = new CakeEmail(‘default’); Try: $Email

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

2014-12-29 Thread John Andersen
It does work in MySQL though, so it should work in CakePHP also :) Enjoy, John On Monday, 29 December 2014 14:42:38 UTC+2, John Andersen wrote: > > Assuming I understand it correctly, then you want to query your posts, so > that any event_date having a month = 12 and a day = 29, not taking into

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

2014-12-29 Thread John Andersen
Assuming I understand it correctly, then you want to query your posts, so that any event_date having a month = 12 and a day = 29, not taking into account the year, must be found. :) Based on the above I would see if this is possible: $this->Post->find('all', array('conditions' => array( 'MONT

Re: cant send email

2014-12-29 Thread ajt
A lot of people have problems with this issue on stackoverflow buthe solutions are not clear 2014-12-29 22:44:07 Error: [SocketException] SMTP timeout. Request URL: /crm5/aptemails/test Stack Trace: #0 D:\AA-website design\crm5\lib\Cake\Network\Email\SmtpTransport.php(157): SmtpTransport->_smtp

Re: cant send email

2014-12-29 Thread Stephen S
Can you check your app/tmp/logs/error.log and app/tmp/logs/debug.log files to see if there is any additional information about the error? Cheers On 29 December 2014 at 10:36, ajt wrote: > removing email from components has no effect i should have said > > > -- > Like Us on FaceBook https://www

Re: cant send email

2014-12-29 Thread ajt
removing email from components has no effect i should have said -- 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 a

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

2014-12-29 Thread Salines
$this->Post->find('all',array('conditions' => array(*'Post.event_date' => '12-29*')); // show posts where is Post.event_date like 12-29. event_date fields is date type (Y-m-d), where they are stored dates of significant events. In other words I need to show the anniversary. Except using vir

Re: cant send email

2014-12-29 Thread ajt
Hi, This has no effect and I get the same dumb error which tells me nothing. $Email = new CakeEmail(); $Email->from('jagg...@gmail.com'); $Email->to('jag...@gmail.com'); $Email->subject('About'); $Email->message('My message'); $Email->send(); -- Like Us on FaceBook https: