Re: What locale code to use when using Translate behavior?

2009-10-13 Thread leop
Let's say I want to get the German or Korean locale code, is there an easy way of getting them? Like a function perhaps? Get it from where? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: tree behaviour - remove from tree

2009-10-12 Thread leop
Thanks for the reply, Brian. Peculiarly, Rumpelstiltskin seems to have been working over the weekend as this now functions. For anybody else's reference, the syntax is: $this-Node-removeFromTree($id,true); // deletes parent and moves children up one level. or

Re: Netbeans CakePHP Bundle

2009-10-09 Thread leop
@Paul I've recently been trying NetBeans again and noticed the problems you describe. On the Mac, installing the latest updates (there were three) did the job. On Ubuntu, I moved up to 6.8 and that solved it. @evilbloodydemon I haven't tried this bundle yet, but when I do I'll report back On 14

Re: Routing offsite

2009-09-25 Thread leop
Okay, sorted. I did it this way: RedirectMatch ([A-Za-z0-9-]+)\.html$ http://website.co.uk/$1.html I used the alphanum regexp instead of (*.) in order to drop the cake webroot portion of the URL, i.e. only return the portion after the final '/' On 25 Sep, 12:12, leo

Re: Trouble with installation

2009-09-25 Thread leop
I had a problem with Ubuntu as well, but I think you are passed this stage: To enable mod rewrite, you need to add a symbolic link to the module definition file, which lives in /etc/apache2/mods-available, to the folder: /etc/apache2/mods-enabled. Do this by first changing to the mods-enabled

Re: Trouble with installation

2009-09-25 Thread leop
If you are, then make sure that you have .htaccess files in all the right places. I have found that Ubuntu often doesn't copy them with the other stuff (usually just the one in the root of the structure you're copying). You shouldn't need to do anything with permissions on the cake folder as it

Re: containable behaviour in app_model

2009-08-21 Thread leop
If there's no significant overhead, it makes me wonder why it isn't there by default. On Aug 21, 1:53 pm, Bert Van den Brande cyr...@gmail.com wrote: Can't think of any reason :) On Fri, Aug 21, 2009 at 2:16 PM, leoponton@gmail.com wrote: Is there any reason why it wouldn't be a good

Re: knowledge base component

2009-08-07 Thread leop
Yep, my mistake. what I meant when I asked was... Does anyone know of a knowledge base / wiki application built with Cake? On Aug 6, 12:00 am, Miles J mileswjohn...@gmail.com wrote: What your asking for seems more like a full blown plugin, not a component. I for one havent heard of anything

Re: Free Cake Ebook : How to build your own blog from scratch

2009-08-03 Thread leop
so no - write in english or post in in the corresponding Malaysian cakePhp forum thats my opinion The post was in English about something written in Malay. by the way: every Malaysian developer who wants to try out cake would need to understand English anyway And therefore, most Malaysian

Re: Free Cake Ebook : How to build your own blog from scratch

2009-08-03 Thread leop
@ JAmesF Sources have sources. It's a tree thing. Wikipedia was my source. Researchers and their studies/articles/whatever are, according to your argument, not sources as they cite information gathered from another source. It goes on. source: a person, book, or document that provides

Re: Free Cake Ebook : How to build your own blog from scratch

2009-07-30 Thread leop
i dont think a lot of people are able to read that - or know the language at all i wonder... why not using ENGLISH in the first place? I can only assume you made this comment to raise some hackles. While we're at it why don't we just abolish German (I assume that's your first language)?

Re: bug? $html-addCrumb()

2009-07-29 Thread leop
What I am saying is that each time I view another page, the $html- _crumbs array is redeclared. There is no trail of crumbs for Hansel and Gretel to follow, only the last one they dropped. I have used this before with great success, but not now. I want (and expect) something like:

Re: Cakephp multilingual

2009-07-29 Thread leop
I'm not sure I fully understand you here. The $currLang routine is just there to switch the language between link text. It's really just aesthetic. I don't do any language switching on the database. This just pulls messages out of the po files in the required language. Leo

Re: Cakephp multilingual

2009-07-28 Thread leop
that there is one in my fragment). L On Jul 28, 7:29 am, Yannis ikasso...@gmail.com wrote: Hi leop, Thanks for the code. I've used it but I get the following error: Warning (2): Cannot modify header information - headers already sent by (output started at .../config/routes.php:49) [CORE/cake/libs

Re: Cakephp multilingual

2009-07-28 Thread leop
Do I have to add something else to change the database locale? No, I don't think so. That's all I have! I can only suggest that you look carefully at the folder names and the two or three letter acronyms to ensure that you have the correct ones in the correct places. Start with just two

Re: i18n and LIKE conditions

2009-07-28 Thread leop
That query won't work because, as you have described, the column name does not exist on the table product. Without seeing your datamodel, it's impossible to suggest a solution, but I suggest you look at using 'containable'. Leo --~--~-~--~~~---~--~~ You received

Re: bread crumbs problem

2009-07-27 Thread leop
No ideas on this? I'm beginning to wonder if it's a bug. L On 17 July, 14:21, leo ponton@gmail.com wrote: Some time ago I use the bread crumb functionality of HtmlHelper without a great deal of difficulty. Now, a year or so on, I'm at it again. This time I'm developing in a full

Re: Cakephp multilingual

2009-07-27 Thread leop
Try this link: http://tinyurl.com/4w3d49 (p28n, the top to bottom persistent internationalization tutorial.) That's what I used. Switching languages can be awkward, depending on how and where you're doing it. I'm looking out some examples for you - might be a little while though as I'm working

Re: Cakephp multilingual

2009-07-27 Thread leop
The site is one I did a while back. I will have access to the code when I get home - about 3-4 hours from the timestamp on this comment. I used poedit to do the extraction, not the console as, like you, I found it very buggy. The rest I'll check later and get back to you. L

Re: Model association problem

2009-07-17 Thread leop
The database table names ought to be plural, viz: MEDICINAL_DEVICES, USERS etc. Cake is intelligent enough to handle plurals such as COMPANIES (COMPANY). In the model definitions, the model will be the capitalised singular version of the tablename, e.g. User Foreign keys are singular, e.g.

Re: Cake Sites Stats

2009-02-26 Thread leop
@ Mark - Thanks. I'm just interested to know how many downloads convert into real world applications. As for the actual figures, it might be appropriate to list the #downloads on the cakephp.org landing page, as well as the size of the Google community. These are numbers that sell. I skipped

Re: Cake Sites Stats

2009-02-25 Thread leop
Well this group, for example has 11311 members. How many times has CakePHP been downloaded? How many sites that aren't scratch sites are known to have been built with CakePHP? Are there any BIG users - Joomla list theirs on their site: MTV, UN etc. It really wasn't such a difficult question. I

Re: Cake Sites Stats

2009-02-25 Thread leop
Are there any reliable statistics for real sites built with Cake? #1 reliable does not go well with statistics ;) Number of downloads is a reliable statistic. #2 I don't really understand what you mean by *real* for that matter I am not familiar with *unreal* sites either real: actually

Re: CMS opinion?

2009-02-24 Thread leop
On Feb 24, 11:48 pm, BrendonKoz brendon...@hotmail.com wrote: Can't Magento be used as a CMS as well?   Well, it _is_ a CMS, albeit a specialized one. Cake can also be used to manage certain areas of the other packages if you modify the useTable information.  There were a few blog posts I

Re: First time user :-D

2009-02-24 Thread leop
http://www.website.com/product.xml?x=.$this-$data[$this-$name]['value1'].y=.$this-$data[$this-$name]['val ue2']; I see whitespace. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this