Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-06-2008, 06:11 PM
Junior Member
 
Join Date: Mar 2008
Posts: 7
Default Help to find error

Helllo.
I have this type of problem :
I have index.php file with line
Code:
 Zend_Layout::startMvc(array('layoutPath' => $rootPath . '/application/views/layouts'));
Get layout.phtml.. Its all right
In layout have code
Code:
<?= $this->rightColumn; ?>
So i indexcontroller :
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;    
         
         
         
                   
    }
end index/index.phtml
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>
In localhost all works fine, but in www - don't render this script.. What ca be the problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-10-2008, 06:31 AM
Junior Member
 
Join Date: Jun 2008
Posts: 18
Default

I would say its your path that you set for your layout.
Lose the full path and just try relative.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:07 AM.