框架发布

框架发布

最新版本发布信息
提问交流

提问交流

使用问题咨询
经验分享

经验分享

开发经验交流分享
功能建议

功能建议

官方开发功能建议
BUG反馈

BUG反馈

使用BUG反馈
模块&插件&数据包

模块&插件&数据包

模块插件数据包分享

添加表单项建议

功能建议dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1886 次浏览 • 2017-06-19 23:40 • 来自相关话题

关于 table中的select没有对应值的问题

提问交流dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1836 次浏览 • 2017-06-19 23:38 • 来自相关话题

tp5里面跨模块调用模型,公共函数、配置文件不能加载生效,这个问题怎么解决?

提问交流dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 9374 次浏览 • 2017-06-15 16:04 • 来自相关话题

文章摘要希望默认删除前文的所有空格

功能建议dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1404 次浏览 • 2017-06-15 14:46 • 来自相关话题

建议新增CMS模块的钩子

功能建议dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1780 次浏览 • 2017-06-15 14:41 • 来自相关话题

关于可编辑的权限问题 text.edit

提问交流dolphinphp 回复了问题 • 3 人关注 • 2 个回复 • 2623 次浏览 • 2017-06-15 14:38 • 来自相关话题

CMS模块什么时候能加入文章标签功能

功能建议dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1663 次浏览 • 2017-06-15 14:37 • 来自相关话题

addFiles 如果我要在views调用该如何处理?

提问交流dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1501 次浏览 • 2017-06-15 14:35 • 来自相关话题

兼容模式排版错乱

BUG反馈tlerbao 回复了问题 • 2 人关注 • 1 个回复 • 1760 次浏览 • 2017-06-11 14:28 • 来自相关话题

表格页面的时间快捷编辑无法使用的解决方法

经验分享dolphinphp 发表了文章 • 0 个评论 • 1860 次浏览 • 2017-06-09 16:51 • 来自相关话题

打开
application\admin\view\layout.html
 
大概439行左右,添加
<script src="__LIBS__/bootstrap-datetimepicker/moment.min.js"></script>




  查看全部
打开
application\admin\view\layout.html
 
大概439行左右,添加
<script src="__LIBS__/bootstrap-datetimepicker/moment.min.js"></script>

QQ截图20170609164740.png

 

百度编辑器报错

BUG反馈dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1785 次浏览 • 2017-06-09 13:04 • 来自相关话题

插件和模块监听钩子有什么用

回复

提问交流vashimang 回复了问题 • 1 人关注 • 1 个回复 • 1908 次浏览 • 2017-06-08 20:33 • 来自相关话题

自定义按钮是怎么添加的。

提问交流dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 2432 次浏览 • 2017-06-08 20:03 • 来自相关话题

cms模块中添加模型自定义字段radio调用数据

提问交流dolphinphp 回复了问题 • 3 人关注 • 2 个回复 • 2191 次浏览 • 2017-06-07 17:34 • 来自相关话题

thinkphp+TCPDF生成PDF文件,最新版TCPDF6.2.13,熟肉!即拿即用

经验分享xin5288 发表了文章 • 1 个评论 • 4370 次浏览 • 2017-06-07 17:33 • 来自相关话题

thinkphp+TCPDF生成PDF文件,最新版TCPDF6.2.13,熟肉!即拿即用!
 
新建文件夹 /    extend    /    Tcpdf
 
将附件压缩包内的东西解压到/    extend    /    Tcpdf
 
使用方法
use tcpdf\Tcpdf;

