Posts Tagged ‘symfony’

Book review

Tuesday, October 20th, 2009

I have just ordered the Symfony 1.3 Web Application Development. I plan to write a short review of this book as soon as I have read it, so if you are interested in learning more about the Symfony PHP framework stay tuned.

There are no tasks defined in the “product” namespace.

Sunday, April 5th, 2009

As you might know, I’m using the symfony PHP framework for many of my projects. Especially on bigger projects like filmprices.com I find it very useful.

Symfony have somthing called tasks that you can run from command line of your server. Tasks together with a cronjob would be great combination for updating the product list from the different shops in filmprices.com. So I set up a cronjob for running my product:update task looking somthing like this:

0 5 * * * ~/path/to/my/symfony/poject/symfony product:update

But I just got the following error message:

There are no tasks defined in the “product” namespace.”

The problem is that the symfony cli need to be run from the symfony project directory so it do not manage to find my product namespace. I did not find any similar examples on google so I did some basic “try and fail” with my cron script. I finally managed to get it to work with the following script:

0 5 * * * cd ~/path/to/my/symfony/poject && ./symfony product:update

When looking at the solution I guess this should have been easy for me to figure out, but I have not worked much with cronjobs earlier. So hope this helps if you ever run into a “There are no tasks defined in the “<namespace name>” namespace.” message when setting up cronjobs with symfony tasks.

As a side note you might have noticed I set up my script to only update products once a day. I will increase this for the shops that update their products lists often when I take this project out of beta. So do not worry the products and prices will be up to date!

Beta of filmprices.com

Thursday, January 15th, 2009

I put out a new beta of filmprices.com 01.01.2009. This is a PHP project using the symfony framework. The new design is created by Marte Berentine Breivik. I think she have done an excellent job. The whole page is basicly rewritten with lot of improvments, especially regarding the search engine.

I have a couple of stores available for each market (Norway, Denmark, Sweden and UK). I will add more functionality and stores the next months and hopefully it will become a site both you and I will use when we buy our movies :-)

If you find any bugs or have features you would like feel free to tell me here. I have alot of features on my todo list but allways good to hear what other users would like!

There will be alot of things happening on filmprices.com. I will try and update once in a while on this blog but I can promise yout that I will update filmprices.com more often then I update this blog! :-)