Search found 6 matches
- Wed Sep 02, 2009 3:29 pm
- Forum: PHP - Code
- Topic: Cakephp newbie here, can't get contact form to work!
- Replies: 5
- Views: 533
Re: Cakephp newbie here, can't get contact form to work!
I supposed saying I 'fixed' it was a bit of a misnomer, actually. It's more like I tried a few random things, and then a different error appeared, and then I managed to take care of the other error, and then this error was suddenly gone. I really wish I knew the answer to this problem...especially s...
- Wed Sep 02, 2009 1:35 pm
- Forum: PHP - Code
- Topic: Cakephp newbie here, can't get contact form to work!
- Replies: 5
- Views: 533
Re: Cakephp newbie here, can't get contact form to work!
Nevermind, fixed it!
- Tue Sep 01, 2009 12:47 pm
- Forum: PHP - Code
- Topic: Cakephp newbie here, can't get contact form to work!
- Replies: 5
- Views: 533
Cakephp newbie here, can't get contact form to work!
Hello, I'm really new to CakePHP, and am trying to get a basic contact form set up for a website. I can get the form itself to appear, but when I try submitting the form, I get this error: Fatal error: Call to undefined method EmailComponent::send() in /home/tastynib/public_html/cake/app/controllers...
- Tue Jul 29, 2008 12:49 pm
- Forum: PHP - Code
- Topic: Letter generator, according to commonly used letters
- Replies: 4
- Views: 376
Re: Letter generator, according to commonly used letters
When I wrote my wordsearch generator (currently broken :( ) I used the frequency of tiles in Scrabble as a basis for the frequency of random letters in the grid. It worked pretty well. Scrabble frequency is a good idea, sure beats trying to use the percentages on the wikipedia page ( http://en.wiki...
- Tue Jul 29, 2008 12:44 pm
- Forum: PHP - Code
- Topic: Letter generator, according to commonly used letters
- Replies: 4
- Views: 376
Re: Letter generator, according to commonly used letters
I think you'd want to have some sort of weighting value assigned to each letter, based on actual frequency. Depending on how accurate you wanted to be, you could do something like a 1 to 5 scale, and split the letters in to 5 tiers, most common to least common, and explode that out in to an array w...
- Tue Jul 29, 2008 11:51 am
- Forum: PHP - Code
- Topic: Letter generator, according to commonly used letters
- Replies: 4
- Views: 376
Letter generator, according to commonly used letters
Hi! So I've currently got a chunk of code I'm working with that generates random letters to fill in extra spaces in a word search puzzle grid. Right now it's just this bit sitting inside a few loops for the random letter generator: $randletter = chr(ord("a") + rand(0, 25)); Everything work...