|
|||
|
Helllo.
I have this type of problem : I have index.php file with line Code:
Zend_Layout::startMvc(array('layoutPath' => $rootPath . '/application/views/layouts'));
In layout have code Code:
<?= $this->rightColumn; ?> Code:
public function indexAction()
{
include_once('ProjectsController.php');
$rand=ProjectsController::randomProject();
$this->view->randomproject=$rand;
$view=$this->view->render('./index/index.phtml');
$this->view->rightColumn=$view;
}
Code:
<? foreach($this->randomproject as $key=>$val): ?> <h3><a href="<? echo $this->escape($val['p_address']); ?>" target="_blank"><? echo $this->escape($val['p_name']); ?></a></h3> <a href="<? echo $this->escape($val['p_address']); ?>" title="" target="_blank"><img src="./resources/images/tmp_<? echo $this->escape($val['p_img']); ?>.jpg" alt="projektas" /></a><ul> <li><span>Klientas: </span> <? echo $this->escape($val['p_client']); ?>"</li> <li><span>Technologijos: </span><? echo $this->escape($val['p_technologies']); ?></li> <li><span>Metai: </span><? echo $this->escape($val['p_year']); ?></li> <li><span>Peržiūra: </span> <a href="<? echo $this->escape($val['p_address']); ?>" target="_blank"><? echo $this->escape($val['p_name']); ?></a></li> </ul> <? endforeach; ?> <div class="clear"></div> |
![]() |
| Thread Tools | |
| Display Modes | |
|
|