$Content_for_layout for cakephp
来源:互联网 发布:淘宝网商城孕妇装 编辑:程序博客网 时间:2024/06/11 17:53
http://ask.cakephp.org/questions/view/content_for_layout
Hi, I am new to cakephp. I start working on a project and $content_for_layout seems as MAster Page concept in dot net. I want to know how and from where $content_for_layout finds the content to be displayed.
Check this description
http://api.cakephp.org/class/view#method-ViewrenderLayout
and the source
http://api.cakephp.org/view_source/view/#line-418
Answered by burzum on 31/12/09
- link
In short, it finds corresponding view file (which is like a template) on views/controller/action.ctp and uses variables set on action in controller i.e. $this->set('variable', 'some text'); on contrller becomes $variable on your view.
Answered by Lunks on 31/12/09
- $Content_for_layout for cakephp
- Transfer method for Cakephp
- cakephp
- CakePHP
- cakephp
- cakephp
- CakePHP
- CakePHP
- CakePHP
- CakePHP
- 【CakePHP】几个CakePHP知识点
- 什么是CakePHP
- cakephp实例
- CakePHP Validation
- cakephp--为什么?
- cakephp 简介
- php cakephp
- cakephp acl
- 内核源码的获取
- java中的数组长度问题
- 求助:数据库方面的知识
- 从今天开始养成高效率工作的习惯
- c# indexof 用法
- $Content_for_layout for cakephp
- C# Split用法
- jquery图片截取DEMO
- Kim Lai 的笔记,[How to] FreeBSD console frame buffer.
- IHttpModule与IHttpHandler的区别整理
- IIC I2C : A single master I2C tutorial
- 运算符重载
- Objective-C的Initialize初始化方法研究
- 实现ComBox带有联想查询功能