当前位置:网站首页>How CI framework integrates Smarty templates
How CI framework integrates Smarty templates
2022-07-28 08:36:00 【51CTO】
One 、 download Smarty Templates and CI frame
1.https://codeigniter.org.cn/
2.Smarty Official website https://www.smarty.net/
Two 、 File copying and extending the core class library
1. Will download the smarty-3.1.30( You can download other versions , The principle is the same ) Store in application/libraries/ Under the table of contents .
2. stay application/libraries New file in directory Cismarty.php, The contents are as follows :
3. stay application/config New in file of smarty.php, The contents are as follows :
4. Create in the entry file 'templates、cache、configs Catalog
5. stay application/config/ Find below autoload.php file
$autoload[‘libraries’] = array(‘cismarty’);
6. stay application/core New under the directory MY_Controller, The contents are as follows
7. New controller Test.php
8. New view test
9. Configuration complete .
边栏推荐
- 招贤纳士,GBASE高端人才招募进行中
- Es6: template string
- Understand the propagation process of EMI electromagnetic interference through five diagrams - the influence of square wave steepness on high-frequency components, the spectrum graph from time sequenc
- Opencv+paddle Orc recognize pictures and extract table information
- Regular expression for mobile number verification
- 2022 Niuke multi school second problem solving Report
- Prescan quick start to master the track editing path of Lecture 16
- Leetcode/ sum of two numbers in a sorted array
- Can‘t connect to server on ‘IP‘ (60)
- uniapp的swiper动态设置current值不生效解决办法
猜你喜欢

【OpenCV】生成透明的PNG图像

网口网络水晶头RJ45、POE接口定义线序

Unity切换到另一个场景的时候,发现该场景变暗了

阻塞队列LinkedBlockingQueue 源码解析

2022牛客多校第一场解题报告

MCU IO port controls 12V voltage on and off, MOS and triode circuit

数字签名和CA证书

Puzzle (004.3) pattern puzzle

2022 Niuke multi school second problem solving Report

学术界爆火的类脑智能,啥时候能落地?来听行业大咖怎么说丨量子位·对撞派 x 时识科技...
随机推荐
Recommend a fully open source, feature rich, beautiful interface mall system
One key switch circuit
[book club issue 13] Chapter 2 notes on the packaging format and coding format of video files
五张图看懂EMI电磁干扰的传播过程-方波陡峭程度对高频成分的影响,时序到频域频谱图形,波形形状对EMI辐射的影响。
sparksql 与flinksql 建表 与 连表记录
中标捷报!南大通用GBase 8s中标南瑞集团2022年数据库框架项目
Blog Building 9: add search function to Hugo
学术界爆火的类脑智能,啥时候能落地?来听行业大咖怎么说丨量子位·对撞派 x 时识科技...
[Qt5] a method of multi window parameter transmission (using custom signal slot) and case code download
ASP. Net core foundation V
UE4 engine customizes screenpass and MRT output
Maximum product of leetcode/ word length
微信小程序----微信小程序浏览pdf文件
49-OpenCv深入分析轮廓
An article to understand data warehouse: metadata classification, metadata management
[mindspire YiDianTong robot-01] you may have seen many Knowledge Q & A robots, but this is a little different
2018年1月西邻雪山自驾游攻略
模型预测控制(MPC)解析(九):二次规划的数值解(下)
Matlab (3) matlab program flow control statement
CarSim simulation quick start (XI) - Driver Model (1)