Thanks everyone. I'm using HttpSocket to post JSON data to Mandrill rather than
using CakeEmail.
On 16 Sep 2014, at 20:19, Stephen S wrote:
> If you don't want to write something like that, I have a blog post here with
> code you could use providing your cake version is 2.4.x (Since been updat
ahh! perfect :) thanks I will use this instead :) Much nicer to have it in
the AppController cause I can use models :D
Thanks!!
On Tuesday, September 16, 2014 8:03:50 PM UTC+10, José Lorenzo wrote:
>
> Exceptions are rendered as json or xml automatically, if you have the
> RequestHandler comp
If you don't want to write something like that, I have a blog post here
with code you could use providing your cake version is 2.4.x (Since been
updated but yet to post about it, it has flaws)
http://www.stephenspeakman.co.uk/cakephp-sending-emails-in-the-background/
Just don't enable the shell t
You could define more than one email config, have a config to save the
email to a database table or similar and one to actually send the email
using Mandrill.
Depending on where you send emails from you could use
AppController::beforeFilter() or elsewhere, simple example:
$emailConfig = (Configur
$(document).ready(function() {
var hiddenField = $("#hiddenField").attr("value");
alert(hiddenField);
});
Andras Kende
On Sep 16, 2014, at 10:20 AM, Cengiz Tuerkoglu
wrote:
> Dear Experts,
>
> is it possible to read a value of a hidden field with JQuery within the PHP
> code
Dear Experts,
is it possible to read a value of a hidden field with JQuery within the PHP
code?
Here what I'm going to do:
Html->link('MyLink', array('controller' =>
'MyController'); ?>
Because I need the users (locale) language saved as value of the hidden
field, I wont pass this to the c
Thanks Mark. After writing I decided to check the debug level. If > 0 (i.e.
potentially in test) don't send the emails. I send via Mandrill so can't easily
log the result without actually sending it. It's cool.
On 16 Sep 2014, at 14:14, euromark wrote:
> I use custom Configure keys for my Emai
I use custom Configure keys for my EmailLib (extends CakeEmail):
- Don't send emails without Configure::write('Email.live'), but log them
away verbosely. For testing.
Basically, you will have to add something like this on your own I am afraid
mark
Am Dienstag, 16. September 2014 14:04:
My model code sends out emails, so when I run my test suite the system
triggers multiple emails - which is potentially bad for spam ratings. Is
there a global variable I can check so that when 'in test' the messages
aren't triggered?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find
Hi Mark,
Thank you very much. I hope this solution should work out for me.
Regards,
Jipson
On Tuesday, 16 September 2014 12:31:40 UTC+1, Jipson Thomas wrote:
>
> Hi All,
> Do we have any option in cakephp 3 authentication to make the user logged
> out from all other devices when he/she try to log
You would need to store the session_id s together with the user_id s in a
table.
I do that as "online_activities"
This way I can invalidate users' sessions when needed to.
But you will have to build that on your own on top I am afraid.
Am Dienstag, 16. September 2014 13:31:40 UTC+2 schrieb Jipso
Hi All,
Do we have any option in cakephp 3 authentication to make the user logged
out from all other devices when he/she try to login using the same
credentials from one new machine?
For example
I logged into mycake.com using jip...@mycake.com username and 123 password
from my iPhone browser.
N
On 15 Sep 2014, at 23:35, Marcelo Aymone wrote:
> Hi guys!
>
> Is there any way to set a different .ctp file to an action, through a
> component in cakephp 2.x?
you can specify what view to render in the following format
$this -> render('TestView/index');
and i'd expect this also to be ava
Exceptions are rendered as json or xml automatically, if you have the
RequestHandler component loaded
On Tuesday, September 16, 2014 1:32:14 AM UTC+2, Geoffrey Toogood wrote:
>
> Yeah I could have done that but I wanted the response to be quite specific
> and in JSON or XML depending on how the
Hi guys!
Is there any way to set a different .ctp file to an action, through a
component in cakephp 2.x?
--
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
"CakeP
You can set a view variable in AppControler:
public function beforeRender() {
$this->set('auth', $this->Auth->user());
}
and use it in the view:
if ($auth) {
echo $auth['username'];
}
On Monday, September 15, 2014 6:53:32 PM UTC+2, Dave Edwards wrote:
>
> In CakePHP 3.x what is the corr
16 matches
Mail list logo