Re: Send Email problem with multiple receivers

2011-12-02 Thread MetZ
Hi again all! I have still not found a solution to this problem! Cake 1.3.13, unable to send email to multiple recipients. Please help me! Any suggestions on how I can debug this problem? I get no info whatsoever in any logs, have debugging to 2 in core. Thank you for all your help! -Tom On 1

Re: Write unit test for a controller that uses AuthComponent in CakePHP 2.0.3

2011-12-02 Thread José Lorenzo
You also need to mock the models: $this->controller = $this->generate('Users', array( 'components' => array('Auth' => array('user')), 'models' => array('User' => array('save')) // We mock the User Model's save method )); -- Our newest site for the community: CakePHP Video T

Re: 2.04 vs 1.3

2011-12-02 Thread Miloš Vučinić
Thank you for response. You are most kind. All the best, Milos On Dec 2, 9:49 am, AD7six wrote: > On Friday, 2 December 2011 01:23:13 UTC+1, Miloš Vučinić wrote: > > > Also one more question. Am I right to assume that cheat sheet from 2.* > > is the same as the one provided on > >http://cakephp.

Cakephp and AJAX

2011-12-02 Thread Miloš Vučinić
Hello, I haven't used AJAX so far because I never needed it. I read the manuals regarding it, now I am wondering how to do it in cake. My task is following: I have a list of users. Next to each user I have a button which says archive. On click I have to archive the user. Now, I don want to reload

Re: Is it possible to access AuthComponent from a Helper ?

2011-12-02 Thread Sam Sherlock
I found an acl tutorial that has an access helper and comp. The access helper checks acl permissions before outputing links. All works fairly well, though I do have reservations about the way it crosses the view and controller streams This is the link http://net.tutsplus.com/tutorials/php/how-to

Re: Cakephp 2.0.3: Troubles with Sessions...

2011-12-02 Thread ava
SOLVED: removing the ?> at the end of the controller solved the problem. Weird. On Nov 27, 7:30 pm, ava wrote: > @euromark > > how is the test case set up? Well, I call it several times by clicking > on the link in the view.  I don't know if this answers your > question... > > Anyway, I tried to

Re: How to add a fixture to a plugin test?

2011-12-02 Thread euromark
thats because it wont be the real model but an app model instance :) i figured that out the hard way, too On 2 Dez., 15:47, Roland wrote: > Ah, of course^^ > > Thx, now it works :) > > best regards, > Roland > > On 30 Nov., 04:46, euromark wrote: > > > > > > > > > i think you just have to use >

Re: How to add a fixture to a plugin test?

