| 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/<username>/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> |
| | 4 | <head> |
| | 5 | <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
| | 6 | <title>PHP on Trax: Welcome aboard</title> |
| | 7 | <style type="text/css" media="screen"> |
| | 8 | body { |
| | 9 | margin: 0; |
| | 10 | margin-bottom: 25px; |
| | 11 | padding: 0; |
| | 12 | background-color: #f0f0f0; |
| | 13 | font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana"; |
| | 14 | font-size: 13px; |
| | 15 | color: #333; |
| | 16 | } |
| | 17 | |
| | 18 | h1 { |
| | 19 | font-size: 28px; |
| | 20 | color: #000; |
| | 21 | } |
| | 22 | |
| | 23 | a {color: #03c} |
| | 24 | a:hover { |
| | 25 | background-color: #03c; |
| | 26 | color: white; |
| | 27 | text-decoration: none; |
| | 28 | } |
| | 29 | |
| | 30 | |
| | 31 | #page { |
| | 32 | background-color: #f0f0f0; |
| | 33 | width: 750px; |
| | 34 | margin: 0; |
| | 35 | margin-left: auto; |
| | 36 | margin-right: auto; |
| | 37 | } |
| | 38 | |
| | 39 | #content { |
| | 40 | float: left; |
| | 41 | background-color: white; |
| | 42 | border: 3px solid #aaa; |
| | 43 | border-top: none; |
| | 44 | padding: 25px; |
| | 45 | width: 500px; |
| | 46 | } |
| | 47 | |
| | 48 | #sidebar { |
| | 49 | float: right; |
| | 50 | width: 175px; |
| | 51 | } |
| | 52 | |
| | 53 | #footer { |
| | 54 | clear: both; |
| | 55 | } |
| | 56 | |
| | 57 | |
| | 58 | #header, #getting-started { |
| | 59 | padding-left: 100px; |
| | 60 | padding-right: 30px; |
| | 61 | } |
| | 62 | |
| | 63 | |
| | 64 | #header { |
| | 65 | background-image: url("images/trax.png"); |
| | 66 | background-repeat: no-repeat; |
| | 67 | background-position: top left; |
| | 68 | height: 78px; |
| | 69 | } |
| | 70 | #header h1, #header h2 {margin: 0} |
| | 71 | #header h2 { |
| | 72 | color: #888; |
| | 73 | font-weight: normal; |
| | 74 | font-size: 16px; |
| | 75 | } |
| | 76 | |
| | 77 | |
| | 78 | #getting-started { |
| | 79 | border-top: 1px solid #ccc; |
| | 80 | margin-top: 25px; |
| | 81 | padding-top: 15px; |
| | 82 | } |
| | 83 | #getting-started h1 { |
| | 84 | margin: 0; |
| | 85 | font-size: 20px; |
| | 86 | } |
| | 87 | #getting-started h2 { |
| | 88 | margin: 0; |
| | 89 | font-size: 14px; |
| | 90 | font-weight: normal; |
| | 91 | color: #333; |
| | 92 | margin-bottom: 25px; |
| | 93 | } |
| | 94 | #getting-started ol { |
| | 95 | margin-left: 0; |
| | 96 | padding-left: 0; |
| | 97 | } |
| | 98 | #getting-started li { |
| | 99 | font-size: 18px; |
| | 100 | color: #888; |
| | 101 | margin-bottom: 25px; |
| | 102 | } |
| | 103 | #getting-started li h2 { |
| | 104 | margin: 0; |
| | 105 | font-weight: normal; |
| | 106 | font-size: 18px; |
| | 107 | color: #333; |
| | 108 | } |
| | 109 | #getting-started li p { |
| | 110 | color: #555; |
| | 111 | font-size: 13px; |
| | 112 | } |
| | 113 | |
| | 114 | |
| | 115 | #search { |
| | 116 | margin: 0; |
| | 117 | padding-top: 10px; |
| | 118 | padding-bottom: 10px; |
| | 119 | font-size: 11px; |
| | 120 | } |
| | 121 | #search input { |
| | 122 | font-size: 11px; |
| | 123 | margin: 2px; |
| | 124 | } |
| | 125 | #search-text {width: 170px} |
| | 126 | |
| | 127 | |
| | 128 | #sidebar ul { |
| | 129 | margin-left: 0; |
| | 130 | padding-left: 0; |
| | 131 | } |
| | 132 | #sidebar ul h3 { |
| | 133 | margin-top: 25px; |
| | 134 | font-size: 16px; |
| | 135 | padding-bottom: 10px; |
| | 136 | border-bottom: 1px solid #ccc; |
| | 137 | } |
| | 138 | #sidebar li { |
| | 139 | list-style-type: none; |
| | 140 | } |
| | 141 | #sidebar ul.links li { |
| | 142 | margin-bottom: 5px; |
| | 143 | } |
| | 144 | |
| | 145 | </style> |
| | 146 | <script type="text/javascript" src="javascripts/prototype.js"></script> |
| | 147 | <script type="text/javascript" src="javascripts/effects.js"></script> |
| | 148 | |
| | 149 | <script type="text/javascript"> |
| | 150 | window.onload = function() { |
| | 151 | $('search-text').value = ''; |
| | 152 | $('search').onsubmit = function() { |
| | 153 | $('search-text').value = 'site:phpontrax.com ' + $F('search-text'); |
| | 154 | } |
| | 155 | } |
| | 156 | </script> |
| | 157 | </head> |
| | 158 | <body> |
| | 159 | <div id="page"> |
| | 160 | <div id="sidebar"> |
| | 161 | <ul id="sidebar-items"> |
| | 162 | <li> |
| | 163 | <form id="search" action="http://www.google.com/search" method="get"> |
| | 164 | |
| | 165 | <input type="hidden" name="hl" value="en" /> |
| | 166 | <input type="text" id="search-text" name="q" value="site:phpontrax.com " /> |
| | 167 | <input type="submit" value="Search" /> the Trax site |
| | 168 | </form> |
| | 169 | </li> |
| | 170 | |
| | 171 | <li> |
| | 172 | <h3>Join the community</h3> |
| | 173 | <ul class="links"> |
| | 174 | |
| | 175 | <li><a href="http://www.phpontrax.com/">PHP on Trax</a></li> |
| | 176 | <li><a href="http://forum.phpontrax.com/">Official forum</a></li> |
| | 177 | <li><a href="http://wiki.phpontrax.com/IRC">IRC channel</a></li> |
| | 178 | <li><a href="http://wiki.phpontrax.com/">Wiki</a></li> |
| | 179 | <li><a href="http://svn.phpontrax.com/">Bug tracker</a></li> |
| | 180 | |
| | 181 | </ul> |
| | 182 | </li> |
| | 183 | |
| | 184 | <li> |
| | 185 | <h3>Browse the documentation</h3> |
| | 186 | <ul class="links"> |
| | 187 | <li><a href="http://api.phpontrax.com/">Trax API</a></li> |
| | 188 | <li><a href="http://www.php.net">PHP</a></li> |
| | 189 | </ul> |
| | 190 | </li> |
| | 191 | </ul> |
| | 192 | </div> |
| | 193 | |
| | 194 | <div id="content"> |
| | 195 | <div id="header"> |
| | 196 | <h1>Welcome aboard</h1> |
| | 197 | |
| | 198 | <h2>You’re riding on Trax!</h2> |
| | 199 | </div> |
| | 200 | |
| | 201 | <div id="getting-started"> |
| | 202 | <h1>Getting started</h1> |
| | 203 | <h2>Here’s how to get rolling:</h2> |
| | 204 | |
| | 205 | <ol> |
| | 206 | <li> |
| | 207 | <h2>Create your databases and edit <tt>config/database.ini</tt></h2> |
| | 208 | |
| | 209 | <p>Trax needs to know your login and password.</p> |
| | 210 | </li> |
| | 211 | |
| | 212 | <li> |
| | 213 | <h2>Use <tt>script/generate.php</tt> to create your models and controllers</h2> |
| | 214 | <p>To see all available options, run it without parameters.</p> |
| | 215 | </li> |
| | 216 | |
| | 217 | |
| | 218 | <li> |
| | 219 | <h2>Set up a default route and remove or rename this file</h2> |
| | 220 | <p>Routes are setup in config/routes.php.</p> |
| | 221 | </li> |
| | 222 | </ol> |
| | 223 | </div> |
| | 224 | </div> |
| | 225 | |
| | 226 | <div id="footer"> </div> |
| | 227 | |
| | 228 | </div> |
| | 229 | </body> |