I was googling around to find a good way to delete row from a column and automatically cascade to parent table. After reading a lot of bullshit, found the solution with the code above:
My Unit Model (Unit.php)
<?php
class Unit extends Zend_Db_Table_Abstract
{
protected $_keys = array(‘id’,’addressId’);
protected $_name = ‘unit’;
protected $_sequence = [...]
It’s quite funny when the most complex problem is solved with the easiest solution. I just found myself crazy about how to connect to database from a Controller Helper so I could get the Roles and the Resources to implement the ACL. Well, it turns out that if you want something to be bootstrapped right [...]
I’ve been posting a lot about modules and Zend Framework lately. I’m really amazed about this product and it’s helping me to develop a good CMS. I’m sharing the application and library folder of the CMS with different projects and not every project has every module installed, because of that, I can’t bootstrap automatically since [...]
I’m not really into this database thing. I study about MySQL just for the basics. I’m even considering to move Doctrine 2 into my whole Zend application. While I don’t do that, I have to figure out how to implement the functionality I described [...]
Finally, after finding out how to have module based configuration, I could implement what I say is the most useful method for application development: creating database table on demand! Although I lost an entire night for this, it’s actually really simple. All you need [...]
Afther thousands of ‘Googling’ for how to implement module specific configuration, I got into this post from Jeroen Keppens about how to implement a resource in bootstrap to load configuration files stored in module’s folder. It’s really, really good. But I read lots of times and [...]
Trazido pela Tempo Real Eventos, o profissional e escritor Flavio Lisboa apresenta os cursos Zend I e Zend II no Rio de Janeiro. Os eventos ainda não tem data definida, pois deve haver um quórum mínimo de 20 pessoas por curso para que se realizem. Eu, Henrique Mattos, fiz os dois [...]
Articles (English)
- Database (4)
- MySQL (3)
- Front-End (1)
- Management (2)
- PHP (12)
- Wordpress (1)
- Zend Framework (7)
- Tips (3)
- Database (4)
Newsletter SignUp

