R 
		
				
			
		ragtek
Guest
I'm working on the next version of http://xenforo.com/community/threads/ragtek-registration-statistics.9689/
I have 2 tabs.
		
		
	
	
		 
	
	
	
	
		
my controller object:
	
	
	
		
My view object:
	
	
	
		
With firebug i can see, that the response contains json data, but there is no content under the tab. (normalery there would be test) or?
(Sorry for my english, i hope you can understand it^^)
				
			I have 2 tabs.
		Code:
	
	<ul id="ragtektabs" class="Tabs tabs" data-panes="#ragtek > li">
    <li>
        <a href="admin.php?users/RegistrationStats">daily Stats</a>
    </li>
    <li>
        <a href="admin.php?users/RegistrationStatsmonthly">monthly stats</a>
    </li>
</ul>
<ul id="ragtek">
    <li id="daily">
        <table class="dataTable" id="stats">
            <thead>
            <tr>
                <th>{xen:phrase date}</th>
                <th>{xen:phrase stats_registrations}</th>
            </tr>
            </thead>
            <tbody>
            <xen:foreach loop="$stats" value="$stat">
                <tr>
                    <td>{xen:date $stat.date, 'M.Y'}</td>
                    <td>{$stat.registrations}</td>
                </tr>
            </xen:foreach>
            </tbody>
        </table>
    </li>
<li id="monthly" data-loadUrl="admin.php?users/RegistrationStatsmonthly">
..content.. will be replaced with ajax data
</li>
</ul>my controller object:
		PHP:
	
	    private function getView($stats)
    {
        $viewParams = array(
            'stats' => $stats
        );
        return $this->responseView('Ragtek_RS_ViewAdmin', 'ragtek_user_registrationstats', $viewParams);
    }
		PHP:
	
	class Ragtek_RS_ViewAdmin extends XenForo_ViewAdmin_Base{
    public function renderJson()
	{
        return XenForo_ViewRenderer_Json::jsonEncodeForOutput(array(
				'templateHtml' => 'test'));
    }
}(Sorry for my english, i hope you can understand it^^)
 
 
		 
	


