12 2022 档案

摘要:1, 安装一个 php@8.0 brew install php@8.0 2,将安装好的 php 整个文件移动到 phpstudy目录下 sudo mv /opt/homebrew/Cellar/php@8.0/8.0.26 /Applications/phpstudy/Extensions/php 阅读全文
posted @ 2022-12-19 14:33 Lafite-1820 阅读(895) 评论(0) 推荐(0) 编辑
摘要:thinkphp 执行 php think 报错    Using ${var} in strings is deprecated, use {$var} instead  PHP 社区 4 月底通过了一项只有一张反对票的提案,提案内容是在即将发布的 PHP 8.2 中 阅读全文
posted @ 2022-12-19 14:27 Lafite-1820 阅读(1874) 评论(0) 推荐(0) 编辑
摘要:The “https://packagist.laravel-china.org/packages.json” file could not be downloaded: Peer certificate CN=*.phphub.org' did not match expected CN=pack 阅读全文
posted @ 2022-12-16 20:58 Lafite-1820 阅读(250) 评论(0) 推荐(0) 编辑
摘要:https://registry.npmmirror.com/binary.html?path=git-for-windows 阅读全文
posted @ 2022-12-16 19:00 Lafite-1820 阅读(89) 评论(0) 推荐(0) 编辑
摘要:wp_query是一个wordpress用于复杂请求的的一个类,看到query懂开发的人就会反应这个是数据库查询的一个类,这个类可谓是非常有用的,可以帮助我们做很多复杂的查询。 wp_query的使用方法也很简单: $query = new WP_Query( 'author=123' ); // 阅读全文
posted @ 2022-12-15 11:19 Lafite-1820 阅读(698) 评论(0) 推荐(0) 编辑
摘要:来源:https://www.runoob.com/w3cnote/composer-install-and-usage.html Composer 是 PHP 的一个依赖管理工具。我们可以在项目中声明所依赖的外部工具库,Composer 会帮你安装这些依赖的库文件,有了它,我们就可以很轻松的使用一 阅读全文
posted @ 2022-12-14 11:02 Lafite-1820 阅读(137) 评论(0) 推荐(0) 编辑
摘要:4,wordpress 模板标签使用 wp_title() 系统标题 wp_title(参数一,参数二,参数三) 首页使用参数无效,默认分隔符">>" 参数一:自定义分隔符 参数二:true 和 false 参数三:分隔符的作用 left 和 right the_title() 标题 注意:该函数只 阅读全文
posted @ 2022-12-12 14:54 Lafite-1820 阅读(536) 评论(0) 推荐(0) 编辑
摘要:1,Wordpress目录结构 1,根目录 1.index.php:wordpress核心索引文件,即博客输出文件。 2.license.txt:WordPress GPL许可证文件。 3.my-hacks.php:定义了博客输出之前处理的追加程序。默认安装中并没有这个文件,但如果存在,它就会被管理 阅读全文
posted @ 2022-12-12 10:05 Lafite-1820 阅读(343) 评论(0) 推荐(0) 编辑
摘要:主循环的使用 <?php if(have_posts()): ?> <?php while(have_posts()): the_post(); ?> // 在这里调用数据 <?php endwhile;?> <?php else:?> // 如果没有在这里提示一个信息 <?php endif;?> 阅读全文
posted @ 2022-12-11 19:42 Lafite-1820 阅读(62) 评论(0) 推荐(0) 编辑
摘要:Wordpress的引用标签 get_header(); 参数:$name (头部,参数可选) 例如有个header-one.php想要调用这个头部文件 get_header($name)就可以写成get_header('one') 如果默认不写参数默认调用 header.php get_foote 阅读全文
posted @ 2022-12-11 15:11 Lafite-1820 阅读(48) 评论(0) 推荐(0) 编辑
摘要:在 html 选择器 里面添加以下css就能实现 -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filte 阅读全文
posted @ 2022-12-02 14:23 Lafite-1820 阅读(34) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示