Problem 1: cakephpUndefinedvariable: Html may occur when $ html is called. Solution: Call this with the code: $ this-& gt; Html-& gt; link. it is also applicable to FormHelper. CakePHP learning.
23:58:22 | classification: PHP | label: php cakephp | large font size, small/medium subscription
[ReferenceHttp://book.cakephp.org]
Problem highlightsProblem 1: cakephp Undefined variable: Html will occur when $ html is called. Solution: Use this to call. the code: $ this-> Html-> link is also applicable to Form Helper.
Problem 2: a project created using cakePHP has a default header and footer. solution: create default. ctp under app \ views \ layouts and define the page layout. This file will overwrite the default layout of cakePHP. You can also change css.
Knowledge points1. you can define the debug level in default. ctp, set global variables, and set cache. 2. routes. php is responsible for page routing, similar to defining the home page in web. xml. 3. define the database connection in database. php. I have to say, it is nice to use it!