Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorPeter Weil
     
    Hi, I'm new to Akelos. I've gone through most of the setup, and have just completed the scaffolding commands, which went without error. The databases and tables have been created. But now when I go to http://localhost/booklink/author, I get a 404 error. http://localhost/booklink/ gets me to the Welcome on Board page. I am doing this test on my local machine, running Apache 1.3x. I am not using .htaccess. I have a booklink directory in my public_html directory that is linked to ~/booklink/public. What am I missing here? Do I need to set routing somewhere? Or should I set up a virtual host; e.g., booklink.localhost.dev? Thanks, pw
    •  
      CommentAuthorbermi
     

    Hi Peter and welcome to the Akelos forum.

    You should check if you have mod_rewrite enabled in your httpd.conf file. If you do you must make sure your akelos app .htaccess has the rewrite base to /booklink

    If you can't get mod rewrite working you can still using Akelos by adding this to your config/config.php file

    define('AK_URL_REWRITE_ENABLED', false);
    

    and using the URL http://localhost/booklink/?ak=author instead

    • CommentAuthorPeter Weil
     
    Thanks for your reply, Bermi. Yes, mod_rewrite is installed, and the rewrite base is already set to /booklink in .htacess. This must have been done by the setup script. I can get the ugly URLS to work, but I never added anything to config.php. Is this what's supposed to happen? I don't mind the ugly URLs. What's more important for me is to understand what's going on "under the hood" with the URLs and how to control them. Right I'm not sure whether what I'm seeing is caused by an Akelos config or an Apache config error.
    • CommentAuthorpweil
     
    Ok. problem solved. My apache config file contained a global Override None directive that was 'overriding' my directory-based Override All directive. ;-). Just another little bump in the road. I feel like I'm in business again.
    thanks! Looking forward to working with Akelos. ~pw
    • CommentAuthormilinmestry
     

    Hi, I'm new to Akelos. This is the first time i'm using framework for PHP development. I've gone through most of the setup. The databases and tables have been created. But got an error when doing this command on bash

    abc@debian:~/booklink$ ./script/generate scaffold Book
    
    Fatal error: Only variables can be passed by reference in /var/www/abc/akelos/akelos_framework/lib/utils/generators/AkelosGenerator.php on line 253
    

    What could be the problem? Can anybody help me?

    •  
      CommentAuthorbermi
     

    Hi milinmestry, and welcome to the forums!

    Have look at this previous post. It explains how to get rid of pass by reference warnings.

    • CommentAuthormilinmestry
     
    I'm confused with this documentation on akelos.org for 'booklink'

    ------------------------------------------------------------------------------------------------
    Manual configuration editing

    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.

    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:

    RewriteBase /booklink

    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)
    ------------------------------------------------------------------------------------------------
    1) WHERE TO SET THIS "RewriteBase /booklink" IN .htaccess ?
    2) WHICH FILE I SHOULD REMOVE FROM MY BOOKLINK FOLDER?
    3) ANOTHER PROBLEM IS THAT YESTERDAY DEFAULT PAGE IN /booklink/public/ folder IS IN ENGLISH, RIGHT NOW IT IS SOME DIFFERENT LANGUAGE?