Hi All. I've gone through the blog tutorial and i'm trying to make my
first cake site. My site is more or less the same as the blog
tutorial, except I want the add view and the index view to be the same
thing (one page that collects and displays posts, like a comment
thread).
Do i have to have
The simplest solution is to copy the code from the add method of the
controller to the index method.
Not looked at the blog code for quite a while, but it would go
something like this:
function index() {
if ($this-data) {
// add form submitted
$this-Model-create();
if
On Sun, Jan 18, 2009 at 7:39 AM, Zach zachr...@gmail.com wrote:
Do i have to have an add view? Can I redirect somehow?
$this-redirect('/yourcontroller/add');
Best regards.
--
MARCELO DE F. ANDRADE (aka eleKtron)
Belem, PA, Amazonia, Brazil
Linux User #221105
[...@parĂ¡ ~]# links