Surebert Framework 2

surebert banner

The surebert framework is an MVC based framework for PHP 5 and the surebert javascript toolkit. It was developed by Paul Visco and is used by Roswell Park Cancer Institute for internal and external development.

Getting Started

Its not easier than ever

  1. SVN the site to the server you are going to be serving from
    svn export http://surebert.com/svn/framework/trunk YOUR_PROJECT
    
  2. Make sure to point your your site root to the public folder of your site
    sudo nano /etc/httpd/conf/httpd-vhosts.conf
    
    //and add a virtual host for your site
    <VirtualHost *:80>
            ServerName YOURAPP.roswellpark.org
            #this is an additional header alias
            ServerAlias YOURAPP 
            DocumentRoot /PATH/TO/YOUR_PROJECT/public
            CustomLog /PATH/TO//YOUR_PROJECT_access.log combined
            ErrorLog  /PATH/TO//YOUR_PROJECT_error.log
    </VirtualHost>
    
    
  3. restart the web server, to pick up your vhost config
    //on CENTOS RHEL
    sudo /sbin/service httpd restart
    //on mac
    sudo apachectl restart
    
  4. If you don't already have you DNS setup as per the ServerName in the vhosts config above, then go ahead and edit your hosts file to include YOURAPP at SERVER_IP
    //ON UNIX /etc/hosts
    //ON WINDOWS /windows/system32/drivers/etc/hosts 
    //add your host
    #SERVER_IP       YOURAPP
    127.0.0.1		 myapp
    

Need help using the javascript part of the surebert framework? Visit the doc!!

Download extra framework classes

Subversion Instructions

cd YOUR_WEB_APP/private/framework

svn list http://surebert.com/svn/sb_classes/trunk

svn export http://surebert.com/svn/sb_classes/trunk/sb_Strings.php