On Jul 24, 10:10 pm, mariusz.lewandowski lew...@gmail.com wrote:
I'm also looking for some convinient way to avoid invoking bindModel
method ..
I'll tell you what fixed my problem, it was giving the model file the
correct extension. My comment model file was named comment.ctp not
comment.php
I'm also looking for some convinient way to avoid invoking bindModel
method ..
On Jul 23, 1:52 pm, Alastair alast...@zanginteractive.com wrote:
Hi and many thanks for your help!
This did work, however it doesn't make sense that I've had to do this
in the first place! It seems like accessing
I had the same issue.
The resolutions goes like that: in beforeFilter i invoke:
public function beforeFilter() {
$this-pageTitle = 'Portfolio';
$this-Portfolio-bindModel(array(
'belongsTo' =
Hi and many thanks for your help!
This did work, however it doesn't make sense that I've had to do this
in the first place! It seems like accessing the parent model of a
child model is broken. I don't know if I'm doing something completely
wrong but I can access my comments records from the user
Hoping someone can suggest something here!
I have a number of models, which look as follows:
Comment
--
class Comment extends AppModel
{
var $name = 'Comment';
var $validate = array(
'body' = array('rule' = 'notEmpty')
);
var