I read the definitive guide to symfony.
and write this code (apps\frontend\modules\tree\actions\actions.class.php):

class treeActions extends sfActions
{
  public $list = array();

  /**
   * Show the full tree
   *
   * @param sfRequest $request A request object
   */
  public function executeShow(sfWebRequest $request)
  {
    $this->list = array(1, 2, 3);
  }
}

In template (apps\frontend\modules\tree\templates\showSuccess.php):

<p>Tree</p>
<p><?php echo $list ?></p>


On page i see only "Tree", $list is null.
But when i comment line //public $list = array(); and it works.
Why not work without comment?


--
Не пью; не курю; женщинами интересуюсь, но редко.

--
You received this message because you are subscribed to the Google Groups "symfony 
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

Reply via email to