Assembla home | Assembla project page
 

Changeset 71

Show
Ignore:
Timestamp:
06/20/07 17:01:26 (1 year ago)
Author:
digitalspaghetti
Message:

Fixing utf8 behaviour problems

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branch/app_model.php

    r56 r71  
    4141class AppModel extends Model{ 
    4242         
    43         /** Default behaviours used in Webrocket 
     43        /** Default behaviors used in Webrocket 
    4444         * 
    4545         *      Utf8 - Converts characters to UTF-8 on save 
    4646         *      Containable - This allows associations to unbind associations from a model recursively on the fly. 
    4747         */ 
    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)),*/ 
    5249                                                'Containable' 
    5350        ); 
  • branch/controllers/menus_controller.php

    r67 r71  
    3333        } 
    3434 
    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        { 
    4637                if(!empty($this->data)) { 
    4738                        $this->cleanUpFields(); 
     
    5445                        } 
    5546                } 
     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')); 
    5655        } 
    5756 
  • branch/views/layouts/default.ctp

    r69 r71  
    1717</head> 
    1818<body class="jamal"> 
    19 <div id="doc2" class="yui-t1"> 
     19<div id="doc3" class="yui-t2"> 
    2020   <div id="hd"><h1>YUI: CSS Grid Builder</h1></div> 
    2121   <div id="bd">