You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yaf manual could be found at: http://www.php.net/manual/en/book.yaf.php
26
27
27
-
## IRC
28
-
efnet.org #php.yaf
29
28
30
29
## For IDE
31
-
You could find a documented prototype script here: https://github.com/elad-yosifon/php-yaf-doc
30
+
A documented prototype script could be found at: https://github.com/elad-yosifon/php-yaf-doc
32
31
33
32
## Tutorial
34
33
35
34
### layout
36
-
A classic application directory layout:
35
+
A classic application directory layout is:
37
36
38
37
```
39
38
- .htaccess // Rewrite rules
@@ -56,7 +55,7 @@ A classic application directory layout:
56
55
+ plugins // Plugins
57
56
```
58
57
### DocumentRoot
59
-
You should set `DocumentRoot` to `application/public`, thus only the public folder can be accessed by user
58
+
You should set `DocumentRoot` to `application/public`, by doing this, only the public folder can be accessed by user:
60
59
61
60
### index.php
62
61
`index.php` in the public directory is the only way in of the application, you should rewrite all request to it(you can use `.htaccess` in Apache+php mod)
@@ -140,7 +139,7 @@ class IndexController extends Yaf_Controller_Abstract {
140
139
```
141
140
142
141
### view script
143
-
The view script for default controller and default action is in the application/views/index/index.phtml, Yaf provides a simple view engine called "Yaf_View_Simple", which support the view template written in PHP.
142
+
The view script for default controller and default action is application/views/index/index.phtml, Yaf provides a simple view engine called "Yaf_View_Simple", which support the view template written in PHP:
144
143
145
144
```php
146
145
<html>
@@ -154,7 +153,8 @@ The view script for default controller and default action is in the application/
154
153
```
155
154
156
155
## Run the Application
157
-
http://www.example.com
156
+
157
+
http://www.example.com
158
158
159
159
## Alternative
160
160
You can generate the example above by using Yaf Code Generator: https://github.com/laruence/php-yaf/tree/master/tools/cg
@@ -163,4 +163,4 @@ You can generate the example above by using Yaf Code Generator: https://github.
163
163
```
164
164
165
165
## More
166
-
More info could be found at Yaf Manual: http://www.php.net/manual/en/book.yaf.php
166
+
More infos could be found at Yaf Manual: http://www.php.net/manual/en/book.yaf.php
0 commit comments