Changeset 19968 for events/phpframework
- Timestamp:
- 09/26/08 19:12:38 (5 years ago)
- Location:
- events/phpframework/akelos/trunk
- Files:
-
- 1 added
- 8 modified
-
app/application_controller.php (modified) (1 diff)
-
app/controllers/page_controller.php (modified) (1 diff)
-
app/controllers/user_controller.php (modified) (3 diffs)
-
app/models/user.php (modified) (1 diff)
-
config/config.php (modified) (1 diff)
-
config/locales/en.php (modified) (1 diff)
-
config/locales/ja.php (modified) (1 diff)
-
config/routes.php (modified) (1 diff)
-
tmp/plugin_repositories.yaml (added)
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/akelos/trunk/app/application_controller.php
r18146 r19968 1 1 <?php 2 3 require_once(AK_LIB_DIR.DS.'AkActionController.php');4 5 /**6 * This file is application-wide controller file. You can put all7 * application-wide controller-related methods here.8 *9 * Add your application-wide methods in the class below, your controllers10 * will inherit them.11 *12 * @package ActionController13 * @subpackage Base14 */15 16 2 class ApplicationController extends AkActionController 17 3 { 4 public function __construct() 5 { 6 parent::__construct(); 7 } 18 8 9 private function isPublic() 10 { 11 } 12 13 private function isLogin() 14 { 15 //tekitou 16 return !empty($this->session['user']); 17 } 19 18 } 20 21 ?> -
events/phpframework/akelos/trunk/app/controllers/page_controller.php
r19947 r19968 3 3 class PageController extends ApplicationController 4 4 { 5 function index()5 public function index() 6 6 { 7 7 } -
events/phpframework/akelos/trunk/app/controllers/user_controller.php
r19938 r19968 6 6 { 7 7 } 8 9 function login() 10 { 11 if (!empty($this->params) && User::login($this->params)) { 12 return $this->renderAction('home'); 13 } 14 } 8 15 9 16 function index() … … 53 60 $this->user =& $this->User->find($this->params['id']); 54 61 if($this->Request->isPost()){ 55 $this->user->destroy(); 62 $this->user->is_deleted = true; 63 $this->user->save(); 56 64 $this->redirectTo(array('action' => 'listing')); 57 65 } … … 59 67 } 60 68 } 61 62 ?> -
events/phpframework/akelos/trunk/app/models/user.php
r19814 r19968 1 1 <?php 2 3 2 class User extends ActiveRecord 4 3 { 4 public static function login($params) 5 { 6 return false; 7 } 5 8 9 public function logout() 10 { 11 return true; 12 } 6 13 } 7 8 ?> -
events/phpframework/akelos/trunk/config/config.php
r19943 r19968 20 20 ); 21 21 unset($common_settings); 22 23 // 0 -> create file, 1 -> use database 24 define('AK_SESSION_HANDLER', 0); 22 25 23 26 // If you want to write/delete/create files or directories using ftp instead of local file -
events/phpframework/akelos/trunk/config/locales/en.php
r19934 r19968 296 296 '; 297 297 298 // 2008-09-26 16:41:57 299 300 301 $dictionary['Invalid filter %filter. Filters need to be a method name or a class implementing a static filter method'] = 'Invalid filter %filter. Filters need to be a method name or a class implementing a static filter method'; 302 298 303 299 304 ?> -
events/phpframework/akelos/trunk/config/locales/ja.php
r19934 r19968 294 294 '; 295 295 296 // 2008-09-26 16:41:57 297 298 299 $dictionary['Invalid filter %filter. Filters need to be a method name or a class implementing a static filter method'] = 'Invalid filter %filter. Filters need to be a method name or a class implementing a static filter method'; 300 296 301 297 302 ?> -
events/phpframework/akelos/trunk/config/routes.php
r19942 r19968 16 16 17 17 $Map->connect('/:controller/:action/:id', array('controller' => 'page', 'action' => 'index')); 18 ?>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)