Re: Re: HowTo Change view template?

2006-09-15 Thread Andreas Waidelich

Did you have a look at elements? (http://manual.cakephp.org/chapter/views)

2006/9/15, nate [EMAIL PROTECTED]:

 // Controller:

 function view ( ) {
 $this-render(view_std);
 }


 



-- 

e [EMAIL PROTECTED]
w http://andreas-waidelich.de
m +49.177.423 09 48

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: The MySQL UTF8 Issue

2006-09-04 Thread Andreas Waidelich

to reduce the number of SET NAMES queries add a static boolean
variable to your AppModel an set it to false. Check the value of the
variable in your constructor and execute SET NAMES only, if it has not
been done before. E.g.

class AppModel extends Model{
static $utf8IsSet = false;

function __construct(){
if(!self::$utf8IsSet) {
$this-execute(SET NAMES 'utf8');
self::$utf8IsSet = true;
}
parent::__construct();
}
}


-- 

e [EMAIL PROTECTED]
w http://andreas-waidelich.de

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: The MySQL UTF8 Issue

2006-09-04 Thread Andreas Waidelich

sounds good. looking forward to Cake 1.2.

2006/9/4, nate [EMAIL PROTECTED]:

 Cake 1.2 now supports this natively.  Just add 'encoding' = 'UTF-8' to
 your database configuration and the querying is taken care of
 automatically at the database level.


 



-- 

e [EMAIL PROTECTED]
w http://andreas-waidelich.de
m +49.177.423 09 48

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: cake setup -- does it have to be so difficult?

2006-08-31 Thread Andreas Waidelich

I had no problem setting up cake under OSX. The cake core resides in
~/Library/cake and the apps in ~/Sites. I am using the PHP Package
from here[1] and the offical MySQL for Mac. The only thing you have to
look for is the permissions of the Library folder.

1: http://www.entropy.ch/software/macosx/php/

Andreas

2006/8/31, kain [EMAIL PROTECTED]:


 stevenL wrote:
  Thanks. Of course I read the manual. Over and over...
 
  I was previouswy installing Cake inside the Sites folder.
  So I am trying your method of placing a folder for cake inside
  /Library/WebServer/Documents. When I visit the cake index file there
  it's the same problem, I get the cake page but I can see that it is not
  finding the CSS file (page is unstyled).
 
  If I set AllowOverride to All in httpd.conf, the page breaks and I get
  a bad request error. Any clues?

 I'm on Mac too, try to uses MAMP (search google)
 copy the cakephp zip archive in htdocs, decompress it, you will notice
 that there is a folder named cakephp_, go to your shell, cd into
 htdocs, then
 mv cakephp_xxx/* .
 mv cakephp_xxx/.htaccess .

 have a try.

 --
 kain
 http://www.cakephpforum.com


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: The MySQL UTF8 Issue

2006-04-11 Thread Andreas Waidelich

I used my AppModel to solve the issue.

function __construct()
{
$this-execute(SET NAMES 'utf8');
parent::__construct();

}

2006/4/11, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Thanks for everyone. I have made the ticket for this problem.


 



--

e [EMAIL PROTECTED]
w http://andreas-waidelich.de

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: The MySQL UTF8 Issue

2006-04-11 Thread Andreas Waidelich

You just have to do it once in your AppModel (located in your
application's root directory).

my AppModel looks like this:

class AppModel extends Model
{
  function __construct()
  {
$this-execute(SET NAMES 'UTF8');
parent::__construct();
  }
}

2006/4/11, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Andreas:
 Is any Model should add  $this-execute(SET NAMES 'utf8'); ?
Or only one model is enough?


 



--

e [EMAIL PROTECTED]
w http://andreas-waidelich.de

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: The MySQL UTF8 Issue

2006-04-11 Thread Andreas Waidelich

Can you paste your code, please.

2006/4/11, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Andreas:
 When I add the __construct() function into my model. I got this error:

 Fatal error: Call to a member function fetchAll() on a non-object in
 D:\php-5.0.4-Win32\PHP_Script\PHP_CAKE\cake\libs\model\model_php5.php
 on line 1143

 I don't know why.


 



--

e [EMAIL PROTECTED]
w http://andreas-waidelich.de
m +49.177.423 09 48

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---