User Profile
- User
- m3nt0r
- Location
- Germany
- URL
- http://cakealot.com
Recent Articles
Authed - Adds rule based userScope to Auth
If you ever thought it would be nice to let the user know why the login wasn't successful, this component may be right for you.
- Published by m3nt0r 09/21/08 - 20:59
- 13911 views
- 3 comments
Amazon ECS Component
Search, Lookup and Remote Cart management
- Published by m3nt0r 09/18/08 - 17:19
- 8692 views
- 0 comments
Zend Framework Loader Component
A simple wrapper component to Zend_Loader & adds the correct path into your include_path so everything works as expected by Zend Framework.
- Published by m3nt0r 07/07/08 - 05:20
- 10379 views
- 0 comments
TranslationHelper
This uses the HTTP_ACCEPT_LANGUAGE to determine the current users most accepted language. It takes the the first one of all accepted, then looks up the available translations and delivers. If all fails, or no good translation was found, it returns the default string.
- Published by m3nt0r 10/13/06 - 17:16
- 11054 views
- 1 comment
Behaviour.js Helper
Helps you using the Behaviour Javacript in your App. Behaviour can be used to attach Javascript to Elements. With this you can easily avoid using inline-Javascript.
- Published by m3nt0r 10/02/06 - 06:25
- 20510 views
- 8 comments







That's because the conditional model initialization was not properly done. I changed the if/else in the if(empty($args)) section to the following (removed the "continue" aswell).
if (in_array($modelName, $this->modelNames)) {
$Model = & $this->{$modelName};
} else {
$Model = & ClassRegistry::init($modelName);
}
Now, if the model is not present in the controller, it will be initialized and everything works just fine.
Hope this helps.
Inflector::tableize($assocKey).'_count';I suggest to change this to singular form, so that it lines up nicely with other counter cache fields. It's more natural that way.
Inflector::underscore($assocKey).'_count';- Kjell
When the time comes that the iPhone is available in my country, all obvious and cool apps have been build already. I hate not living near the source ;)
I have so many ideas for that toy but i can't do anything right now.. just reading about all the cool stuff others invent. Stop torturing me already! :D
*-- dont take this post too serious --*
Nice read!