association with needed EvaluationMixeval model. Check that models
associations and use the one that associated with EvaluationMixeval
(if there is any).
On Oct 1, 9:48 pm, mkgour <mkg...@gmail.com> wrote:
> Hi Brian,
> Thank you so much for being willing to help. I am pretty sure that
> $uses class does not include EvaluationMixeval, and I did try to add
> it a few days agao and that just caused confusion in the program and
> items that worked previously stopped working, so I took it out.
>
> Here is a copy of the $uses class var
> Controller :: Events
> *
> * Enter description here...
> *
> * @package
> * @subpackage
> * @since
> */
> uses ('file','folder');
> class EvaluationsController extends AppController
> {
> var $show;
> var $sortBy;
> var $direction;
> var $page;
> var $order;
> var $helpers = array('Html','Ajax','Javascript','Time','Pagination');
> var $Sanitize;
> var $uses = array('EvaluationRubric', 'EvaluationRubricDetail',
> 'EvaluationSubmission', 'Event', 'EvaluationSimple',
> 'SimpleEvaluation', 'Rubric', 'Group', 'GroupEvent',
> 'GroupsMembers','RubricsLom','RubricsCriteria',
> 'RubricsCriteriaComment', 'Personalize',
> 'User','SurveyQuestion','Question','Response','Survey','SurveyInput','Cours e');
> var $components = array('rdAuth','Output','sysContainer',
> 'globalConstant', 'userPersonalize', 'framework',
> 'EvaluationResult', 'EvaluationHelper',
> 'EvaluationRubricHelper', 'EvaluationSimpleHelper',
> 'RubricHelper','EvaluationSurveyHelper',
> 'MixevalHelper', 'EvaluationMixevalHelper','ExportHelper');
>
> ----------------------When I tried your second suggestion, adding
> TheOtherModel in line 979, (see below for the actual code change) this
> is what happened (see below that for the error I received)
>
> switch ($event['Event']['event_template_type_id']) {
> case 1://simple
> $this->EvaluationSimple->setAllEventCommentRelease($eventId,
> $releaseStatus);
> break;
> case 2://rubric
> $this->EvaluationRubric->setAllEventCommentRelease($eventId,
> $releaseStatus);
> break;
> case 4://mix
> $this->TheOtherModel->EvaluationMixeval->setAllEventCommentRelease($eventId, $releaseStatus);
>
> break;
> default:
> break;
> }
>
> Notice: Undefined property: EvaluationsController::$TheOtherModel in /
> home/huskinsp/public_html/ipeer-2.0.8.3/app/controllers/
> evaluations_controller.php on line 979
>
> Notice: Trying to get property of non-object in /home/huskinsp/
> public_html/ipeer-2.0.8.3/app/controllers/evaluations_controller.php
> on line 979
>
> Fatal error: Call to a member function setAllEventCommentRelease() on
> a non-object in /home/huskinsp/public_html/ipeer-2.0.8.3/app/
> controllers/evaluations_controller.php on line 979
>
> On Sep 30, 2:57 pm, brian <bally.z...@gmail.com> wrote:
>
>
>
> > Check that the controller's $uses class var includes
> > 'EvaluationMixeval'. Ifnot, and this model is associated with a model
> > that is in $uses, change the line to:
>
> > $this->TheOtherModel->EvaluationMixeval->setAllEventCommentRelease(...)
>
> > On Wed, Sep 30, 2009 at 1:12 PM, mkgour <mkg...@gmail.com> wrote:
>
> > > Hi,
> > > I use a great peer evaluationprogramcreated by some grad students at
> > > University of BC. Unfortunately, with the recession, the students /IT
> > > people that created theprogramI use are no longer on the payroll and
> > > I really needhelpresolving one small issue.
>
> > > The name of theprogramI use is called Ipeer 2.0 and it can be found
> > > athttp://ipeer.apsc.ubc.ca/home/
>
> > > Thisprogramwas loaded directly to my website.
>
> > > Anyway, this is the issue.
>
> > > Students go in to Ipeer and grade each other on different projects we
> > > do in class. I have always used the "simple" and "rubric" designs and
> > > have never had any problems. The other week I decided to use the Mix
> > > Evaluation feature and all 144 students went in and filled out the
> > > comments in the mix eval section.
>
> > > However, when I try to release the comments and grades to the students
> > > I get the following error message:
>
> > > Notice: Undefined property: EvaluationsController::$EvaluationMixeval
> > > in /home/huskinsp/public_html/ipeer-2.0.8.3/app/controllers/
> > > evaluations_controller.php on line 979
>
> > > Fatal error: Call to a member function setAllEventCommentRelease() on
> > > a non-object in /home/huskinsp/public_html/ipeer-2.0.8.3/app/
> > > controllers/evaluations_controller.php on line 979
>
> > > Here is the referenced code: I added 979 in front of the 979 line
>
> > > function changeAllCommentRelease ($param=null)
> > > {
> > > if ($this->rdAuth->role == 'S') {
> > > $this->redirect('home/index');
> > > exit();
> > > }
> > > $tok = strtok($param, ';');
> > > $eventId = $tok;
> > > $releaseStatus = strtok(';');
> > > $this->Event->setId($eventId);
> > > $event = $this->Event->read();
>
> > > switch ($event['Event']['event_template_type_id']) {
> > > case 1://simple
> > > $this->EvaluationSimple->setAllEventCommentRelease($eventId,
> > > $releaseStatus);
> > > break;
> > > case 2://rubric
> > > $this->EvaluationRubric->setAllEventCommentRelease($eventId,
> > > $releaseStatus);
> > > break;
> > > case 4://mix
> > > 979 $this->EvaluationMixeval->setAllEventCommentRelease($eventId,
> > > $releaseStatus);
> > > break;
> > > default:
> > > break;
> > > }
>
> > > ANYhelpwould be appreciated.
>
> > > Thanks,
> > > Mary
--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment