Web Framework

Attached is a copy of a very very alpha stage web framework I just made. I took most of the code from a site I’m developing, and removed the site specific stuff from it. It’s fairly advanced, just not fully complete.

Features includes:

An interactive command line mode (pipe your email, run cron jobs, all through the same application, with complete separation from the web interface)
An advanced controller/view architecture (no models yet).
Controllers run in a fully virtual environment (virtual IP, session, etc), allowing unit testing of practically anything.
A database revision system
An advanced exception model for comprehensive error reporting and logging
Maximum security with session hijacking and HTML/SQL injection prevention

Keep in mind, this is not CakePHP or Ruby on Rails. It doesn’t do as much for you, but in turn it provides maximum flexibility. This is not a “for dummies” framework, you have to know what you’re doing but it has major potential. Absolutely every line of code is written with maximum flexibility and modularity in mind.

It’s attached in a zip. Barely any documentation, if you have any questions at all though feel free to ask me.

Alpha Web Framework

8 Responses to “Web Framework”

  1. AntonioCS Says:

    While trying to run your framework I got this

    Notice: Use of undefined constant STDERR - assumed ‘STDERR’ in D:\htdocs\frameworks\SamBarrow.com_framework\includes\functions\cli\error.function.php on line 4

    And I don’t get why the layouts are done that way. Shouldn’t you try to separate the code from the layout? I know you would still have to have something to echo the variables but… echo on all lines?? Come on..

  2. AntonioCS Says:

    I removed that line and nothing appeared after. Guess I don’t know what I am doing or.. your framework is extremely complicated and the only one that know what to do is you..

  3. Sam Barrow Says:

    The layouts can be done in pure html if you want, that’s just how I had mine.

    Yes it is complicated, this is just a very early preview. I need to make sure it is cross-platform compatible, as well as include alot more documentation and comments.

    Your problem is caused by the fact that you are running on Windows, whereas the application was made for Linux. I’ve fixed it, replace line 44 of stage/ini/system.ini.php with this:

    if (php_sapi_name() === ‘cli’) {

  4. Chad Buie Says:

    Hey,

    I just downloaded the zip and of course I read the comments from above, was that line 44 updated in the dl file? Also the html code I have at my login page is just simple form tags with the “get” attribute, obviously I need to read more and I am reading PHP and PHP/MySQL Oreilly Book. But I am a beginner do you think I am going to have trouble setting this up. I don’t mind paying for the help on my website. You can see what I have started here http://www.fastjax.net/accounts/login/index.htm and the register too http://www.fastjax.net/accounts/login/newaccount/index.htm. Any comments would be great.

  5. Sam Barrow Says:

    The code on line 44 is not updated in this zip, I will update it in my next release in a couple of days. However if you are running on Linux (most shared hosting plans run on linux) then you should be fine as it is.

    You should be fine with a simple login form using the get attribute, email me at sam@sambarrow.com, I’ll send you some sample code for a login form for use with my framework.

  6. Chad Buie Says:

    Hey thanks I will do that. Also I was wondering after I get them to login, how do I redirect to the content I want. I was reading my old html reference book and was looking over the form tag, however, I wanted to build a customized login for them, where they can check email, and based on the radio buttons and other various signup options that would display after they got logged in. How do I direct it after login. I will email you shortly. Thanks for your help.

    Best Regards,
    Chad

  7. AntonioCS Says:

    Chad Buie: Get another framework. Not saying anything bad about this one, but it’s still in it’s early stages. Either get zend, cake, codeigniter or get joomla for your site

  8. AntonioCS Says:

    Forgot to say the joomla is not a framework but a CMS

Leave a Reply