Friday, September 27, 2013

Re: CakeEmail in Plugin

On second thought.. You might want to assert that your email field contains a value when trying to send an email to this email, first :)
Sending to an empty string also doesnt make much sense


Am Freitag, 27. September 2013 21:19:58 UTC+2 schrieb CrotchFrog:
huh, sure enough :) I never came across that issue before but casting definitely did the trick. Thanks for the help!


On Fri, Sep 27, 2013 at 12:22 PM, euromark <dereu...@gmail.com> wrote:
User setter/getter combinational methods is pretty dangerous IMO :)
Especially with a typo-unsafe language as PHP and multiple return types.
I never use CakeEmail that way - for that very same reason.

to() - as other methods - can return an array when you submit null as email.
My guess: $user['User']['email'] is NULL here, thus the array which you can't use as object anymore

You need to cast your fields when doing it this way:

    ->to((string)$user['User']['email'])



Am Freitag, 27. September 2013 16:15:50 UTC+2 schrieb CrotchFrog:
Cake 2.41

http://bin.cakephp.org/saved/108632

I'm running into problems trying to send email from plugin. 

When debug is set to 'Zero' it triggers error : "Error: An internal error has occurred."

When debug set to '2' it throws error: "Error: Call to a member function subject() on a non-object."

Not too sure what is going on here. Any help is appreciated :)

--
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 a topic in the Google Groups "CakePHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cake-php/Sa531dnBaLo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cake-php+u...@googlegroups.com.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
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+unsubscribe@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/groups/opt_out.

Sharing one Cake application with many domains, each with its own database

Hello,

We have a shared hosting server that hosts many domains (we will assume that the amount will be scalable).  We develop a Cake application and each domain has a copy of the application's files.  Each copy of the application connects to each domain's database.

Deploying updates to each domain is an incredibly tiresome and tedious process.  We want to consider alternative setups that will make this process easier.

We have thought of one alternative, but are unsure of the scalability of them:
  • Place one copy of the Cake application on the server and create sym links for the shared files.  Domain specific files will of course be unique for each domain

Has anyone had a similar issue or experience?

If anyone has any suggestions or previous experience with a similar issue, please share!

--
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+unsubscribe@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/groups/opt_out.

Re: how to get cache file name in arabic language

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Mokdij,

interesting problem. Is just the file name messed up or is it also the
cache content?
If it is "just" the file name then the challenge is to find something
which is connectetd to the real string but writeable in Ascii. How about
your own filenaming methos which replaces the arabic letters with the
Hexcode? Then it would even be reversable.

Anja


Am 26.09.2013 13:50, schrieb Mokdij:
> I am developing a website in Arabic language, i need to use a slug in
> Arabic characters but my problem is that the cache file name show
> characters like Ù«, ØÃ, ì, ù, à in place of normal characters.
>
> example :
> post_من-نحن ==> the slug is: من-نحن
>
> post_٬مŠ-ومدØÙ ع-كمروي-ÙÙŠ-ØªØØ±Ùات-ااØ
>
> so how to do to get a cache file name in arabic language ?
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlJF3MAACgkQbOdiIJzHNKGqowCcDDSR+cACG3bbssIqZMGmHwFn
ndYAniOjn11+Q//0+sni9+X5Ythivxhz
=0mCH
-----END PGP SIGNATURE-----

--
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+unsubscribe@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/groups/opt_out.

Re: CakeEmail in Plugin

huh, sure enough :) I never came across that issue before but casting definitely did the trick. Thanks for the help!


On Fri, Sep 27, 2013 at 12:22 PM, euromark <dereuromark@gmail.com> wrote:
User setter/getter combinational methods is pretty dangerous IMO :)
Especially with a typo-unsafe language as PHP and multiple return types.
I never use CakeEmail that way - for that very same reason.

to() - as other methods - can return an array when you submit null as email.
My guess: $user['User']['email'] is NULL here, thus the array which you can't use as object anymore

You need to cast your fields when doing it this way:

    ->to((string)$user['User']['email'])



Am Freitag, 27. September 2013 16:15:50 UTC+2 schrieb CrotchFrog:
Cake 2.41

http://bin.cakephp.org/saved/108632

I'm running into problems trying to send email from plugin. 

When debug is set to 'Zero' it triggers error : "Error: An internal error has occurred."

When debug set to '2' it throws error: "Error: Call to a member function subject() on a non-object."

Not too sure what is going on here. Any help is appreciated :)

--
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 a topic in the Google Groups "CakePHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cake-php/Sa531dnBaLo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cake-php+unsubscribe@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/groups/opt_out.

--
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+unsubscribe@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/groups/opt_out.

Re: CakeEmail in Plugin

User setter/getter combinational methods is pretty dangerous IMO :)
Especially with a typo-unsafe language as PHP and multiple return types.
I never use CakeEmail that way - for that very same reason.

to() - as other methods - can return an array when you submit null as email.
My guess: $user['User']['email'] is NULL here, thus the array which you can't use as object anymore

You need to cast your fields when doing it this way:

    ->to((string)$user['User']['email'])



Am Freitag, 27. September 2013 16:15:50 UTC+2 schrieb CrotchFrog:
Cake 2.41

http://bin.cakephp.org/saved/108632

I'm running into problems trying to send email from plugin. 

When debug is set to 'Zero' it triggers error : "Error: An internal error has occurred."

When debug set to '2' it throws error: "Error: Call to a member function subject() on a non-object."

Not too sure what is going on here. Any help is appreciated :)

--
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+unsubscribe@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/groups/opt_out.

CakeEmail in Plugin

Cake 2.41

http://bin.cakephp.org/saved/108632

I'm running into problems trying to send email from plugin. 

When debug is set to 'Zero' it triggers error : "Error: An internal error has occurred."

When debug set to '2' it throws error: "Error: Call to a member function subject() on a non-object."

Not too sure what is going on here. Any help is appreciated :)

--
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+unsubscribe@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/groups/opt_out.

Image Merging in CakePHP

I have a layered image on my webpage, made up of small images layered onto a larger one. 

Is it possible to merge/flatten the images so that I am just left with one that can be downloaded? If so, how would I go about it?

Thanks,
Tom

--
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+unsubscribe@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/groups/opt_out.