cali_dotcom 0 Junior Poster in Training

hi, i am pretty new to zendframwork butnot so new to php. i am trying to use ajax with the framework, but i keep getting an error:

Fatal error: Call to a member function getHelper() on a non-object

my controller looks like this:

<?php
/**
 * Admin section of the status-admin.leaugeoflegends.com site.
 * 
 * 
 */
use \Cache   as Cache;
use \DBConn  as DBConn;
use \Filter  as Filter;


require_once 'Logs/Service.php';

class LogsController extends \Zend\Controller\Action
{
	
	public function init()
	{
	    $ajaxContext = $this->_helper->getHelper('AjaxContext');
	    $ajaxContext->addActionContext('list', 'html')
	                ->initContext();
	}


    /**
     * Home page for admin tools.
     */
    public function indexAction()
    {
    	
        $LogsObj = new \Logs\Service();
        $actions   = $LogsObj->getAllActions();
				
        $this->view->action = $actions;
    }

	function listAction(){
	
	}

}

it seems like the _helper variable in zend\controller\action is not initialized, is there anything i need to do to get it initialized?
i have taken a look at the reference, and i am doing it just as it said, but stilll getting an error, obviously im missing something, can someone please help me out?

i am using zend framework version:

final class Version
{
    /**
     * Zend Framework version identification - see compareVersion()
     */
    const VERSION = '2.0.0dev2';

from my version.php file with php v 5.3.5

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.