Issue #0001653: require_once path

This commit is contained in:
Aram HARUTYUNYAN 2013-10-04 09:04:04 +00:00
parent c9d2189c17
commit be5f09bc51

View File

@ -5,9 +5,9 @@ class WorldcheckController extends Zend_Controller_Action
public function init()
{
require_once '/WorldCheck/WsWorldCheck.php';
require_once '/WorldCheck/SessionWorldcheck.php';
require_once '/Scores/Cache.php';
require_once 'WorldCheck/WsWorldCheck.php';
require_once 'WorldCheck/SessionWorldcheck.php';
require_once 'Scores/Cache.php';
$configWC = new Zend_Config_Ini(APPLICATION_PATH . '/../library/WorldCheck/applicationWC.ini');
$this->wcConfig = $configWC->worldcheck->toArray();
@ -92,7 +92,7 @@ class WorldcheckController extends Zend_Controller_Action
//end
//paginate results list
Zend_View_Helper_PaginationControl::setDefaultViewPartial('/worldcheck/controls.phtml');
Zend_View_Helper_PaginationControl::setDefaultViewPartial('worldcheck/controls.phtml');
$paginator = Zend_Paginator::factory($resultWC);
$this->view->paginator = $paginator;
$itemCount = $this->wcConfig['page']['items'];