This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Day-by-day askeet files [unofficial]

Discussion around this tutorial for symfony 1.0.x

Day-by-day askeet files [unofficial]

by Balth » Wed Dec 12, 2007 10:44 am

Hello,

As you may know, askeet svn sometimes doesn't content the same files as the ones you made during an askeet day. :?~ :-?~ :???:
And when you are a beginner, the impossibility to obtain safe work after an error or a misunderstanding can be discouraging...

So I propose (maybe with someone's help) to recreate the askeet svn.Do you agree ?

I'm not error proof so do not hesitate to check my work and tell me if an error is in.

Note : database is a mysql database, mysql user is "user", his pass is "password". Do not forget to configure askeet/config/propel.ini and askeet/config/databases.yml .

[Mod: made topic sticky, renamed topic]
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Wed Dec 12, 2007 10:47 am

Askeet day 1 :)~ :-)~ :smile:
Attachments
askeet-day1.tar.gz
(13.05 KiB) Downloaded 424 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Wed Dec 12, 2007 11:19 am

Askeet Day 2

Do not forget to configure askeet/config/propel.ini and askeet/config/databases.yml
Attachments
askeet-day2.tar.gz
(73.68 KiB) Downloaded 454 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Wed Dec 12, 2007 12:01 pm

Askeet day 3
Attachments
askeet-day3.tar.gz
(51.3 KiB) Downloaded 446 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Wed Dec 12, 2007 2:27 pm

Askeet day 4
A little bit longer to publish due to lunch time :P
Attachments
askeet-day4.tar.gz
(58.76 KiB) Downloaded 459 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Wed Dec 12, 2007 3:25 pm

Askeet day 5
Attachments
askeet-day5.tar.gz
(62.76 KiB) Downloaded 412 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Thu Dec 13, 2007 11:11 am

Hello :)~ :-)~ :smile:
Askeet day 6
Attachments
askeet-day6.tar.gz
(71.3 KiB) Downloaded 438 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Thu Dec 13, 2007 11:19 am

Askeet day 7

Question :
I have created a "user profile" as teach in askeet day 7. It work fine :)~ :-)~ :smile: but when I log as fabpot (to check my work) I don't see nothing except a 404 error by clicking on "fabpot profile" (right top corner of the page) is it normal or is it a forgetfulness ?
Attachments
askeet-day7.tar.gz
(104.84 KiB) Downloaded 429 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by halfer » Thu Dec 13, 2007 11:21 am

I don't know but imagine that something needs fixing with that. Use your dev front controller to see if there is a problem with routing?

Thanks for your contributions, by the way; I am sure this will be much appreciated by symfony beginners :)~ :-)~ :smile:
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: Proposal about askeet svn

by Balth » Thu Dec 13, 2007 1:21 pm

Askeet day 8

A hard day work!
Things to understand :
- public function executeInterested() goes into user/action/action.class.php
- interestedSuccess.php has to be created in user/templates

If you can't overcome the step, this is the code of the end of the day :D~ :-D~ :grin:
Attachments
askeet-day8.tar.gz
(92.8 KiB) Downloaded 434 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Thu Dec 13, 2007 3:35 pm

Askeet day 9


Question :
- "The same kind of modification goes for the answer/_answer.php template." (talking about "Change the template" in the "Hide all Id" section)

Ok that's cool but what is _answer.php? it's the first time I read about this file name... :?~ :-?~ :???:
Someone knows?

----------------
EDIT :
Nowadays, Askeet day 9 content _answer.php. It's asked on day 7 but I didn't paid attention and it's not a must until that day. Sorry for the inconvenience.
Attachments
askeet-day9.tar.gz
(111.5 KiB) Downloaded 400 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Bart » Thu Dec 13, 2007 5:50 pm

Balth wrote: Askeet day 7

Question :
I have created a "user profile" as teach in askeet day 7. It work fine :)~ :-)~ :smile: but when I log as fabpot (to check my work) I don't see nothing except a 404 error by clicking on "fabpot profile" (right top corner of the page) is it normal or is it a forgetfulness ?

No this is no error I believe, you'll have to route that link on a later day in the tutorial
Bart
Member
 
Posts: 33
Joined: Sun Dec 09, 2007 1:55 am
Location: Belgium

Re: Proposal about askeet svn

by Bart » Thu Dec 13, 2007 5:55 pm

Balth wrote: Askeet day 9


Question :
- "The same kind of modification goes for the answer/_answer.php template." (talking about "Change the template" in the "Hide all Id" section)

Ok that's cool but what is _answer.php? it's the first time I read about this file name... :?~ :-?~ :???:
Someone knows?

