开发人员:非中心后台办公室模块(左上)

时间:2019-01-11 07:47:42

标签: php prestashop prestashop-1.6

始终与我的模块prestashop 1.6一起使用 我在正确地居中并自动在管理模块的配置页面时遇到问题,除了左上角的所有内容都会显示

public function __construct()
{  
    $this->bootstrap = true;

private function _displayForm()
{
    $smarty->assign(array(
    'url' => "http://".$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'/',
    $smarty->display(_PS_MODULE_DIR_ . 'monmodule/option.tpl');

option.tpl

<div id="modulecontent" class="bootstrap">

预先感谢

2 个答案:

答案 0 :(得分:0)

您尝试过

<div class="panel">

编辑:

在我的模块中,我总是使用class =“” panel“,然后在其中添加内容的新div并将div设置为content =” flex“并将justify-content =” center“和align- items =“ center”(如有必要)。

答案 1 :(得分:0)

替换

public function getContent()
{
$this->_displayForm();

替换为

public function getContent()
{
	$smarty->assign(array(
	'url' => "http://".$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'/',
	$smarty->display(_PS_MODULE_DIR_ . 'monmodule/option.tpl');

相关问题