Changeset 111

Show
Ignore:
Timestamp:
03/02/07 11:54:19 (2 years ago)
Author:
bermiferrer
Message:

Fixing Tutorial Typos. Thanks to isard

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docs/tutorial.markdown

    r107 r111  
    2121Download and installation 
    2222--------------------------- 
    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: 
     23We 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/). 
     24You can checkout a working copy of the Akelos source code with the command: 
    2425 
    2526    svn co http://akelosframework.googlecode.com/svn/trunk/ akelos 
    2627 
    27 If you cant 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: 
     28If 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: 
    2829 
    2930    tar zxvf akelos_framework-dev_preview.tar.gz;mv akelos_framework-dev_preview akelos 
     
    137138Save 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. 
    138139 
    139 You might also need to set the base rewrite path manually is you want to be able to use nice URLs by editing the file `public/.htaccess` and setting RewriteBase like: 
     140You 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: 
    140141 
    141142    RewriteBase /booklink 
    142143 
    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
     144After 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
    144145 
    145146The booklink database structure 
     
    257258    ./script/generate scaffold Author 
    258259 
    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. 
     260This 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. 
    260261 
    261262 
     
    287288---------------------------- 
    288289 
    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. 
     290Now 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. 
    290291 
    291292So you will need to tell your models how they relate to each other like  
     
    345346-------------------- 
    346347 
    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: 
     348This 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: 
    348349                                 
    349350 * validations 
  • trunk/lib/AkBaseModel.php

    r60 r111  
    11<?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 */ 
    218 
    319require_once(AK_LIB_DIR.DS.'Ak.php'); 
     
    1127 *  
    1228 * 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*/ 
    1435class AkBaseModel extends AkObject  
    1536{