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() »

How to move cursor to end of file in vi editor

advertisement

linux, macThe shortcut that move cursor to end of the file in vi editor save my life. I need to add a line at the bottom of a large sql file and moving the cursor to end of the file is a problem if i keep pressing “Down” arrow. With the shortcut to move the cursor to end of the file it save me a lot of time!

To move cursor to end of file in vi editor, follow the steps below:-

Continue reading How to move cursor to end of file in vi editor »

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? »