当前位置:网站首页>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 .
边栏推荐
- 单片机IO口控制12V电压通断,MOS和三极管电路
- 49-OpenCv深入分析轮廓
- Feign call
- uniapp---- 获取当前位置的经纬度等信息的详细步骤(包含小程序)
- The current value of uniapp's swiper dynamic setting does not take effect solution
- Prescan quick start to master the transportation elements in lesson 14, prescan
- 2022牛客多校第二场解题报告
- [mindspire YiDianTong robot-01] you may have seen many Knowledge Q & A robots, but this is a little different
- [Qt5] a method of multi window parameter transmission (using custom signal slot) and case code download
- PMP practice once a day | don't get lost in the exam -7.13
猜你喜欢

The current value of uniapp's swiper dynamic setting does not take effect solution

Recommend a fully open source, feature rich, beautiful interface mall system

CAT1 4G+以太网开发板232数据通过4G模块TCP发到服务器

5张图告诉你:同样是职场人,差距怎么这么大?

How to write a JMeter script common to the test team

uniapp的swiper动态设置current值不生效解决办法
![[leetcode] 24. Exchange nodes in the linked list in pairs](/img/06/af8cffd306777b14a4989e638f5866.png)
[leetcode] 24. Exchange nodes in the linked list in pairs

竞赛:糖尿病遗传风险检测挑战赛(科大讯飞)

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

Prescan quick start to master the track editing path of Lecture 16
随机推荐
2021-07-02
One key switch circuit
[mindspire YiDianTong robot-01] you may have seen many Knowledge Q & A robots, but this is a little different
Pyspark writes data to iceberg
js糖果消消乐小游戏源码
2022 Niuke multi school first problem solving Report
Prescan quick start to master the road elements of lecture 15
Sliding screen switching on uniapp supports video and image rotation, similar to Tiktok effect
业务数字化飞速奔跑,管理数字化亟待出发
2022 Niuke multi school second problem solving Report
MySQL how to add users and set permissions?
机器学习如何做到疫情可视化——疫情数据分析与预测实战
sparksql 与flinksql 建表 与 连表记录
49-OpenCv深入分析轮廓
Three different numbers with 0 in leetcode/ array
[leetcode] 24. Exchange nodes in the linked list in pairs
Day112.尚医通:手机验证码登录功能
PostgreSQL:无法更改视图或规则使用的列的类型
Puzzle (004.3) pattern puzzle
CarSim simulation quick start (10) - Modeling of braking system