rispost Askeet! Diary - Day 5 - FUCK ME!

January 8th, 2006

So Tutorial 5 went smoothly for you? FUCK YOU MAN!

I thought everything was going smoothly. I actually was starting to understand all the concepts and thought I was running on all cylinders. That was until I got to the very last part.

I implemented the changes in order to paginate my list of questions. In fact I was rather astounded that symfony has such constructs built in. After making my changes, it didn’t work. I noticed that I backtracked just one step to the point were the number of questions on a page was a hardcoded integer, it worked fine. There was something up with that aplication variable thingy. I tried clearing the symfony cache with $ symfony cc. No luck.

Like the retard that I am I start flailing and doing anything I can think of. I run all the symfony init-app and init-module command and deleted files and removed changes. By the end of it all, My askeet installation was totally fucked up and didn’t work at all. It wasn’t even accessing the DB properly. A total disaster really.

I was forced to go back a day and check out day 4 from subversion and redo day 5. After all that spazzing out and redoing work, I was right back were I started. I had paginataion that only worked with a hardcoded number and not the application variable.

I did some reading and found that other people were having the same problem. After talking to Jon[the coworker who turned me on to symfony] I figured out that I did in fact have to clear the symfony cache. But that alone still wasn’t working. I also learned that the app.yml file generates a file in the cache folder. I found the corresponding cache file, but it was empty. After clearing the cache and making some changes to app.yml, it was still empty.

FUCK, FUCK, FUCK, FUCK, FUCK!

I starting messing with the spaces, tabs, and returns in the app.yml file thinking that I might be having some more of those silly copy/paste funky characters like the ones I was dealing with in day 4. I found that I wasn’t have the same problem, but a new one. My guess it that the YAML parser that converts app.yml into the cahced php file is finicky about where you put tabs/spaces, and how many you use. I found that you should only spaces, and that you should only use consistent spacing per indent.

The bottom line is that the tutorial doesn’t tell you to clear the cache, and on top of that you need to be careful with your spacing. OK, time to commit my changes to subversion and move on.

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment