Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorgrowlley
     
    Hi Im attempting to work my way thru the booklink tutorial.
    Im using wamp on windows xp.

    I have successfully got as far as - ./script/generate scaffold Book and ./script/generate scaffold Author
    these command ran without any apparent error but when I attempt to select http://localhost/booklink/author from the tutorial I get a 404 error.

    So I guess my routing isnt correct either in config/routes or my http.conf. Im a newbie at unix so I would be gratefull if someone could point out my mistake.

    my http conf for booklinks contains


    Alias /booklink "c:/wamp/www/booklink/public"

    <Directory "c:/wamp/www/booklink/public">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    and my routes.php

    <?php

    // You can find more about routes on /lib/AkRouters.php and /test/test_AkRouter.php

    $Map->connect('/:controller/:action/:id', array('controller' => 'page', 'action' => 'index'));
    $Map->connect('/', array('controller' => 'page', 'action' => 'index'));

    ?>


    Thank you for your time.
    • CommentAuthorinsanet
     
    are you sure mod_rewrite is enabled ?
    • CommentAuthorgrowlley
     
    Hi, according to phpinfo mod_rewrite is loaded an an apache module so with my limited knowledge Im guessing that it is active.

    Thu with further 'investigation' I do believe it is something to do with rewriting.
    if I access http://localhost/akelos it renders the welcome screen from
    http://localhost/akelos/public/index.htm

    However http://localhost/booklink - displays a directory listing
    http://localhost/booklink/public/ - displays index.htm

    http://localhost/booklink/public/.htaccess contains

    # If your Akelos Framework application is accessed via an Alias directive,
    # then you MUST also set the RewriteBase in this htaccess file.
    #
    # Example:
    # Alias /myakelosapp /path/to/myakelosapp/public
    RewriteBase /booklink
    .. etc.

    Thanks for your help

    ** Edit ** - thanks for your help- I have managed to get it working now looks like the above error was due to me getting tired looks like I had missed off the public directory in the httpd alias.

    Can any one recomend a simple tutorial for http conf and mod_rewrite.

    Thanks