Re: When is a form post not a form post?

2014-05-13 Thread Reuben
So, having decided to always specify the action is the Form::create, so I can only be concerns with detecting a POST for form submissions, I'd really like to make sure that is covered in my unit testing. But that's a tricky one. I guess I would need to write a unit test for any view that has a

Re: When is a form post not a form post?

2014-05-13 Thread Reuben
So, I found the bit of code in the FormHelper. if ($model !== false && $key) { $recordExists = ( isset($this->request->data[$model]) && !empty($this->request->data[$model][$key]) && !is_array($this->request->data[$model][$key]) ); if ($recordExists) { $created = true; $id = $this->request->data[$

When is a form post not a form post?

2014-05-13 Thread Reuben
Apparently, when it's a put! I've been struggling for a couple of hours to work out why my unit test for an edit action is working wonderfully, but it's not working via the browser. The URL is /users/edit/75, where 75 is the id of the user I'm editing. So, my unit test has $this->testAction('/u

Re: Design high performance CakePHP app - How to?

2014-05-13 Thread Salines
Thank you. -- 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 ca

Re: Cakephp 2 acl not denying any actions

2014-05-13 Thread Jaz
I'm having the same problem. Did you ever figure this out? :( On Monday, March 4, 2013 12:35:48 PM UTC-7, incognito wrote: > > I followed the tutorial and didn't get any errors but acl is allowing all > actions for all users.I checked with aclmanager all permissions are being > displayed correc

Re: Problem in page view and language switching

2014-05-13 Thread HK
In my Layout/default.ctp I do something like: $url = > join('/',array($this->params['controller'],$this->params['action'],join('/',$this->params['pass']))); > echo $this->Html->link('GR','/ell/'.$url). ' | ' . > $this->Html->link('EN','/eng/' . $url) ; > and seems to work. I hade the same pr

Problem in page view and language switching

2014-05-13 Thread Lorenzo Milesi
Hi. I localized my app using [1] and [2] and works fine, but I'm having problem with the language switcher and page views. In my top menu I have the following items: echo $this->Html->link(__('Knowledge Base'), array('controller' => 'pages', 'action' => 'view','knowledge-base', 'admin' => false))