Zend framework step by step tutorial (Folder structure)
Authored by
Sandipan Bhattacharjee
closeAuthor: Sandipan Bhattacharjee
Name: Sandipan Bhattacharjee
Email: sandipan@codez.in
Site:
About: PHP Developer at CodezSee Authors Posts (11) Posted On March 21st, 2011 in
PHP
Folder structure [From root]
| Application |
|
| Controllers |
- This is the controller section of your site .
- Controllers are nothing but a class file & within the class many action controller function/method are defined.
Controller function name is very case sensitive (camelCase) . Ex: UserController.php
class UserController extends Zend_Controller_Action{
public function registerAction(){……}
}
|
| Models |
- This is the section where you can write your own query
|
| Views |
- This section used for create your views (Display section)
- Views name is very much related with action controller name
- If we created a controller named registerAction , then the corresponding view name would be register.phtml under user folder
- File extension : phtml
|
| Config |
- Configuration of your server setting
- File extension : ini
|
| Layout |
- You can create your custom html layout for your site
- Multiple layout can be created
- File extension : phtml
|
| Forms |
- You can create your own custom form with php standard validation
- File extension : php
|
| Library |
- Zend library files listed here
|
| Test |
- This folder is for only testing purpose before a completion of the application
|
| Public |
- This portion is only for general user i.e: what you want to diaplay for an user
|
| Docs |
- Any related document for your project is listed here
|
Latest posts by Sandipan Bhattacharjee