Friday, July 13, 2007

I Find The Own Bug in Code

It's very strange, but it's still don't solve this problem.

So. I have 3 copy of sites in my hosting (equal code, equal MySQL, etc).

But present small difference...

In two copies of code function $this->{$Model}->SetId($id); working properly...

in one copy - doesn't.

Why? I don't know. Version of CakePHP 1.15.... May be some bug in code? Unnecessary space, comma? I don't know.

Full week I hunting for this bug ;-) And only I'm add "//" before SetId construction, I get normal working.

(I mean bug was: empty records was adding to table, without any system or any conforming.

Now code work (without SetId). Yep. Only one week ;-))

Wednesday, July 11, 2007

Tools For CakePHP

It's a small post about my tools, what I use for development my site in CakePHP style.

So. First of all about mu workplace: it's standart PC (born in 2004 year ;-) with Windows 2000 on board (yes, yes, I understand, but it's corporative style & I cann't change anything ;(

Editor: I use notepad++. He is small, useful, freeware. Yep. He hasn't a lot of feature. but if you write code on CakePHP framework, you must know - it's not necessary ;-)) Notepad++ is really useful tool in my comp.

Development: I use Denver. It's small self-install package with PHP, MySQL & apache. (doesn't work at Vista!). just 4-5 Mb, one-two clicks and I have useful local websites for coding, testing etc. Don't forget about proxy! ;-) If you made local site with same name like your real site, you will less a lot time, why understand: "I made change in code... Why it's not working???" like me ;-) Don't forget about it.

And last. I use FAR manager for uploading/downloading. Yep it's not so beauty like standard windows application, but small & useful. And free for people living in exUSSR ;-)

Well.

Ops! Yep, I am using chm version of CakePHP manual, PHP manual. But now CakePHP manual is too old for coding (but very nice for newbie and understanding "how it's works???").

That's all! Have a nice coding & sorry again about my poor english

Tuesday, July 10, 2007

News of CakePHP!

Hi to everyone!

I'm so sorry for long time without any posts. But, I hope, from this time I will write pften ;-)

So. If you don't visit Official Site of CakePHP - do it now. And you can get fresh version of CakePHP ;-)

I'm already get fresh 1.2 alpha, and reading in changes about next 1.2 will be BETA.

I think - it's good time to start learning 1.2 version, because is too many differences between 1.1 & 1.2 version, and when (I think about september/october) 1.2 version will have status: release, we had a lot knowledges about 1.2 and use them in full power.

Well, I think next my posting will be oriented for newbie in Cake and newbie in 1.2 (like me ;-)))

My last works in CakePHP use standard features, standard function. I understand, all around is Web 2.0, Web 3.0 etc. But my clients always say: "We want some new, difference from other" but, when our small web-company finishing project, they say "All good, but it's so unusual... Please make it like at site .... " ;-)

Well, that's all, folks! I'm going to learn 1.2

Labels: , , ,