Changeset 71
- Timestamp:
- 06/20/07 17:01:26 (1 year ago)
- Files:
-
- branch/app_model.php (modified) (1 diff)
- branch/controllers/menus_controller.php (modified) (2 diffs)
- branch/models/behaviors/utf8.php (added)
- branch/models/behaviors/utf8_behavior.php (deleted)
- branch/views/layouts/default.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branch/app_model.php
r56 r71 41 41 class AppModel extends Model{ 42 42 43 /** Default behavio urs used in Webrocket43 /** Default behaviors used in Webrocket 44 44 * 45 45 * Utf8 - Converts characters to UTF-8 on save 46 46 * Containable - This allows associations to unbind associations from a model recursively on the fly. 47 47 */ 48 var $actsAs = array('Utf8' => array( 49 'save' => array( 50 'convertTo' => 'UTF-8') 51 ), 48 var $actsAs = array(/*'Utf8' => array('save' => array('convertTo' => 'UTF-8'),'read'=>array('useMbstring'=>false)),*/ 52 49 'Containable' 53 50 ); branch/controllers/menus_controller.php
r67 r71 33 33 } 34 34 35 function admin_add() { 36 37 $sections = $this->Menu->Section->generateList(); 38 $this->set(compact('sections')); 39 40 $access_levels = $this->Group->generateList(null,null,null,'{n}.Group.level', '{n}.Group.name'); 41 $this->set(compact('access_levels')); 42 43 $data = $this->Menu->findAllThreaded(array(null, null, 'Menu.position')); 44 $this->set(compact('data')); 45 35 function admin_add() 36 { 46 37 if(!empty($this->data)) { 47 38 $this->cleanUpFields(); … … 54 45 } 55 46 } 47 48 $sections = $this->Menu->Section->generateList(); 49 $this->set(compact('sections')); 50 51 $this->set('access_levels', $this->Group->generateList(null,null,null,'{n}.Group.level', '{n}.Group.name')); 52 53 $data = $this->Menu->findAllThreaded(array(null, null, 'Menu.position')); 54 $this->set(compact('data')); 56 55 } 57 56 branch/views/layouts/default.ctp
r69 r71 17 17 </head> 18 18 <body class="jamal"> 19 <div id="doc 2" class="yui-t1">19 <div id="doc3" class="yui-t2"> 20 20 <div id="hd"><h1>YUI: CSS Grid Builder</h1></div> 21 21 <div id="bd">