ctp-file

What is a .ctp file used for in CakePHP?

青春壹個敷衍的年華 提交于 2019-12-03 14:22:59
问题 I'm starting to use CakePHP, and I'm in the process of reading the manual. About halfway down the page, there's this comment: // Render the element in /views/elements/ajaxreturn.ctp So a very simple question: what's the .ctp extension refer to? What's the general use case? Thanks. 回答1: CakePHP 1.2 introduced .ctp as its file extension for views. CakePHP view files are written in plain PHP and have a default extension of .ctp (CakePHP Template) . These files contain all the presentational

What is a .ctp file used for in CakePHP?

时间秒杀一切 提交于 2019-12-03 04:11:39
I'm starting to use CakePHP, and I'm in the process of reading the manual . About halfway down the page, there's this comment: // Render the element in /views/elements/ajaxreturn.ctp So a very simple question: what's the .ctp extension refer to? What's the general use case? Thanks. Sampson CakePHP 1.2 introduced .ctp as its file extension for views. CakePHP view files are written in plain PHP and have a default extension of .ctp (CakePHP Template) . These files contain all the presentational logic needed to get the data it received from the controller in a format that is ready for the audience