www.webdeveloper.com
Results 1 to 14 of 14

Thread: New PHP framework - Jackal

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Location
    Dallas Tx
    Posts
    8

    New PHP framework - Jackal

    Fellow PHP developers, my name is Luke Keith. Two years ago Samuel Dillow and I started developing Jackal, an open source PHP framework that we believe will change the way people think about PHP frameworks.

    Jackal Website

    We are still very much in our infancy, but we have released v1.1.3 online for download with an interactive demo. We would love to get some honest feedback on our framework. We are also looking for a few developers to help build our community.

    Here are a few brief pieces of info about Jackal.

    * Incredibly light weight
    * Only loads what it needs when it needs it
    * An incredibly sexy model
    * Triggers are freaking easy
    * 100% resource protection
    * URL flags
    * MVC

    ... and much much more.

    I have put together two tutorials to help you get started and you can also read our online documentation. We have also published a few of our home-grown modules and libraries for download.

    Looking forward to some feedback!

    Regards,
    Luke Keith

  2. #2
    Join Date
    May 2010
    Posts
    123
    I seen a post about this framwork appear in my RSS feed, I was meaning to check it out, just not got around to it yet.

  3. #3
    Join Date
    Jan 2011
    Location
    Dallas Tx
    Posts
    8
    Well be sure to let us know if you do decide to give it a try. We are anxious to hear what people think. Thanks!

  4. #4
    Join Date
    Aug 2009
    Posts
    593
    Hey lukekeith,

    I tried out the framework on my webserver, I even read the tutorial (I never read things usually).
    But I got an error after it managed to create the .htaccess file. This is from the Apache log file:

    Code:
    [Fri Jan 21 09:32:28 2011] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
    You can just tell me if I did something stupid.

  5. #5
    Join Date
    Jan 2011
    Location
    Dallas Tx
    Posts
    8
    Would you mind posting a copy of the .htaccess file you created? htaccess files are very touchy, so if even one small thing is out of place, it will break.

  6. #6
    Join Date
    Aug 2009
    Posts
    593
    Sure...

    Code:
    ErrorDocument 404 "//index.php"
    
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteCond %{REQUEST_URI} !^//index\.php$
    RewriteRule (.*) //index.php [L]

  7. #7
    Join Date
    Jan 2011
    Location
    Dallas Tx
    Posts
    8
    Remove the double forward slashes and see if that fixes anything =)

  8. #8
    Join Date
    Jan 2011
    Location
    Dallas Tx
    Posts
    8
    Also, did you install Jackal into your web root directory or a sub folder of your web root directory?

    if it is within the web root, then the path will only ever be...
    /index.php

    If it is within a subfolder of your web root, then it will look like this...
    /subfolder/index.php

    Does that make sense?

  9. #9
    Join Date
    Aug 2009
    Posts
    593
    Its in the root,

    Things are looking better now, except the framework now says...

    Welcome to Jackal! Security first!
    You have an .htaccess file and this is what it contains
    Code:
    ErrorDocument 404 "index.php"
    
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteCond %{REQUEST_URI} !^index\.php$
    RewriteRule (.*) index.php [L]
    And this is what it needs to contain. Please paste the code below into your .htaccess file and refresh the page.
    Code:
    ErrorDocument 404 "//index.php"
    
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteCond %{REQUEST_URI} !^//index\.php$
    RewriteRule (.*) //index.php [L]

  10. #10
    Join Date
    Jan 2011
    Location
    Dallas Tx
    Posts
    8
    I am so sorry, I told you to remove the double slashes and you did =), what I forgot to mention is to replace them with a single slash.

    Like this:
    Code:
    ErrorDocument 404 "/index.php"
    
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteCond %{REQUEST_URI} !^/index\.php$
    RewriteRule (.*) /index.php [L]

  11. #11
    Join Date
    Jan 2011
    Location
    Dallas Tx
    Posts
    8
    It's funny, you actually discovered a bug in the demo that verifies your htaccess's validity. If you re-download Jackal from the site, this will no longer happen.

    Or.... just paste this into lines 20 - 26 of:
    private/modules/Site/htaccess-info.php
    PHP Code:
    ErrorDocument 404 \"/".ltrim($path"/")."\"

    Options +FollowSymLinks
    RewriteEngine on

    RewriteCond %{REQUEST_URI} !^/"
    .ltrim(str_replace(".""\."$path),"/")."$
    RewriteRule (.*) /"
    .ltrim($path"/")." [L] 
    Last edited by lukekeith; 01-21-2011 at 03:26 AM.

  12. #12
    Join Date
    Aug 2009
    Posts
    593
    Alrighty, I changed them to a single forward slash.

    I still get the same message, it appears the framework is comparing the content to a doubleslashed version though.

    My htaccess file now:
    Code:
    ErrorDocument 404 "/index.php"
    
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteCond %{REQUEST_URI} !^/index\.php$
    RewriteRule (.*) /index.php [L]
    It still wants:
    Code:
    ErrorDocument 404 "//index.php"
    
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteCond %{REQUEST_URI} !^//index\.php$
    RewriteRule (.*) //index.php [L]
    Just a note, I didn't create the original htaccess file, the framework did. So I guess it's comparing against its original source file.

  13. #13
    Join Date
    Aug 2009
    Posts
    593
    I redownloaded from the site and started everything from scratch.

    So far so good, no problems. I'm at the part where I need to read through the comments in the Site/index.php file.

    Well done.

  14. #14
    Join Date
    Jan 2011
    Location
    Dallas Tx
    Posts
    8
    Thanks!

    There are still a lot of tutorials I will be adding to the site to help people learn about different aspects of the framework like triggers, the $URI, flags, rewriting model functionality, and more. Hopefully the two that I have already provided are enough to get your feet wet.

    Please feel free to post any questions you may have about the framework in this thread and I will do my best to provide an answer.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles