-
Notifications
You must be signed in to change notification settings - Fork 0
andreas22/CMS_MVC
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Created By: Andreas Christodoulou First Release: 12/05/2012 Website: http://www.digitzone.net Description: The application was found in the below url started by Seven Kevins using the MVC design pattern and I improve it by adding Smarty Template engine reading from a configuration ini file Url: http://www.phpro.org/tutorials/Model-View-Controller-MVC.html /****************************************************************************/ * The MIT License (MIT) ****************************************************************************/ * Copyright (c) <2012> <Andreas Christodoulou> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to permit * persons to whom the Software is furnished to do so, subject to the * following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. /****************************************************************************/ HOW TO INSTALL THE APPLICATION 1. PHP Version 5.3.0 > 2. rewrite_module must be enable on apache server 3. Add the following line inside httpd.conf (this is for the application to know what configuration to use dev/pro) -----> SetEnv APPLICATION_ENV "development" See sample below: <VirtualHost 127.0.0.1:80> ServerAdmin [email protected] DocumentRoot "C:\\wamp\\www\\CMS_MVC_1.0" SetEnv APPLICATION_ENV "development" ServerName development.com </VirtualHost> 4. Copy/paste the content of directory [public_html] into the public folder, that can be www or public that is accessible through the browser. 5. Copy/paste the directory [app] outside of the www or public that is not accessible through the browser for security reason, no need to expose the application to the visitors. 6. change permissions of folder views_c to [chmod -r 777 views_c] 6. Browse the application [Default] http://localhost/CMS_MVC_1.0/ *It will make a call to app/controllers/indexController.php and as no action is defined on url parameters it will call the index() method by default. http://localhost/CMS_MVC_1.0/blog/view URL Format: [www]/[controller]/[action] [www] http://localhost/CMS_MVC_1.0/ [controller] blog [action] view
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published