test cakephp

2014-10-27 Thread buffalix
test cakephp -- 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

edit two models data in a single view

2014-10-27 Thread buffalix
so I have two models, family and students, each family could have several students. I want to use one view (edit view for family) for both family and students editing. Edit family Form->create('Family'); ?> Form->input('id', array('type'=>'hidden')); ?> Form->input('father'); ?> F

Re: Security Component is Ruining my Life

2014-10-27 Thread Florian Krämer
I've turned the idea into an implementation. Proof of concept goes here: https://github.com/burzum/cakephp/commit/9d8f6b4cb7653dd14130af68dbc632e9055d8d76 This will output the dirty fields as a list below the error message. I hope this is going to make it into the core. :) On Sunday, October 1

Re: Going back to the page after changes

2014-10-27 Thread Salines
Whoops, I sent the wrong answer, here again public function edit($id = null) { if (!$this->Article->exists($id)) { throw new NotFoundException(__('Invalid article')); } if ($this->request->is(array('post', 'put'))) { if ($this->Article->save($this->request->data)) { $this->Session->setFlash(__('T

Re: Going back to the page after changes

2014-10-27 Thread Salines
$this->redirect(array('action' => 'view',$id)); -- 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

Re: Going back to the page after changes

2014-10-27 Thread Steven Scaffidi
Anyone have any suggestions? On Sunday, October 19, 2014 9:11:06 AM UTC-5, Steven Scaffidi wrote: > > Hi - If I have a list of articles and someone makes a change to one of > those articles on page 2 for example. How can I redirect the user back to > page 2 after the change? I've tried using >

Re: Virtual fields or other solution

2014-10-27 Thread Salines
I forgot to say, the results should be sorted by periods -- 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

Virtual fields or other solution

2014-10-27 Thread Salines
Hi there, need a little help, I have a simple model where the data is stored in the following format: id | product_id | period | price .. 1 | 1 | 10 | 9.99 2 | 1 | 20 | 18.99 3 | 1 | 30 | 27.99 Each product wi

CakeEmail problems

2014-10-27 Thread Peter Bradley
I'm currently rewriting a client's web application using cakephp. One of the pages requires sending the data in a form to the company in an email. I'm having problems with this in my development environment: - Ubuntu 14.10 - Apache2/PHP with all the normal libraries like lib_php, mod_re

[Vagrant] Cake Dev Box

2014-10-27 Thread João Paulo Barbosa Neto
Hi, First, sorry for the bad english. I want to share with you a vagrant box for cakephp development https://github.com/jpaulobneto/cake-dev-box It install CakePHP with app (cake_app) and core (cake_core) in root folder and webroot in www folder. Thanks and i hope you enjoy and help. -- Lik