Error messages tell you where the problem was discovered, but that is often not where it was cause.Книга ThinkPython by Allen B. Downey
Линки:
http://www.greenteapress.com/thinkpython/
Барахло/Хлам/PHP/Харьков/Феодосия/Я
Error messages tell you where the problem was discovered, but that is often not where it was cause.Книга ThinkPython by Allen B. Downey
sfDimensionsPlugin allows you to customize the behavior of your symfony application depending on many factors. You can adjust the configuration, template selection, and action behavior based on a combination of dimensions chosen by you. For instance, you can have a different navigation structure based on the country of the user, or a different logo URL based on the current skin. These factors that affect the behavior (in this case, the country of the user and the skin selected) are the dimensions, and you may define as many as you wish.Теперь спать, а завтра утром будем смотреть и примерять.
public function executeIndex()
{
$this->getResponse()->setContentType('image/jpeg');
$g = new Captcha($this->getUser()->getAttribute('captcha'));
print($g->plot());
}
public function executeIndex()
{
$this->getResponse()->setContentType('image/jpeg');
$g = new Captcha($this->getUser()->getAttribute('captcha'));
print($g->plot());
return sfView::NONE;
}