There is a small part (yellow box on an earlier day), mentioning that the alert reader should have noticed that the answer part in the question/show and the answer part in answer/recent (or something like that) are very much alike.
They don't give you the code (but the one in the svn repository should give you a good idea about what has to be done)
Bart
Member
 
Posts: 33
Joined: Sun Dec 09, 2007 1:55 am
Location: Belgium

Re: Proposal about askeet svn

by Balth » Thu Dec 13, 2007 6:09 pm

Thanks Bart,
It's on day 7, I didn't paid attention to it before. It's not necessary until day 9 so I will do it for day 9 (but not before).

I correct it in day 10, so have fun :
Attachments
askeet-day10.tar.gz
(126.31 KiB) Downloaded 447 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Fri Dec 14, 2007 1:16 pm

There is a probleme to me on day 11 with RSS Image part.

First, /sidebar/templates/defaultSuccess.php doesn't exist. To me it's /sidebar/templates/_default.php.

Then, <?php echo link_to('popular questions', [url=mailto:'@popular]'@popular[/url]_questions') ?> returns an error, I need to have <?php echo link_to('popular questions', 'question/list') ?>.

I don't know if I missed a step or if it's an error in the tuto... :?~ :-?~ :???:

By the way, this is the code of the day, correct it if I wrong

--------------------------------------

EDIT: second step corrected today, files re-uploaded
Attachments
askeet-day11.tar.gz
(155.41 KiB) Downloaded 386 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Bart » Sat Dec 15, 2007 12:09 am

Balth wrote:
First, /sidebar/templates/defaultSuccess.php doesn't exist. To me it's /sidebar/templates/_default.php.

That is correct. I guess that symfony updates have something to do with this.

Balth wrote:
Then, <?php echo link_to('popular questions', [url=mailto:'@popular]'@popular[/url]_questions') ?> returns an error, I need to have <?php echo link_to('popular questions', 'question/list') ?>.

I don't know if I missed a step or if it's an error in the tuto... :?~ :-?~ :???:


Which is the error?
Does popular_question exist in your routing.yml?
Bart
Member
 
Posts: 33
Joined: Sun Dec 09, 2007 1:55 am
Location: Belgium

Re: Proposal about askeet svn

by Balth » Mon Dec 17, 2007 5:42 pm

Sorry for being late in reply, I was working on day 12 & 13.

Error returned was:
Code: Select all
[sfException]
Route named "popular_questions" have a mandatory "page" parameter
stack trace


It's linked to my file routing.yml
Code: Select all
popular_questions:
  url:   /index/:page
  param: { module: question, action: list }


So I had to choose between :
- keeping old code in modules/sidebar/templates/_default.php
and
- cutting /:page in popular_question url in routing.yml

So I cutted /:page that's all.
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Mon Dec 17, 2007 6:19 pm

Askeet day 12 :P
Attachments
askeet-day12.tar.gz
(161.88 KiB) Downloaded 419 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Bart » Mon Dec 17, 2007 6:44 pm

your other option was this
Code: Select all
popular_questions:
  url:   /index/:page
  param: { module: question, action: list, page: 1 }

which means page = 1, if not provided
Bart
Member
 
Posts: 33
Joined: Sun Dec 09, 2007 1:55 am
Location: Belgium

Re: Proposal about askeet svn

by Balth » Tue Dec 18, 2007 12:28 pm

Askeet day 13
Attachments
askeet-day13.tar.gz
(210.55 KiB) Downloaded 387 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Wed Dec 19, 2007 10:08 am

Hello,

Askeet day 14
Attachments
askeet-day14.tar.gz
(210.8 KiB) Downloaded 460 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by Balth » Wed Dec 19, 2007 10:22 am

Askeet day 15

Due to non backward-compatible changes in PHP 5.0.5, Simple Test is currently not working if you have a PHP version higher than 5.0.4. This should change shortly (an alpha version addressing this problem is available), but unfortunately the rest of this tutorial will probably not work if you have a later version.


Code: Select all
$ php -v
PHP 5.2.3-1


No askeet file for day 15. See you on day 16.

--------------

Askeet day 16

Nothing, due to "lazy day"
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Proposal about askeet svn

by halfer » Mon Jan 14, 2008 11:18 am

I've not tried this, but just thought I'd say thanks on behalf of the community. I'm pointing other users to this thread :)~ :-)~ :smile:
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: Proposal about askeet svn

by halfer » Mon Feb 04, 2008 11:39 am

I think this is worth making sticky. Could anyone who tries these tarfiles please give Balth feedback on this thread?
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: Day-by-day askeet files [unofficial]

by Balth » Mon Feb 04, 2008 12:19 pm

Hello,
Sorry for not continuing askeet tutorial but I was in hollidays and for now I'm working on an urgent project... :?~ :-?~ :???:

Restart asap.
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Day-by-day askeet files [unofficial]

by Emacs » Tue Feb 05, 2008 8:50 pm

The RSS feeds of the day 11 don't work...
Hugo HAMON
Sensio Labs Trainings Manager
http://www.hugohamon.com (fr, en)
http://www.apprendre-php.com (fr)
Co-author of "Bien Développer en PHP avec Symfony et Doctrine"
Contributor to the symfony project (documentation, plugins, community)
Emacs
Faithful Member
 
Posts: 207
Joined: Mon Dec 17, 2007 10:00 am
Location: Paris - Clichy

Re: Day-by-day askeet files [unofficial]

by Balth » Wed Feb 06, 2008 10:08 am

Emacs wrote: The RSS feeds of the day 11 don't work...

Thank you for the feedback... :roll:
And the matter is ?
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Day-by-day askeet files [unofficial]

by Emacs » Wed Feb 06, 2008 10:18 am

This is the problem :

http://www.symfony-project.org/forum/index.php/t/11082/

I've the same when I followed the tutorial myself and with your unofficial askeet files. I don't understand why...
Hugo HAMON
Sensio Labs Trainings Manager
http://www.hugohamon.com (fr, en)
http://www.apprendre-php.com (fr)
Co-author of "Bien Développer en PHP avec Symfony et Doctrine"
Contributor to the symfony project (documentation, plugins, community)
Emacs
Faithful Member
 
Posts: 207
Joined: Mon Dec 17, 2007 10:00 am
Location: Paris - Clichy

Re: Day-by-day askeet files [unofficial]

by Balth » Wed Feb 06, 2008 11:38 am

Ok, thanks for details. However I don't understand why you have a problem. It works to me with my code (see attachment)
Attachments
Capture-Popular questions on askeet - Mozilla Firefox.png
Capture-Popular questions on askeet - Mozilla Firefox.png (90.1 KiB) Viewed 6901 times
Capgemini - Oss Partner Team Member - Marseille France
www.osspartner.com
Balth
Member
 
Posts: 50
Joined: Fri Nov 09, 2007 4:06 pm
Location: France

Re: Day-by-day askeet files [unofficial]

by Emacs » Wed Feb 06, 2008 2:16 pm

Which Symfony version do you use ? I've got the latest one.

Could you give me please a zip archive, which contains the day 11 files and a dump of your MySQL database ?

Thank you for your answer.
Hugo HAMON
Sensio Labs Trainings Manager
http://www.hugohamon.com (fr, en)
http://www.apprendre-php.com (fr)
Co-author of "Bien Développer en PHP avec Symfony et Doctrine"
Contributor to the symfony project (documentation, plugins, community)
Emacs
Faithful Member
 
Posts: 207
Joined: Mon Dec 17, 2007 10:00 am
Location: Paris - Clichy

Re: Day-by-day askeet files [unofficial]

by skyblaze » Sun Feb 24, 2008 6:45 pm

i'm new to askeet....why the svn trunk repository doesn't contain the same content? Is the repository more updated than the turorial code?
skyblaze
Faithful Member
 
Posts: 205
Joined: Thu Jan 24, 2008 4:24 pm

Re: Day-by-day askeet files [unofficial]

by Bart » Mon Feb 25, 2008 1:42 am

skyblaze wrote: i'm new to askeet....why the svn trunk repository doesn't contain the same content? Is the repository more updated than the turorial code?

Yes the svn repo is more updated, but isn't fully compatible with recent symfony versions and contains bugs.
The code in this thread is a user initiative and is probably better than the svn repo, but unofficial.
Bart
Member
 
Posts: 33
Joined: Sun Dec 09, 2007 1:55 am
Location: Belgium

Re: Day-by-day askeet files [unofficial]

by skyblaze » Mon Feb 25, 2008 11:12 am

Bart wrote:
skyblaze wrote on Sun, 24 February 2008 17:45 wrote: i'm new to askeet....why the svn trunk repository doesn't contain the same content? Is the repository more updated than the turorial code?

Yes the svn repo is more updated, but isn't fully compatible with recent symfony versions and contains bugs.
The code in this thread is a user initiative and is probably better than the svn repo, but unofficial.

so if i want some code of askeet (taken from the tutorial snippets not the svn repo) to be used in my project, do i have to worry? Will it work with actual stable release of symfony?
skyblaze
Faithful Member
 
Posts: 205
Joined: Thu Jan 24, 2008 4:24 pm

Re: Day-by-day askeet files [unofficial]

by skyblaze » Mon Feb 25, 2008 11:39 am

Do the symfony team have a project to update the symfony askeet tutorial and its relative svn code in the near future?
skyblaze
Faithful Member
 
Posts: 205
Joined: Thu Jan 24, 2008 4:24 pm

Re: Day-by-day askeet files [unofficial]

by plaginha » Fri Feb 29, 2008 7:13 pm

Hi all,

I also had lots of problems to follow the tutorial. I stopped at day 10 with errors I could not solve.

So I decided to get day 10 from svn source. Forget it! I spent two days trying to make that work and... nothing!

Then I saw this forum and I decide to go to Day 2 to see if it looks nice. And it looks!!

But... two notes.
1. You relly need to edit config/databases.yml and propel.ini files. You also have to take a look at config.php file because the location of pear files depends on the Linux distribution you are using.
2. I'm using a postgres database insted of mysql. There's only one thing I cant't do in Day 2 with the code Balth supplied: insert a new question! It stops in a get sequence error, I don't remember if that problem happened when I followed askeet tutorial Day 2.

Thank's.
Pedro L.
plaginha
Junior Member
 
Posts: 12
Joined: Fri Feb 29, 2008 5:40 pm

Re: Day-by-day askeet files [unofficial]

by KayakJim » Thu Jul 03, 2008 5:04 pm

Has any further work been done for the remaining days?

I was trying to follow the tutorial buy spent more time dealing with errors than actually learning how to use symfony. :/

These files got me back on track. Thanks a lot! :)~ :-)~ :smile:
KayakJim
Junior Member
 
Posts: 7
Joined: Thu Jul 03, 2008 5:01 pm
Location: Cookeville, TN

Re: Day-by-day askeet files [unofficial]

by compidoc » Sat Jul 05, 2008 5:12 am

Yeah. This thread is great.

I first tried Symfony 1.1, but not even the "my first.." turorial did match the version.

With 1.0 the my first tutorial could be done, but askeet got me many grey hairs...

"If you're stuck, try the SVN..." NEVER... NEVER do that. I just had one little fault which i couldn't serve... after the SVN I had so much, that i gave up...

My experiences with symfony so far... the project is nice, the documentation is crap... thanks for this thread again.
compidoc
Junior Member
 
Posts: 1
Joined: Sat Jul 05, 2008 5:02 am

Re: Day-by-day askeet files [unofficial]

by KayakJim » Mon Jul 07, 2008 9:48 pm

compidoc wrote: "If you're stuck, try the SVN..." NEVER... NEVER do that. I just had one little fault which i couldn't serve... after the SVN I had so much, that i gave up...

My experiences with symfony so far... the project is nice, the documentation is crap... thanks for this thread again.

That is so true even today.

I will have one error. If I use the SVN files I then spend the next 2 hours fixing errors. What a great way to learn something new. :/
KayakJim
Junior Member
 
Posts: 7
Joined: Thu Jul 03, 2008 5:01 pm
Location: Cookeville, TN

Re: Day-by-day askeet files [unofficial]

by halfer » Wed Jul 09, 2008 12:20 pm

This thread is indeed great, but symfony's documentation is not crap, even if you have been having trouble with it. There is really no need to be offensive, especially given the quality of the documentation in general, and that you get it completely for free.

There are of course problems with Askeet - mainly in keeping it up-to-date as symfony has gone through version changes - but there are also plenty of people able to help you out on the fora. If either of you (KayakJim, compidoc) are still having issues, start a fresh thread here or get onto IRC.
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: Day-by-day askeet files [unofficial]

by WolfEng » Tue Jul 29, 2008 4:21 pm

I came up with a symfony 1.1 solution for the 5th day, where a custom validator is required, i think it's not a bad solution since I'm using sfForms, sfWidgets, sfValidators and a custom Validator for that part.

You'll find a readme.txt in the zip explaining where the files are supposed to be placed.

Please feel free to comment on the solution and/or ask if you have trouble, notice i'm only providing the files that can't be created straight out of the tutorial, so you'll propably have to have worked till 5th day yourself.

I made it till 8th day and i think i'm mostly sticking to 1.1, ask away if you have trouble on any previous days, i'll try to help out.

I'm currently stuck with a workaround to javascript helpers, because I've really worked with javascript/ajax... i guess it's a chance to learn. :?~ :-?~ :???:

I hope this helps sumone.
Cheers!

.:Wolf;.
Attachments
5thDay.zip
(3.9 KiB) Downloaded 212 times
WolfEng
Junior Member
 
Posts: 28
Joined: Tue Jul 22, 2008 8:54 am