phork.org
Phork Framework - Manual / Getting Started / Styleguide
http://phork.org/manual/start/styleguide
Phork Framework User Guide. Previous Chapter: Best Practices. There are several recommended practices for writing custom code to work with Phork. Some are required while others are just suggestions. Even though PHP is a loosely typed language, Phork does its best to designate each variable type by using a type of Hungarian notation. The only time this should be ignored is with temporary iterator variables. Example variable names are:. For both the file name and the class name. It is highly recommended th...
phorkit.phork.org
Forgot password on Phork/it
http://phorkit.phork.org/account/password
Have you forgotten your password? Just enter your email address below and we'll email you instructions to help you reset it. This site is powered by Phork.
phork.org
Phork Framework - Manual / Framework Overview / Hook Classes
http://phork.org/manual/overview/hooks
Phork Framework User Guide. Hooks are a way to tie into the bootstrap. When it's run. Phork comes with CommonHooks. Phork/it comes with AccessHooks, and additional hooks can be added to each site in the. Directory. They're run using the CoreEvent. Class, and they can be called at the following points:. Pre run - This hook point is before the controller is determined. Pre initialize - This hook point is before the controller is initialized. Post run - This hook point is after the controller has been run.
phork.org
Phork Framework - Manual / Framework Overview / Models
http://phork.org/manual/overview/models
Phork Framework User Guide. The models are used to work with data (usually from a database) and to gather, validate and save the data. They're generally stored in. And included with AppLoader: includeModel(). Each model contains an iterator object. That stores a set of CoreRecord. Objects (or extensions thereof). They can also contain zero or more CoreModelHelper. Objects to assist with things like validation and loading related data (also known as relations). Table of Contents Page.
phork.org
Phork Framework - Manual / Framework Overview / Routing
http://phork.org/manual/overview/routing
Phork Framework User Guide. The standard routing uses the parsed URL data in the CoreUrl. Object to determine the controller to use from the first URL segment and the method in that controller from the second segment. For example if the URL were. Http:/ www.example.org/foo/bar/. Then the controller would be FooController and the method would be displayBar(). If there is no second segment then the displayIndex(). Routing rules can use regular expressions. ArrConfig['Routes'][' /foo/bar/$'] = '/demo/baz/';.
phork.org
Phork Framework - Manual / Framework Overview / Events
http://phork.org/manual/overview/events
Phork Framework User Guide. Events allow you to predefine one or more callback functions to be executed later on in the application flow. They're handled by the CoreEvent. Class and are used primarily by the bootstrap. They can, of course, be used anywhere else as well. Events which are generally tied into with hooks. Models use events for. Actions. Generally these events are defined in the constructor or a function called from the constructor. Model helpers that use CoreModelHelper.
phorkit.phork.org
Phork/it - FAQ and Help
http://phorkit.phork.org/help
This is a demo site. This site is powered by Phork.
phork.org
Phork Framework - Manual / Getting Started / Structure
http://phork.org/manual/start/structure
Phork Framework User Guide. Previous Chapter: Application Flow. Next Chapter: Best Practices. Table of Contents Page. Core Classes (cont.). Utility Classes (cont.). This site is powered by Phork.
phorkit.phork.org
Sign in to phork/it
http://phorkit.phork.org/account/settings
Sign in with your Phork/it account. Sign in using Facebook or Twitter. Sign in with Facebook. Sign in with Twitter. This site is powered by Phork.
phork.org
Phork Framework - Manual / Framework Overview / Intro
http://phork.org/manual/overview/intro
Phork Framework User Guide. Phork is a Model-View-Controller. Or MVC) framework meaning there's a separation between the logic and the presentation. The most basic Phork installation will be used to map each URL to a controller. The main site file, also known as the front controller, is. All parts of the site should be routed through this file. It's possible to rename index.php to something else. More details can be found in the installation instructions. To add the base Phork directory. The path to the ...