Re: Passing variables between AppController and Models / Access Auth data in Models

2012-11-06 Thread Nir Regev
Works perfect ! Thanks :) -- 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 post to this group, send email to cake-php@googlegroups.com. To unsu

Web Service factories to aid unit testing in CakePHP

2012-11-06 Thread Reuben
Hi This is probably more of a general programming question for PHP, but because it takes CakePHP into account, in particular, I thought I'd try a post here. I've recently upgraded an old project to CakePHP 2.2.3, and I'm now writing some unit tests (yay for PHPUnit), but they're after the fact

Re: tag in a form textarea...?

2012-11-06 Thread Chris
Thank you MaJerle,... it works,... On Tuesday, November 6, 2012 7:03:59 AM UTC-8, MaJerle.Eu wrote: > > i don't know if i understand you good, so i hope this is was you need: > > use nl2br(); function when you print code > > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > > 2012/11/6 C

Re: "Manual rollback": is it neccsessary to set id after an insert if deleting?

2012-11-06 Thread lowpass
if $this->User->Profile->save($profile) { die(debug($this->id)); On Mon, Nov 5, 2012 at 3:53 PM, Daniel wrote: > I've got some of code that looks like: > > $this->User->create(); > if ($this->User->save($this->request->data)) { > // ... do some other stuff > $this->User->Profile->create()

Re: strange behavior with redirecting inside the Controller

2012-11-06 Thread lowpass
Instead of redirecting just disable the max_execute_time at the beginning of the action: set_time_limit(0); On Tue, Nov 6, 2012 at 6:21 AM, Serkan Sipahi wrote: > > Hi bakers, > > first of all, my english is not good > > i have a strange behavior with redirecting inside the Controller. Well,

Re: Having trouble with /cake/app and htaccess

2012-11-06 Thread Paul Willis
Most likely, if it was needed on the first one it will be needed on the other two… https://groups.google.com/d/topic/cake-php/el54U5xqnGc/discussion PW On 6 Nov 2012, at 16:03, heohni wrote: > Well, I need to add the > RewriteBase / > into my first htaccess. > > Now I see the homepage and

Re: Having trouble with /cake/app and htaccess

2012-11-06 Thread heohni
Well, I need to add the RewriteBase / into my first htaccess. Now I see the homepage and all my date perfectly. But when I hit any link to pages like http://myproject.com/pages/imprint or http://myproject.com/objekts/search/q:Agrofinca I get again a error 500. Do I need to add the RewriteBa

Having trouble with /cake/app and htaccess

2012-11-06 Thread heohni
Hi, I am just about to install a new project on my webserver. The structure is /cake/app The htaccess in /cake is throuing me a error 500 out. If I rename it, I can see a part of my homepage, all database values are right there, but no css, js or some other html areas are missing => so path is

Re: tag in a form textarea...?

2012-11-06 Thread Tilen Majerle
i don't know if i understand you good, so i hope this is was you need: use nl2br(); function when you print code -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/11/6 Chris > hi guys,... I'm using cake 1.3,... how can I add tags in a > form textarea so it can count on return "Enter" ??

Re: Passing variables between AppController and Models / Access Auth data in Models

2012-11-06 Thread LipeDjow
If you're using CakePHP 2.0+, use AuthComponent::user() static method. $queryData['conditions']['customer_id'] = AuthComponent::user('customer_id'); Em segunda-feira, 5 de novembro de 2012 22h14min48s UTC-2, Nir Regev escreveu: > > Hi all ! > > I need to implement a little complex user permissi

tag in a form textarea...?

2012-11-06 Thread Chris
hi guys,... I'm using cake 1.3,... how can I add tags in a form textarea so it can count on return "Enter" ?? cause of display I have in a view is some content submitted by form and the form I have is this: Form->textarea('content', array('rows' => '4')); ?> thanks in advance,... chris -

strange behavior with redirecting inside the Controller

2012-11-06 Thread Serkan Sipahi
Hi bakers, first of all, my english is not good i have a strange behavior with redirecting inside the Controller. Well, i must redirect(see below/end of public function index()) to the self controller(ModsitemapController) to bypassing the php _max_execute_time. If cake begin to redirec