Wednesday, September 03, 2008

Multilingual project, i18n, poEdit - in CakePHP

PoEdit - excellent piece for the "transfer" in the draft texts. Installed - editor works, but there are features.

First, poEdit unwanted collect data from catalogues CakePHP - reported that nothing was found.

Secondly, while maintaining po / mo files - reported error (but not scared, the files still persist).

The first had to deal means CakePHP:

bash cake i18n - ask the location project, and the cake itself forms the pot file for poEdit.

We are talking about poEdit for MacOS.

Labels: , , , ,

Thursday, July 10, 2008

MAMP & cake (terminal)

YESS! I did it! ;-)

1. sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock
2. And 1 hour looking for bug, and found mistake in database.php

After some experiments I put host => 127.0.0.1
And forget about it ;-)
Now all cool -> host -> localhost
And my cake bash baker work fine

I am happy! I am like unixman ;-))))

Labels: , , ,

Hm. Cake 1.2RC2 & baker

It's very strange, but I cann't use this cake baker under MacOS ;-(

If I starting terminal cake (from pack dmg) I can read only help and resume: Process completed. And could not put any symbol

If I starting terminal, and go to my site directory and run:

bash cake bake

I can create "skeleton" of my web application in directory myapp. Now cake not want to use this subdir and I'm moving files into /cake/console/..

After this I type: bash cake bake
& setup database.php setup. Of couse, I know - this file has not mistakes (Yep, I'm copy database.php into site/app/config/ and read this "Cake is able to connect to database". So - My database setup is nice, and MySQL server work properly.

So. I returning into cake/console, and run bash cake bake - for creating model. But, after I choose database config "default" (yep My database config is really calling default) I get 3 warning about impossible to connect to database throw sockets and get finally message about "database haven't any tables" but this is wrong! I have tables.

And of cause, I'm using MAMP

Where is mistake? I don't know ;-(

Labels: , , , ,

Tuesday, July 08, 2008

Cake...dmg & .htaccess

After my switching into MacOS I'm start to use cakephp.dmg with latest version of this wonderful framework. But I found some troubles with use this image (dmg).

When MacOS mount cake.dmg you can drag & copy content of framework into your project. Easy? Of cause! But you cann't drag .htaccess from the root of the cakephp. 

May be it's a stupid problem, and after setup finder folder view you can move even invisible files, but I don't know how to made this. After all I'm install muCommander and copying this .htaccess file from mu. How to make this copy more easy?

Yes, .htaccess from /app/ & /app/webroot - copying to project without any problem.

Labels: , , ,