User:Taoist

=Cake PHP=

=Getting information from the database=

How to inject MYSQL table information (posts) into HTML

 * 1) You need a controller class to store the information in a variable. You do this using the set method. This is defined in the controller class file inside an 'action' and then relayed to the view file which adopts the variable as its own as long as you follow the same naming convention

2. You can then adopt the variable and use it. You do this by looping through it.

$Id
This parameter is handed to the action through the requested URL. If a user requests /posts/view/3, then the value ‘3’ is passed as $id.

Trees
With trees the parent_id can be used to find, well, the parent.