
Mas esse pessoal não perde a oportunidade para tirar um sarro. Foto tirada daqui.









class AppController extends Controller {
var $components = array('Auth');
function beforeFilter() {
// Auth config
$this->Auth->allow(array('action_publica'));
$this->Auth->loginError = __("Usuario nao encontrado", true);
$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
$this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'profile');
}
}
class UsersController extends AppController {
function login() { }
function logout() {
$this->redirect($this->Auth->logout());
}
}
<div class="users">
<?php if ($session->check('Message.auth')):?>
<?php $session->flash('auth'); ?>
<?php endif;?>
<?php echo $form->create('User', array('action' => 'login'));?>
<fieldset>
<legend><? __('Login') ?></legend>
<?= $form->input('username'); ?>
<?= $form->input('password'); ?>
</fieldset>
<?php echo $form->end('Logar');?>
</div>

Com isso você pode sobrescrever o comportamento do php.ini inclusive em configurações mais avançadas. Sei que é redundante, mas como se pode perceber tive que usar o php como módulo para poder proveitar essa diretiva.
<Directory "/caminho/para/o/projeto/">
php_admin_value parametro_do_php_ini "novo_valor"
</Directory>




How Accurate is Accurate Enougth ?Trabalhar com estimativas em horas é muito mais empírico do que matemático. Por isso acredito que os processos ágeis trazem soluções mais proveitosas para todas as partes envolvidas no processo de desenvolvimento: do cliente, que recebe prazos mais reais e o ROI mais cedo, ainda que tenhamos que pensar nos moldes de iterações, o desenvolvedores que vão trabalhar mais focadamente (tendo como tarefa principal fazer só o seu trabalho) e o gerente, que vendo ambas as partes felizes, vão poder dormir mais tranqüilos.
To some extent, all answers are estimates. It's just that some are more accurate than others. So the first question you have to ask yourself when someone asks you for an estimate is the context in which your answer will be taken. Do they need high accuracy, or are they looking for a ballpack figure?
- If your grandmother asks when you will arrive, she's probably wondering whether you lunch do dinner. On the other hand, a diver trapper underwater and running out of air probably internested in an answer down to the second.
- What's the value of π ? If you're wondering how much edging to buy to put around a circular flower bed, then "3" is probably good enought. If you're in school, then may be "22/7" is a good approximation. If you're in NASA, then maybe 12 decimal places will do.
One of the interesting things about estimating is that the units you use make a diference in the interpretation of the result. If you say that something will take about 130 working days, then people will be expecting it to come in pretty close. However, if you say "Oh, about six months" then they know to look for it any time between five and seven months from now. Both numbers represent the same duration, but "130 days" probably implies a higher degree of accuracy than you feel.