摘要: //视图输出字符串内容替换'view_replace_str' => [ '__PUBLIC__' => '/public/', '__ROOT__' => '/',], 模板设置: template下添加: 'layout_on' => true,'layout_name' => 'layout' 阅读全文
posted @ 2017-08-18 16:28 BBDN 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 以 Apache 为例,需要在入口文件的同级添加 .htaccess 文件(官方默认自带了该文件),内容如下:<IfModule mod_rewrite.c>Options +FollowSymlinks -MultiviewsRewriteEngine onRewriteCond %{REQUES 阅读全文
posted @ 2017-08-18 16:17 BBDN 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 进入命令行,进入 tp5/public 目录后,输入如下命令:php -S localhost:8888 router.php 然后进行访问 阅读全文
posted @ 2017-08-18 16:11 BBDN 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 切换到命令行模式下,进入到应用根目录并执行如下指令 php think build --module demo 阅读全文
posted @ 2017-08-18 16:10 BBDN 阅读(196) 评论(0) 推荐(0) 编辑
摘要: <input type="file" name="photo" id="photo" class="file"/> use Illuminate\Http\Request; public function postPublish(Request $request){ $userid = Auth:: 阅读全文
posted @ 2017-04-26 13:09 BBDN 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 前段时间参与了一个WPF编写的项目,在该项目中有这样一个场景:在程序运行过程中需要动态地产生大量文本信息,并追加WPF界面上的一个TextBox的Text中进行显示。编写完之后,运行该项目的程序,发现在产生大量信息之后,发现系统变慢了,打开任务管理器才发现,该项目的程序占用了将近1.5G的内存(天啊 阅读全文
posted @ 2014-12-29 11:58 BBDN 阅读(265) 评论(0) 推荐(0) 编辑
摘要: WPF的MessageBox为什么会这样 我的一个同学跟我说:“WPF不是新一代技术吗?怎么连MessageBox都没WinForm 的好看?” 上图是Windows Forms 的MesssageBox 与WPF 的MessageBox 的对比,我们发现,WPF没有启用视觉样式。 有的朋友会问了, 阅读全文
posted @ 2014-12-29 11:54 BBDN 阅读(4526) 评论(0) 推荐(0) 编辑
摘要: 为了登录美观一些,就在窗体上加了个picbox。并且充满了整个窗体。 往上面放了几个lable,把lable属性设置Transparent。本想着lable不会有底色,实际上有个底,很难看。 解决办法: 窗体加载的时候,要用代码指定lable的parent为picturebox. lblName.B 阅读全文
posted @ 2013-06-17 17:16 BBDN 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 添加 X:\xx\bin\mysqld --install mysql --defaults-file=X:\xx\db\my.ini 删除 sc delete mysql 阅读全文
posted @ 2012-11-05 11:47 BBDN 阅读(203) 评论(0) 推荐(0) 编辑
摘要: //鼠标跟随一串文字 private void Form2_MouseMove(object sender, MouseEventArgs e) { this.label1.Location = new Point(e.X, e.Y); } 阅读全文
posted @ 2011-11-25 10:09 BBDN 阅读(166) 评论(0) 推荐(0) 编辑