Re: CakeEmail: newlines disappearing in text mode

2013-06-14 Thread euromark
Those ?php ? such a single newline in So you need to add an extra one ?php echo $var1 ? ?php echo $var2 ? etc Am Freitag, 14. Juni 2013 02:45:07 UTC+2 schrieb cricket: $email-emailFormat('text'); view: ?= $var1 ? ?= $var2 ? ?= $var3 ? email: foo bar baz What's up with that?

Re: CakeEmail: newlines disappearing in text mode

2013-06-14 Thread euromark
such=suck Am Freitag, 14. Juni 2013 11:44:56 UTC+2 schrieb euromark: Those ?php ? such a single newline in So you need to add an extra one ?php echo $var1 ? ?php echo $var2 ? etc Am Freitag, 14. Juni 2013 02:45:07 UTC+2 schrieb cricket: $email-emailFormat('text'); view: ?=

Sending email using HTTP fx sendgrid

2013-06-14 Thread Henrik Gemal
Hi We use latest CakePHP 2.3.6 We are sending emails using SMTP to sendgrid. The configuration is really easy in CakePHP Now we are looking into switching to using SendGrids HTTP interface for sending email, since it's a lot faster than SMTP. How would we implement this in CakePHP? Fx how

Re: Is data sanitization required in setting $this-Model-id = $id?

2013-06-14 Thread John
Sorry I don't get if your answer means it should or shouldn't be used directly :) On Wednesday, June 12, 2013 9:35:10 AM UTC+3, Simon Males wrote: I think that is a fair call. On Tue, Jun 11, 2013 at 1:22 AM, John spi...@gmail.com javascript:wrote: Say I get the $id from a url,

Re: Saving session data from a view

2013-06-14 Thread John
Your view is there to produce HTML not manipulate data (other than to display them). The proper MVC way is to do it in the controller and just pass the required data to the view to render it. On Wednesday, June 12, 2013 9:06:23 PM UTC+3, David Suna wrote: I am using CakePHP 1.3. I have a

Auth redirect issue in my shared hosting

2013-06-14 Thread bugoy
Hi all, My site is www.rowiebugoy.com. since my cakephp is setup in /public_html/production/rowiebugoy so i created .htaccess in /public_html/ pointing to it. my site works fine now. Then i added Auth for my admin www.rowiebugoy.com/admin. All is working however it redirects me to .

find() problem

2013-06-14 Thread first last
No experience with PHP so sorry for my ignorance. A find() in a CakePHP 1.3 program is making a query with a MySQL syntax error 1064. The part of the query causing the error looks like LEFT JOIN `table1` AS `t1` ON (`table2`.``col1=`t1`.`id`). Col1 is outside of the backquotes. It's a very

Counting related data for pagination

2013-06-14 Thread Daniel M
Hi, let's say I have two models, Tag HABTM Post. How do I tell the Tag paginator to order by the amount of posts the tag is used on? Ex.: Cake (43) Pie (31) Cookie (12) Petit Four (2) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP ---

CakePHP 2 find all: get only item with related models

2013-06-14 Thread Mattia Biancardi
Hi, I've the Item model that haveMany Media Performing Item-find('all') I've a result like that: array( (int) 0 = array( 'CatalogueCollectionsItem' = array( 'id' = '2' ), 'Media' = array( (int) 0 = array( 'id' = '8' ), (int) 1 = array( 'id' = '5' ), ), (int) 1 = array( 'CatalogueCollectionsItem'

Unable to send mail from cakephp to CentOs (Postfic/DovCot).

2013-06-14 Thread Snehal Savaliya
Hello, I am trying to send mail from cakephp site to CentOs (Postfic/DovCot). But I can able to only send that mail to 950 users. but above that I can not able to send. Is there any limit to send mail. I also try to increase/Decrease mail content size. but still the same problem. Help me

Re: CakeEmail: newlines disappearing in text mode

2013-06-14 Thread lowpass
Thanks muchly. Worked a charm. (I would have sworn I had tried that, though.) On Fri, Jun 14, 2013 at 5:44 AM, euromark dereurom...@gmail.com wrote: Those ?php ? such a single newline in So you need to add an extra one ?php echo $var1 ? ?php echo $var2 ? etc Am Freitag, 14. Juni

Re: Sending email using HTTP fx sendgrid

2013-06-14 Thread lowpass
I haven't tried the HTTP interface but I presume that using the HttpSocket class would be the way to go. http://book.cakephp.org/2.0/en/core-utility-libraries/httpsocket.html You can render the view into a variable. On Fri, Jun 14, 2013 at 7:10 AM, Henrik Gemal ge...@dinnerbooking.comwrote:

Re: find() problem

2013-06-14 Thread lowpass
I have an idea but would rather see the code first. On Fri, Jun 14, 2013 at 2:45 PM, first last van...@gmail.com wrote: No experience with PHP so sorry for my ignorance. A find() in a CakePHP 1.3 program is making a query with a MySQL syntax error 1064. The part of the query causing the

Cakephp2 well designed oAuth client?

2013-06-14 Thread Mr-Yellow
http://www.phpclasses.org/package/7700-PHP-Authorize-and-access-APIs-using-OAuth.html Database/session based inside vendor code, config mostly inside the class, not immediately suitable for integrating into authcomponent while using cake user model for storage.

Re: Cakephp2 well designed oAuth client?

2013-06-14 Thread Mr-Yellow
https://github.com/uzyn/cakephp-opauth Also uses $_SESSION directly. On Saturday, 15 June 2013 13:24:44 UTC+10, Mr-Yellow wrote: http://www.phpclasses.org/package/7700-PHP-Authorize-and-access-APIs-using-OAuth.html Database/session based inside vendor code, config mostly inside the

Re: Does the CakePHP ready for 'Large Scale' web applications?

2013-06-14 Thread Mr-Yellow
Ask MySpace what it's like to get big on really bad code. Oh that's right everyone moved to Facebook etc When success comes, it can come very fast, it's good practice to build scalable code from day-0. On Thursday, 3 February 2011 18:04:00 UTC+11, Jeremy Burns wrote: Always makes me