Thursday, March 11, 2010
Customise CakePhp View Part 1 - In My Case
As I said ealier, we can customise our CakePhp according to our own needs.
At the picture above, to remove the section that I have given the number 1 and 2. The following are the steps on how you can do that.
1. To remove 1, you need to create a ctp called default.ctp file and place it in app/views/layouts/
Example of a ctp file can be :
2. To remove 2, you need to change the value of 2 to 0 at line begins with Configure::write('debug', 2); to Configure::write('debug', 0); in app/config/core.php
You can find the meaning of the number in this file.
The end result of the CakePhp view will be as follows:
Labels:
CakePHP
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment