Browsing the archives for the CakePHP category

Workshops de CakePHP em Belo Horizonte

Category CakePHP

O Daniel e o Cadu, da 2km Interativa!, estarão realizando durante os meses de Abril, Maio e Junho alguns workshops gratuitos de CakePHP na capital de Minas Gerais, Belo Horizonte.

Segue abaixo o convite feito por eles e para mais informações acesse o hotsite dos workshops.

Olá,

Minha empresa (www.2km.com.br) tem desenvolvido diversos projetos com CakePHP.

Começamos a desenvolver utilizando o cake em 2006, na ocasião trabalhava junto com meu atual sócio (Cadu) na empresa Weblife, desenvolvíamos um sistema de inclusão digital que é utilizado em Minas Gerais e em Brasilia, utilizamos o cake integrado com o  LMS, o cake fazia somente uma atualização de cadastro dos usuários que logavam no sistema.

A 2km foi criada pelo Cadu em 2000, eu entrei como sócio em junho de 2008. Desde que entrei na sociedade desenvolvemos 20 projetos, sendo que só foi possível pelo alta produtividade utilizando o cake.

Estamos oferecendo cursos de CakePHP e para inauguração dos cursos vamos fazer uma série de workshops gratuitos.

Segue abaixo a lista com os assuntos e datas dos workshops:

1 – Desenvolvimento ágil com o CakePHP – 04/04/2009 às 10h (Inscrições encerradas!)
2 – Bake, o seu melhor amigo ;) – 02/05/2009
3 – Criando e consumindo Webservices com o CakePHP (REST) – 06/06/2009

O número de vagas é limitado, para se inscrever mandar e-mail para contato@2km.com.br com os dados: nome, telefone de contato, e-mail e qual workshop deseja participar.

Atenciosamente,
Daniel B. R. Golgher

Comments3 Comments

CakeFest #3 – Berlin, July 2009

Category CakeFest, CakePHP

The half-yearly CakePHP Festival will happen this time on Berlin at July 9-12 2009. It is a good chance to meet CakePHP Core Developers and prominent community members, which are full of wisdom to cativate and share experience with us.
I had the chance to went to the CakeFest Argentina ’08 and I can tell you is really a great event, don’t waste time and money going to cinema, buy now your ticket and fly over Berlin!

http://cakefest.org/themed/berlin09/img/badges/cakefest_berlin_offwhite_huge.png

Unfortunetly I will not be there to enjoy this event, but I’m sure I’ll be on the next CakeFest.

Tickets are now available – I don’t know the ticket price, but you can participate of a contest that is giving one free pass.
Speaker selection in progress – if you live on Berlin or near of Berlin you can proprose a talk.

CommentsNo Comments

Speeding up Requests with Reverse Routing Caching

Category CakePHP
This issue has been discussed by Tim and Matt in recent days and people got some performance changes.
From this I created an improved version of the AppHelper from Matt. My version is based on criteria cache.
For example, you can cache all back-end urls separated from the front-end urls using the criteria ‘prefix’.
Also, different from Matt version, it will use a separated cache config ‘_app_urls_’.
Below the code:
Update¹: I’ve updated the code to cache full urls properly. Thanks to Orcar for this catch.
<?php

class AppHelper extends Helper {
	public $_cache = array();
	public $_key = '';
	public $_criteria = array('prefix');
	public $_extras = array();
	public $_paramFields = array('controller', 'plugin', 'action', 'prefix');

	public function beforeRender() {
		if (is_a($this, 'HtmlHelper')) {
			$keys = array_intersect_key($this->params, array_combine($this->_criteria, $this->_criteria));
			$this->_key = 'url_map_' . implode('_', $keys);

			$this->_cache = Cache::read($this->_key, '_app_urls_');
			$this->_extras = array_intersect_key($this->params, array_combine($this->_paramFields, $this->_paramFields));
		}
	}

	public function afterLayout() {
		if (is_a($this, 'HtmlHelper')) {
			Cache::write($this->_key, $this->_cache, '_app_urls_');
		}
	}

	public function url($url = null, $full = false) {
		$keyUrl = $url;
		if (is_array($keyUrl)) {
			$keyUrl += $this->_extras;
			$keyUrl['full'] = $full;
		}

		$key = md5(serialize($keyUrl));
		if (!empty($this->_cache[$key])) {
			return $this->_cache[$key];
		}

		$url = parent::url($url, $full);
		$this->_cache[$key] = $url;

		return $url;
	}
}
Comments5 Comments
« Older Posts
Newer Posts »