组件参数
使用 SP Simple Portfolio组件时,标签tags无法设置
回复J2X • bigfacecat 发起了问题 • 1 人关注 • 0 个回复 • 1100 次浏览 • 2018-05-17 21:11
Joomla 3.x 如果使用代码修改组件的参数
J3X • admin 发表了文章 • 0 个评论 • 772 次浏览 • 2017-08-05 11:51
今天再做微信同步组件的时候,遇到一个问题需要动态的修改组件的参数。我感觉这是一个通用的问题,就看了一下代码。最后得到解决方案
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
查看全部
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
查看全部
今天再做微信同步组件的时候,遇到一个问题需要动态的修改组件的参数。我感觉这是一个通用的问题,就看了一下代码。最后得到解决方案
代码如下:
希望对其他的朋友能有所帮助
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
使用 SP Simple Portfolio组件时,标签tags无法设置
回复J2X • bigfacecat 发起了问题 • 1 人关注 • 0 个回复 • 1100 次浏览 • 2018-05-17 21:11
Joomla 3.x 如果使用代码修改组件的参数
J3X • admin 发表了文章 • 0 个评论 • 772 次浏览 • 2017-08-05 11:51
今天再做微信同步组件的时候,遇到一个问题需要动态的修改组件的参数。我感觉这是一个通用的问题,就看了一下代码。最后得到解决方案
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
查看全部
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
查看全部
今天再做微信同步组件的时候,遇到一个问题需要动态的修改组件的参数。我感觉这是一个通用的问题,就看了一下代码。最后得到解决方案
代码如下:
希望对其他的朋友能有所帮助
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助