Posts under PHP

Symfony: PHP Fatal error: Call to a member function setData()

advertisement

symfonyI just setup a symfony app my new redundancy server but it show “PHP Fatal error: Call to a member function setData()” in my apache error log. What i did is just restore the source code from my subversion server and it shouldn’t have any problem. I suspect there must be something wrong with the app installed in the server.

Continue reading Symfony: PHP Fatal error: Call to a member function setData() »

Symfony 1.4: How to sort foreign key record?

advertisement

symfonyHave been looking for way to sort foreign key records in Symfony 1.4 for few days. I’ve a staff table with a foreign key to comments. Whenever i call the StaffTable->getComments() the records return is not in alphabetical order. Finally i found some helpful tips from a forum (sorry i lost the forum url), and i manage to sort foreign key record with just a line of code. 🙂

To sort foreign key record in Symfony 1.4, follow the steps below:-

Continue reading Symfony 1.4: How to sort foreign key record? »

How to reduce admin generator query in Symfony 1.4

advertisement

symfonyAfter reading symfony 1.4 doc, i manage to reduce admin generator query to a lower number. If u notice, there is very high number of query for admin generator module in table that has many relationship. Luckily, Symfony 1.4 has built a way for us reduce the query easily.

To reduce the admin generator query in symfony 1.4, follow the steps below:-

Continue reading How to reduce admin generator query in Symfony 1.4 »