Вобщем вот коды (есть некоторые изменения):
layout.php:
<?php use_helper('Javascript') ?>
....................................
<?php echo link_to_remote('Show', array(
'update' => 'element',
'url' => 'designerdress/show?id=1',
)) ?>
<div id="element"></div>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/designerdress/actions/actions.class.php:
............................
public function executeShow(sfWebRequest $request)
{
$this->designer_dress = DesignerDressPeer::retrieveByPk($request->getParameter('id'));
$this->forward404Unless($this->designer_dress);
}
............................
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/designerdress/templates/showSuccess.php:
<table>
<tbody>
<tr>
<th>Id:</th>
<td><?php echo $designer_dress->getId() ?></td>
</tr>
<tr>
<th>Name:</th>
<td><?php echo $designer_dress->getName() ?></td>
</tr>
</tbody>
</table>
<hr />
<a href="<?php echo url_for('designerdress/edit?id='.$designer_dress->getId()) ?>">Edit</a>
<a href="<?php echo url_for('designerdress/index') ?>">List</a>
Отредактировано Lexer (2010-03-10 05:55:55)