5
khi tôi tạo ra hành động và sau đó click vào nó, tôi nhận được lỗi jsBackend hành động trong Joomla không hoạt động
của router Lỗi Loại: Không thể đọc thuộc 'nhiệm vụ' không xác định (trong chrome)
Lỗi Loại: b là không xác định (trong ff)
mã của tôi là:
view.html.php
<?// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');
class ObshViewObsh extends JView
{
function display($tpl = null)
{
$task = JRequest::getVar('task', '');
switch($task){
case 'config': $this->config();break;
default: $this->windows();
}
parent::display($tpl);
}
function windows(){
JToolBarHelper::title(JText::_('Общежития'), 'generic.png');
JToolBarHelper::custom('config','options','','Настройки',false); //<<< --- this link doesn't work
}
function config(){
JToolBarHelper::title(JText::_('Общежития - настройка компонента'), 'generic.png');
JToolBarHelper::apply('edit_config');
JToolBarHelper::cancel('cancel');
}
}
controller.php
<?php
error_reporting(E_ALL);
// No direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.controller');
class ObshController extends JController
{
function config(){
JRequest::setVar('view', 'obsh');
JRequest::setVar('layout', 'config' );
JRequest::setVar('hidemainmenu', 1);
parent::display();
}
}
này không làm việc cho tôi, hoặc, kể từ khi tôi đang ở Joomla 3. Tôi cần thiết để thêm id = "adminForm" vào thẻ