class PDF extends Common
{
public function index()
{
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Nicola Asuni');
$pdf->SetTitle('TCPDF Example 001');
$pdf->SetSubject('TCPDF Tutorial');
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');

// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING, array(0,64,255), array(0,64,128));
$pdf->setFooterData(array(0,64,0), array(0,64,128));

// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));

// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);

// set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);

// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);

// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);

// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
require_once(dirname(__FILE__).'/lang/eng.php');
$pdf->setLanguageArray($l);
}

// ---------------------------------------------------------

// set default font subsetting mode
$pdf->setFontSubsetting(true);

// Set font
// dejavusans is a UTF-8 Unicode font, if you only need to
// print standard ASCII chars, you can use core fonts like
// helvetica or times to reduce file size.
$pdf->SetFont('dejavusans', '', 14, '', true);

// Add a page
// This method has several options, check the source code documentation for more information.
$pdf->AddPage();

// set text shadow effect
$pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal'));

// Set some content to print
$html = <<<EOD
<h1>Welcome to <a href="h提提p://www点tcpdf点org" style="text-decoration:none;background-color:#CC0000;color:black;"> <span style="color:black;">TC</span><span style="color:white;">PDF</span> </a>!</h1>
<i>This is the first example of TCPDF library.</i>
<p>This text is printed using the <i>writeHTMLCell()</i> method but you can also use: <i>Multicell(), writeHTML(), Write(), Cell() and Text()</i>.</p>
<p>Please check the source code documentation and other examples for further information.</p>
<p style="color:#CC0000;">TO IMPROVE AND EXPAND TCPDF I NEED YOUR SUPPORT, PLEASE <a href="h提提p://sourceforge点net/donate/index

php?group_id=128076">MAKE A DONATION!</a></p>
EOD;

// Print text using writeHTMLCell()
$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);

// ---------------------------------------------------------

// Close and output PDF document
// This method has several options, check the source code documentation for more information.
$pdf->Output('example_001.pdf', 'I');

//============================================================+
// END OF FILE
//============================================================+
}
} 查看全部
thinkphp+TCPDF生成PDF文件,最新版TCPDF6.2.13,熟肉!即拿即用!
 
新建文件夹 /    extend    /    Tcpdf
 
将附件压缩包内的东西解压到/    extend    /    Tcpdf
 
使用方法
use tcpdf\Tcpdf;

class PDF extends Common
{
public function index()
{
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Nicola Asuni');
$pdf->SetTitle('TCPDF Example 001');
$pdf->SetSubject('TCPDF Tutorial');
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');

// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING, array(0,64,255), array(0,64,128));
$pdf->setFooterData(array(0,64,0), array(0,64,128));

// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));

// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);

// set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);

// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);

// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);

// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
require_once(dirname(__FILE__).'/lang/eng.php');
$pdf->setLanguageArray($l);
}

// ---------------------------------------------------------

// set default font subsetting mode
$pdf->setFontSubsetting(true);

// Set font
// dejavusans is a UTF-8 Unicode font, if you only need to
// print standard ASCII chars, you can use core fonts like
// helvetica or times to reduce file size.
$pdf->SetFont('dejavusans', '', 14, '', true);

// Add a page
// This method has several options, check the source code documentation for more information.
$pdf->AddPage();

// set text shadow effect
$pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal'));

// Set some content to print
$html = <<<EOD
<h1>Welcome to <a href="h提提p://www点tcpdf点org" style="text-decoration:none;background-color:#CC0000;color:black;"> <span style="color:black;">TC</span><span style="color:white;">PDF</span> </a>!</h1>
<i>This is the first example of TCPDF library.</i>
<p>This text is printed using the <i>writeHTMLCell()</i> method but you can also use: <i>Multicell(), writeHTML(), Write(), Cell() and Text()</i>.</p>
<p>Please check the source code documentation and other examples for further information.</p>
<p style="color:#CC0000;">TO IMPROVE AND EXPAND TCPDF I NEED YOUR SUPPORT, PLEASE <a href="h提提p://sourceforge点net/donate/index

php?group_id=128076">MAKE A DONATION!</a></p>
EOD;

// Print text using writeHTMLCell()
$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);

// ---------------------------------------------------------

// Close and output PDF document
// This method has several options, check the source code documentation for more information.
$pdf->Output('example_001.pdf', 'I');

//============================================================+
// END OF FILE
//============================================================+
}
}

请问一下我安装成功之后点击访问后台,报404是为什么?需要配置一下什么吗?

提问交流dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 2113 次浏览 • 2017-06-07 17:32 • 来自相关话题

这个__ADMIN_USER__常量是在哪里

提问交流dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 2166 次浏览 • 2017-06-07 16:52 • 来自相关话题

还有一个bug 登陆验证码不显示

BUG反馈dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1681 次浏览 • 2017-06-07 16:49 • 来自相关话题

单行文本字段输入数字+空格+数字提交保存后数字会改变

BUG反馈dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1680 次浏览 • 2017-06-07 16:48 • 来自相关话题

cms不同的文档字段的调用方法有没有统一规范?

功能建议dolphinphp 回复了问题 • 2 人关注 • 1 个回复 • 1792 次浏览 • 2017-06-07 16:33 • 来自相关话题