-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the phpBitsTheater wiki!
I started writing this framework as a means to learn PHP as it was suggested as a means to really understand all the magic of PHP. As I needed to learn what the differences were from PHP 4 to PHP 5 as well as strengthen my grasp of PHP in general, diving into a project like this seemed the ideal learning process. I must say, I learned quite a bit from the experience.
My overall thought process for the design of the framework can be found in the Readme.md as well as here.
The framework comes with two styles of user permissions:
- auth_none: This style will just authorize any and all right checks.
- auth_basic: Permissions / Rights
Once you have re-defined res/templates/Settings::APP_NAMESPACE = 'com_mydomain_mywebapp'; to use your own namespace, you can use the WEBAPP_NAMESPACE constant to refer to it (after site installation, the constant is not defined during the install process). You will want to refer to your classes using the string value of your WEBAPP_NAMESPACE with 'actor\MyActorClass' or 'model\MyModelClass' appended to it; e.g. use com_mydomain_testproject\model\PhonebookModel;. You also have WEBAPP_PATH and WEBAPP_JS to use in case you want them. Please note that WEBAPP_JS is located in app/js and simple minimization instructions are also located there (including a Windows batch file). Example use from inside a view.php file: $w .= '<script type="text/javascript" src="'.WEBAPP_JS.'my_js_stuff.js"></script>';
Logo (http://imgur.com/DAqzg7E)