Creating Function First CakePHP | Black Gooner13
Last Post Converting AD to Hijri with PHP and jQuery Techniques Scaffolding in CakePHP CakePHP Makes First Function Introduction Initial Configuration CodeIgniter Framework CakePHP What is PHP? Introduction to MVC Archives April 2013 March 2013 Category CakePHP CodeIgniter PHP jQuery Javascript Calendar
The rules for naming files in CakePHP: Model name is the singular of the name of the table in the database. Example: table name students, meaning the name of the model is the student. But this rule is not binding. If we want the name of the model is quite different from the table name to specify the useTable $ var = 'table name'. Controller file name should brieger verpackungen be followed by the word 'Controller'. example: StudentsController.php, HomesController.php Controller name became the name of the folder in the app / views while the function name in the Controller class would be the file name.
In the above script we create a class called Homes. Naming Homes Homes will be linked to a folder on the app / views. While the function index () will be associated with the file name in the folder view index.ctp Homes.
Reply
Connecting to% s
% D bloggers like this:
Last Post Converting AD to Hijri with PHP and jQuery Techniques Scaffolding in CakePHP CakePHP Makes First Function Introduction Initial Configuration CodeIgniter Framework CakePHP What is PHP? Introduction to MVC Archives April 2013 March 2013 Category CakePHP CodeIgniter PHP jQuery Javascript Calendar
The rules for naming files in CakePHP: Model name is the singular of the name of the table in the database. Example: table name students, meaning the name of the model is the student. But this rule is not binding. If we want the name of the model is quite different from the table name to specify the useTable $ var = 'table name'. Controller file name should brieger verpackungen be followed by the word 'Controller'. example: StudentsController.php, HomesController.php Controller name became the name of the folder in the app / views while the function name in the Controller class would be the file name.
In the above script we create a class called Homes. Naming Homes Homes will be linked to a folder on the app / views. While the function index () will be associated with the file name in the folder view index.ctp Homes.
Reply
Connecting to% s
% D bloggers like this:
No comments:
Post a Comment