this has always worked for me...
$this->Model->create();
$this->Model->save($this->data);
On Nov 11, 2:58 pm, djXternal <[EMAIL PROTECTED]> wrote:
> Hey everyone, well I have been working on my add() function for an
> application I'm working on. Everything has been working great up
> until toda
It seems as though you don't have the FormHelper loaded by default.
Add this line as an attribute in your controller:
var $helpers = array('Html', 'Form');
And the view should load the FormHelper into that $form variable
automagically.
HTH
On May 21, 12:34 pm, Lokase <[EMAIL PROTECTED]> wrote:
Without testing it, this should be true AFAIK:
The variable that is returned by the getDocuments() method must be the
result of a $this->paginate() call within the controller, and the view
in which you're calling renderElement() should have access to the
Paginator helper.
Once you have that set
fwiw, that's what Cake ACL does as well to reference different models
in one table
'model' -- references the cake model
'foreign_key' -- references the unique id to that model's table.
On May 1, 9:01 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> That's the way I do it, and have had no problems. It
You may also want to look at the Set::merge() function if you're using
Cake 1.2 ... I've found it's met my needs for doing recursive array
merges.
p
On Feb 8, 6:20 pm, johnnyice <[EMAIL PROTECTED]> wrote:
> I grabbed a handy function from php.net (array_merge_recursive_unique)
> that I want to u
I'm getting the same "stack overflow" and "redefined path()" errors
with the 6311 release too, FWIW
And apparently there's been no commits to 1.2.x.x trunk to the core
libs? So using a nightly wouldn't make a difference?
On Jan 16, 5:41 pm, PJ Hile <[EMAIL PROTECTED]> wrote:
> I was having those
I have the following model structure set up:
Model1 -hasOne- Model2 -hasAndBelongsToMany- Model3
I'm trying to run a paginate() call on Model1 (in Model1's controller)
while trying to pass custom conditions having to do with Model3. For
example:
$results = $this->paginate('Model1', array('condi
A search in this group helps:
http://groups.google.com/group/cake-php/browse_thread/thread/f990a45967935665/d45ee41f79f69031
http://groups.google.com/group/cake-php/browse_thread/thread/d0cb3f7745a2a898/88f108d4a60687f7
For more tough issues:
http://groups.google.com/group/cake-php/web/frequen
I'm having some problems with simple page dispatching on IIS. After
circumventing the BASE_URL routing, which doesn't work on this IIS
(the following gives a 404):
index.php/controller/action
Even the manual url variable pass doesn't work:
index.php?url=controller/action
And I get this error m