Writing is liberating, writing is a way of learning, writing provokes endorphins. Therefore, I like to write sometimes.

Invalid controller specified - Zend Framework

Saturday, August 30th, 2008

I just lost some time doing the WTF dance, so I’m taking a few minutes to make this note for future reference. Also, because I have a very fragile memory.

One of the common errors that new users of ZF get, is the “Invalid controller specified” error. Which means exactly that. But what happens when you did make sure that you setup the controller directory, and you created the controller in that place?

The answer is a question: are you following the ZF Controller naming conventions?

Here they are for your enjoyment:

For a controller to be resolvable, its filename must be in the following format:

XxxxxxxxController.php

where “X” represents any capitalized letter, and “x” any lowercase letter.

So, let’s say you have a controller that provides SOAP functionality: you can’t name it SOAPController.php, you must name it SoapController.php. A very small difference to have in mind that can save you from multiple WTFs. This information refers only to filenames. Not the class names that are in the code.

Hopefully, by doing this little post, this knowledge has been imprinted on my brain. I have my doubts.

How to embed flash content in web pages (for the busy person)

Thursday, August 21st, 2008

Go here and grab the latest SWFObject files.

Then head to the online generator.

Generate.

Copy & paste, and you are set.

ejabberd doesn’t run after apt-get install ejabberd

Monday, August 18th, 2008

This is on Ubuntu. Edit /etc/ejabberd/ejabberd.cfg and make sure that the host in:

CODE:
  1. %% Admin user
  2. {acl, admin, {user, "nemo", "ns-interns02"}}.
  3.  
  4. %% Hostname
  5. {hosts, ["ns-interns02"]}.

is a valid DNS name. I didn't try with with the default value of localhost.