|
UserGettingStarted
This is the getting started article for developers using the framework.
Featured, Phase-Deploy, HowTo IntroductionThis is the getting started article for developers who are using the framework for their websites. The article will cover manual set up for the environment and how to configure the application for it to work. This guide applies to the following releases:
DownloadingHead over to the Download List and download the framework package in a ZIP file. PrerequisitesphpRaise requires the following in order for it to work properly:
StructureIn the package, there are 2 folders to extract in order for the framework and application to work. Here's a brief overall folder structure explanation:
InstallationExtracting FrameworkFirstly, you will need to extract the framework folder and its content, "phpraise", to a non-public accessible location on the web server. The folder can be extracted to "C:\phpraise", "/usr/bin/phpraise" or any non-public accessible location on the disk, where your PHP application from your server root folder can access. Remember the path name to the folder as we will need to use it to configure the application later. Extracting Application StructureNext, extract the contents of the application folder, "public", to your Web Browser Hypertext Document root. Configuring ApplicationOpen up the Front Controller file index.php on your application root folder. Modify the include statement, which is originally: include('../phpraise/Raise.php');Change the pathname of the include statement to point to where you have put the framework at, e.g. "C:\phpraise\Raise.php" or "/usr/bin/phpraise/Raise.php". Then proceed to the "config" folder in the framework holder. Open up phpRaise.ini and modify the following entries:
Running your applicationAfter configuring your application, you should be able to run it via your web browser. On the homepage, something like this should show up:
This is the current default view of the homepage. Executing Framework Tests (optional)If you wish to run the tests for phpRaise, you can extract the "test" folder and put it in your web server root. Run the tests through your web browser and something like this should show up:
Simply enter the pathname to the Framework folder's Raise.php file and submit the form. This action is only required for the first time. If the configuration is done properly, the tests will run and this will show up:
|