2011-12-02 Thread Roland
Ah, of course^^ Thx, now it works :) best regards, Roland On 30 Nov., 04:46, euromark wrote: > i think you just have to use > ClassRegistry::init('ModelName); > here > > On 29 Nov., 22:38, Roland wrote: > > > > > > > > > None, that's the problem. I got non error or tips what is not > > working

Re: How can I debug an ajax login call?

2011-12-02 Thread Roland
Read this for AJAX debugging: http://bakery.cakephp.org/articles/HeathNail/2010/08/20/debugging-with-firephp best regards Roland On 2 Dez., 11:29, heohni wrote: > Hi, > > I cannot login into my users area and I am using a ajax form: > > function login() { > >         Configure::write('debug', 2)

Re: HTML Tidy Component

2011-12-02 Thread AD7six
On Friday, 2 December 2011 12:57:41 UTC+1, euromark wrote: > > personally I would find it more interesting to know what has to be > "fixed" (missing closing p tag etc) > because one should ask himself why the output has to be fixed in the > first place. > after all its the own code which should h

Re: HTML Tidy Component

2011-12-02 Thread euromark
personally I would find it more interesting to know what has to be "fixed" (missing closing p tag etc) because one should ask himself why the output has to be fixed in the first place. after all its the own code which should have been valid from the start (if its your layout/template stuff and not

Re: How use .htaccess to redirect these urls

2011-12-02 Thread Điển vũ
Thank you very much for help me this matter. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: Best image resize and crop helper

2011-12-02 Thread Alex Bovey
On Fri, Dec 2, 2011 at 9:34 AM, AD7six wrote: > > That's quite a common way of thinking about upload processing. > > Why would you run logic each time you want to point at an image - instead > of once when you upload it such that your helper/image logic is only "the > $size thumbnail for that fil

Re: HTML Tidy Component

2011-12-02 Thread Thiago Belem
Andy, Really thank you for your reply, it will surely help me to improve the code. I've created Issues with your suggestions and I will analyse and deal with each issue separately. I know there's a few Tidy CakePHP helpers out there, even that

Re: Validation problems

2011-12-02 Thread Toby G
Hmmm... My earlier reply appears to have got lost. Thanks for the advice. I worked it out. It was because the relationship was a hasMany & I'd forgot to add the .0. into the field name. T On Dec 2, 8:43 am, AD7six wrote: > On Thursday, 1 December 2011 18:05:57 UTC+1, Toby G wrote: > > > Hi th

How can I debug an ajax login call?

2011-12-02 Thread heohni
Hi, I cannot login into my users area and I am using a ajax form: function login() { Configure::write('debug', 2); $this->layout = 'ajax'; $this->RequestHandler->isAjax()) { if($this->Auth->user()){ < This is always wrong and I don't see

Re: Is it possible to access AuthComponent from a Helper ?

2011-12-02 Thread euromark
i think it is possible but would create quite some overhead... and yes, it would probably break MVC On 2 Dez., 10:16, Dan wrote: > I would like to write a Helper which would check if a given link is > authorized for the current user. > > I'm using CakePHP 2.0. I'm using the AuthComponent with con

Re: How use .htaccess to redirect these urls

2011-12-02 Thread AD7six
On Friday, 2 December 2011 11:00:03 UTC+1, Điển vũ wrote: > > I post at here , because if i use RewriteCond %{REQUEST_URI} in htaccess. > It seems any urls in cakephp contain webroot. > They will, if you're using a development install. webroot should be your webserver root - not app. > > An

Re: How use .htaccess to redirect these urls

2011-12-02 Thread Điển vũ
I post at here , because if i use RewriteCond %{REQUEST_URI} in htaccess. It seems any urls in cakephp contain webroot. And I followed your suggestion redirect urls in routes.php: if (preg_match('/webroot/', Router::url(null, false))) { header("Location: " . str_replace('/webroot',

Re: Best image resize and crop helper

2011-12-02 Thread AD7six
On Friday, 2 December 2011 10:10:33 UTC+1, Alex Bovey wrote: > > On Thu, Dec 1, 2011 at 6:41 PM, Miles J wrote: > > This should be done when the image is uploaded. > > Thanks for the responses all. > > Miles - I'm interested to know your rationale for that approach, which > I always used to foll

Re: HTML Tidy Component

2011-12-02 Thread AD7six
On Friday, 2 December 2011 06:19:22 UTC+1, Thiago Belem wrote: > > Folks, > > I've just finished the HTML Tidy > Component, > it helps you to sanitize, clean and solve several HTML markup issues > automatically. > > Just include it in your list of

Is it possible to access AuthComponent from a Helper ?

2011-12-02 Thread Dan
I would like to write a Helper which would check if a given link is authorized for the current user. I'm using CakePHP 2.0. I'm using the AuthComponent with controller authorization. So my authorization logic goes into isAuthorized callbacks. The idea would be to have a helper used in this mann

Re: Best image resize and crop helper

2011-12-02 Thread Alex Bovey
On Thu, Dec 1, 2011 at 6:41 PM, Miles J wrote: > This should be done when the image is uploaded. Thanks for the responses all. Miles - I'm interested to know your rationale for that approach, which I always used to follow, but find a helper so much more convenient when you want to make a minor a

Re: Same Old?

2011-12-02 Thread AD7six
On Wednesday, 30 November 2011 07:05:21 UTC+1, Krissy Masters wrote: > > Wondering why you look at Krop / Craigslist/ Authentic Jobs no one > wants Cake? > > 1 in 1000 jobs looks for Cake? Wonder why? Cake board with Cake or what > ever it is has zero new job offers? > > > > Is there a rea

Re: 2.04 vs 1.3

2011-12-02 Thread AD7six
On Friday, 2 December 2011 01:23:13 UTC+1, Miloš Vučinić wrote: > > Also one more question. Am I right to assume that cheat sheet from 2.* > is the same as the one provided on > http://cakephp.org/files/Resources/CakePHP-1.2-Cheatsheet.pdf 2.0 is faster, easier to use and more functional - I'd

Re: How use .htaccess to redirect these urls

2011-12-02 Thread AD7six
On Thursday, 1 December 2011 23:51:56 UTC+1, Điển vũ wrote: > > How can i redirect these urls ( use Htaccess): > > http://example.com/webroot/posts/1/post_slug > to > http://example.com/posts/1/post_slug > > i read and do a lot but can't . Please help me solve this matter. > > If you want to do

Re: Validation problems

2011-12-02 Thread AD7six
On Thursday, 1 December 2011 18:05:57 UTC+1, Toby G wrote: > > Hi there, > > Version: 1.3.12 > > I seem to be having a problem with the 'numeric' validation rule on an > associated Model's fields. For some reason it is not validating '10' > as a valid numeric value. > > Here are the validation r