Hello everybody,

I'm using the default cakephp controller (pagesController)

I created some form (form->create(null);) because it's not related to
a specific model.

When i try accessing the data sent via the form when 'index' action is
called everything is OK;

I put then on my index.ctp
"
<?php echo $this->Form->create(null,array('action' => 'showscore'));
//or even
echo $this->Form->create('Pages',array('action' => 'showscore'));
?>
"
I created the view showscore.ctp which content is:
"
<?php
echo "Your basic score is : ".$myscore;
?>
"

in pagescontroller, in the action showmyscore i have : (I know i'm
still not using data from form here
"
                //print_r($this->data);
                App::import('Lib', 'CalculateScore');
                $score=new CalculateScore();
                $this->set('myscore',$score);
"

When I run all this i get  this error :

Notice (8): Undefined variable: myscore [APP\views\pages
\showscore.ctp, line 2]

any help please  ?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to