Changeset 111
- Timestamp:
- 03/02/07 11:54:19 (2 years ago)
- Files:
-
- trunk/docs/tutorial.markdown (modified) (5 diffs)
- trunk/lib/AkBaseModel.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docs/tutorial.markdown
r107 r111 21 21 Download and installation 22 22 --------------------------- 23 We highly recommend you to get the trunk version of Akelos until we hit version 1.0. You need to have installed [subversion](http://subversion.tigris.org/) in order to do this and run the this from your command line: 23 We highly recommend you to get the trunk version of Akelos until we hit version 1.0. You need to have installed [subversion](http://subversion.tigris.org/). 24 You can checkout a working copy of the Akelos source code with the command: 24 25 25 26 svn co http://akelosframework.googlecode.com/svn/trunk/ akelos 26 27 27 If you can t or don't want to checkout the code from subversion, you can get the [latest stable version](http://www.akelos.org/akelos_framework-dev_preview.tar.gz) generated automatically by the Continuous Integration system, and untar it by typing:28 If you can't or don't want to checkout the code from subversion, you can get the [latest stable version](http://www.akelos.org/akelos_framework-dev_preview.tar.gz) generated automatically by the Continuous Integration system, and untar it by typing: 28 29 29 30 tar zxvf akelos_framework-dev_preview.tar.gz;mv akelos_framework-dev_preview akelos … … 137 138 Save the files `config/DEFAULT-config.php` and `config/DEFAULT-routes.php` as `config/config.php` and `config/routes.php` and edit them following them as needed. 138 139 139 You might also need to set the base rewrite path manually i syou want to be able to use nice URLs by editing the file `public/.htaccess` and setting RewriteBase like:140 You might also need to set the base rewrite path manually if you want to be able to use nice URLs by editing the file `public/.htaccess` and setting RewriteBase like: 140 141 141 142 RewriteBase /booklink 142 143 143 After your application has been installed correctly you'll see a welcome message at http://localhost/booklink. Now you can safely remove the framework setup files ( it won't be available is you have a `/configconfig.php` file)144 After your application has been installed correctly you'll see a welcome message at http://localhost/booklink. Now you can safely remove the framework setup files (they won't be accessible if a `/config/config.php` file exists) 144 145 145 146 The booklink database structure … … 257 258 ./script/generate scaffold Author 258 259 259 This will generate a brunch of files and folder with code that really works! , don't trust me? try it yourself. Point your browser to [http://localhost/booklink/author](http://localhost/booklink/author) and [http://localhost/booklink/books](http://localhost/booklink/books) to start adding authors and books. Create some records and come back for an explanation of what is going under the hood.260 This will generate a brunch of files and folder with code that really works!. Don't trust me? Try it yourself. Point your browser to [http://localhost/booklink/author](http://localhost/booklink/author) and [http://localhost/booklink/books](http://localhost/booklink/books) to start adding authors and books. Create some records and come back for an explanation of what is going under the hood. 260 261 261 262 … … 287 288 ---------------------------- 288 289 289 Now you are going to link **boolink**authors and books (complex associations in upcoming tutorials). In order to achieve this you will use the `author_id` column you added to your database.290 Now you are going to link authors and books (complex associations in upcoming tutorials). In order to achieve this you will use the `author_id` column you added to your database. 290 291 291 292 So you will need to tell your models how they relate to each other like … … 345 346 -------------------- 346 347 347 This is all for know, I'll be improving this tutorial from time to time to add some missing features to this and other documents like:348 This is all for now, I'll be improving this tutorial from time to time to add some missing features to this and other documents like: 348 349 349 350 * validations trunk/lib/AkBaseModel.php
r60 r111 1 1 <?php 2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 3 4 // +----------------------------------------------------------------------+ 5 // | Akelos Framework - http://www.akelos.org | 6 // +----------------------------------------------------------------------+ 7 // | Copyright (c) 2002-2006, Akelos Media, S.L. & Bermi Ferrer Martinez | 8 // | Released under the GNU Lesser General Public License, see LICENSE.txt| 9 // +----------------------------------------------------------------------+ 10 11 /** 12 * @package AkelosFramework 13 * @subpackage Utils 14 * @author Bermi Ferrer <bermi a.t akelos c.om> 15 * @copyright Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org 16 * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html> 17 */ 2 18 3 19 require_once(AK_LIB_DIR.DS.'Ak.php'); … … 11 27 * 12 28 * See also <AkActiveRecord> and <AkActionMailer> as those are the ones you will usually inherit from 13 */ 29 * 30 * @package AkelosFramework 31 * @author Bermi Ferrer <bermi a.t akelos c.om> 32 * @copyright Copyright (c) 2002-2005, Akelos Media, S.L. http://www.akelos.org 33 * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html> 34 */ 14 35 class AkBaseModel extends AkObject 15 36 {
