Tag: PHP

Build a simple website with Silex

Update: Silex has been deprecated in June 2018 in favor of Symfony. I love static* websites. They’re usually faster to develop, smaller, require no database or backend and are faster to load. Of course they require more work to maintain and tweak at first, but if you’re a developer, these things should be pretty entertaining or at the very least, straightforward. There are many options out there for building static websites; both free, like Anchor, Sculpin and Stacey; and paid, like Kirby and Statamic, among many others, like Silex. This is a good moment to tell you that I’m aware of the difference of static websites vs flat-file CMSs […]

Read entry

Laravel Homestead: multiple projects, one VM

Vagrant is great to isolate a development environment inside a VM. However, after a while you can find you have a bunch of heavy VMs that share the same characteristics, each one for a simple PHP project. Enter Laravel Homestead In these cases, you can safely use Laravel Homestead. Homestead is a Vagrant box pre-configured with an Nginx web server, PHP 5.6, MySQL, Postgres, Redis, Memcached, and other stuff to make development easier and faster. The documentation is pretty clear and in a few steps you can have a working development environment, where you can add multiple projects. Chek it out: Laravel Homestead Update: Also, I recently […]

Read entry

Doctrine 2

Últimamente estuve trabajando bastante con CodeIgniter en conjunto con el ORM de Doctrine 1.2 para simplificar el acceso a datos y dar más poder que el Active Record que implementa el framework. Hoy me topé con una presentación muy interesante de lo que traerá la versión 2, que aprovecha todo el potencial de PHP 5.3. Una de las cosas más novedosas es el uso de namespaces y “annotations” para declarar una clase como entidad, sin tener que extender de una clase base: <?php namespace Entities; /** * @Entity @Table(name=”users”) */ class User { /** @Id @Column(type=”integer”) @GeneratedValue */ private $id; /** […]

Read entry

Nace CodeIgniter Reactor

EllisLab, Inc., la empresa responsable y creadora de el framework PHP CodeIgniter anunció que a partir de el año que viene el desarrollo del mismo se dividirá en dos ramas: CodeIgniter Core será mantenida por la empresa e incorporará cambios de la segunda rama, a un ritmo más lento, para adaptarse al ambiente empresarial. CodeIgniter Reactor será la rama mantenida por la comunidad, guiada por seis ingenieros voluntarios y apadrinada por EllisLab. Esta rama tendrá un desarrollo más dinámico. Eventualmente los cambios implementados en Reactor se implementarían en Core, una vez que estén suficientemente probados y sean aceptados por la […]

Read entry

Friendly URLs in XAMPP

Update: this post is pretty old. I recommend you give Local a try. A very common requirement for today’s apps is having “friendly” or clean URLs. We can achieve that easily in XAMPP, following these steps: First, enable Apache’s mod_rewrite module: Edit httpd.conf file under [xampp-install-directory]/apache/conf. On Windows, that’s typically C:\xampp. Uncomment:#LoadModule rewrite_module modules/mod_rewrite.so So it stays:LoadModule rewrite_module modules/mod_rewrite.so Lastly, search for AllowOverride None and replace with AllowOverride All. In order for the changes to take effect, we need to restart the server. Source: Murfitt.net http://murfitt.net/blog/dan/2007/10/04/xampp-and-modrewrite-getting-clean-urls-work

Read entry