Solution:
After these changes are made, it works.
1)
public $components = array('Comments.Comments' =>
array('userModelClass' => 'User'));
//This is used because in my case, I'm using my direct Users table,
not a plugin Users.
2)
$this->Comments->actionNames = array('view');
//It is added in befor
Ok Jose, thanks for offering help.
On Jan 4, 11:47 pm, José Lorenzo wrote:
> Hi Jhon,
> It looks like you have not configured properly the component or
> behavior.
>
> Could you please join the #cakedc irc channel in order to get help
> with this plugin? We will be waiting for you to offer any h
Hi Jhon,
It looks like you have not configured properly the component or
behavior.
Could you please join the #cakedc irc channel in order to get help
with this plugin? We will be waiting for you to offer any help you
need.
Cheers.
On Jan 4, 11:32 am, John Maxim wrote:
> Hi the below is exactly
What does the debug say?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To
Hi the below is exactly what is loaded after placing the debug code,
Jeremy. btw, Gavin is a neighbour's 1 yr old baby.
~~~
Post
Id
4
User
6
Title
Gavin is mean
Body
I like him .. cutie
Created
2011-01-04 08:13:45
Modified
2011-01-04 08:13:45
Actions
* Edit Post
*
Just before line 29 (where the error is firing) type:
debug($comment);
die(debug($userModel));
This will print out the contents of the $comment variable and also the name of
the model being used for users. It is possible that $comment is empty, in which
case there would be no array node where t
Hi Jeremy,
I don't know how to debug $comment, actually I am able to post new
comment from the posts/ page, no error or whatsoever.
After the comment is added and when I view the comment in view.ctp
here comes the error above the comment which was posted justnow. The
rest of the page is just load
What happens when you debug out $comment? And what is $userModel?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 4 Jan 2011, at 15:06, John Maxim wrote:
> Line 29:
>
> Line 29 is $_userLink = $comment[$userModel]['username'];
>
> the above is the line of c
Line 29:
Line 29 is $_userLink = $comment[$userModel]['username'];
the above is the line of code from the error message posted earlier.
On Jan 4, 10:20 pm, John Maxim wrote:
> There is a username column in users table.
>
> The support from the cakedc tickets are almost all left unanswered..
>
>
There is a username column in users table.
The support from the cakedc tickets are almost all left unanswered..
I am losing hope with this plugin.
not one response about this in irc..
strangely something is wrong with user's ID or name; found a link
here:
http://www.jonathansibley.com/cakephp/c
I don't know this plugin, but this sounds to me like your database
tables does not have a username column...?
On Tue, Jan 4, 2011 at 2:20 PM, John Maxim wrote:
> Hi people,
>
> I installed this :
>
> https://github.com/CakeDC/comments
>
> I am having problem with:
> Notice (8): Undefined index: u
Hi people,
I installed this :
https://github.com/CakeDC/comments
I am having problem with:
Notice (8): Undefined index: username [APP\plugins\comments\views
\elements\comments\flat\item.ctp, line 29]
when load my view page..
regards,
Maxim
Check out the new CakePHP Questions site http://cakeq
12 matches
Mail list logo