PHP on T R A X
Rapid Application Development Made Easy

root/tags/rel_0-13-0/public/index.html

Revision 29, 2.8 kB (checked in by john, 3 years ago)

changed text on default index.html page

Line 
1 <html>
2 <head>
3   <title>Trax: Welcome on board</title>
4   <style>
5     body { background-color: #fff; color: #333; }
6
7     body, p, ol, ul, td {
8       font-family: verdana, arial, helvetica, sans-serif;
9       font-size:   12px;
10       line-height: 18px;
11     }
12
13     li {
14       margin-bottom: 7px;
15     }
16
17     pre {
18       background-color: #eee;
19       padding: 10px;
20       font-size: 11px;
21     }
22
23     a { color: #000; }
24     a:visited { color: #666; }
25     a:hover { color: #fff; background-color:#000; }
26   </style>
27 </head>
28 <body>
29
30 <h1>Congratulations, you've put PHP on Trax!</h1>
31
32 <p><b>Before you move on</b>, verify that the following conditions have been met:</p>
33
34 <ol>
35   <li>The log files must be writable to the web server (<code>chmod 775 log/*</code>).
36   <li>
37     Trax on Apache needs to have mod_rewrite enabled.  <br/>
38     Somewhere in your httpd.conf, you should have:<br/>
39     <code>LoadModule rewrite_module     libexec/httpd/mod_rewrite.so</code><br/>
40     <code>AddModule mod_rewrite.c</code>
41   </li>
42   <li>
43     Edit <code>public_html|public/.htaccess</code> and add to the end of the <code>include_path</code> the path to the trax/config dir
44     <br><small>example: <code>php_value include_path .:/usr/local/lib/php:/home/&lt;username&gt;/config</code></small>
45   </li>
46 </ol>
47
48 <p>Take the following steps to get started:</p>
49
50 <ol>
51   <li>Create empty development and test databases for your application.<br/>
52     <small>Recommendation: Use *_development and *_test names, such as database_development and database_test</small><br/>
53   <li>Edit config/database.ini with your database settings.
54   <li>Create controllers and models using the generator in <code>script/generate.php</code> <br/>
55     <small>Help: Run the generator with no arguments for documentation or with only model or controller for each instructions</small>
56   <li>
57     main site layouts should be in <code>app/views/layouts</code><br>
58     default: <code>public.phtml</code><br>
59     content from view files are displayed in the layout phtml file<br>
60     by using the variable <code>$content_for_layout</code><br>
61   <li>Develop your Trax application!
62 </ol>
63
64 <p>
65   Trying to setup a default page for Trax using Routes? You'll have to delete this file (public/index.html) to get under way. Then define a new route in <tt>trax/config/routes.php</tt> of the form:
66  
67   <pre>
68     # this is for the root directory
69     $router->connect( "", array(":controller" => "welcome") );
70     # this is the default route
71     $router->connect( ":controller/:action/:id" );     
72   </pre>
73 </p>
74
75 <p>
76   Having problems getting up and running? First try debugging it yourself by looking at the php error log files for your app in the trax/log directory. <br/>
77   Support is also available via Mailing list trax@phpontrax.com or IRC irc.freenode.net channel trax.
78 </p>
79
80 </body>
81 </html>
Note: See TracBrowser for help on using the browser.