A todo list to check if your application is finished !

About symfony tutorials, symfony book and API documentation.

Moderators: dwhittle, Ian

A todo list to check if your application is finished !

Postby El Riiico » Fri Jun 05, 2009 8:46 am

Hello,

I've just release a Cheat Sheet about the elements to check on your symfony application before the deployment to production.

I began to write it as an article, but finally I found that building some kind of todo list would more useful.


And Voilà, symfony-check.org is born !

Of course suggestions and corrections are very welcome, my english is (realy) far to be perfect, and I still have many things to learn about smyfony.
Last edited by El Riiico on Fri Jun 05, 2009 9:06 am, edited 1 time in total.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby eljwc » Fri Jun 05, 2009 10:07 am

awesome!

Thanks loads
John Cleveley
twitter: http://twitter.com/jcleveley
eljwc
Senior Member
 
Posts: 130
Joined: Tue Nov 28, 2006 10:32 pm
Location: UK

Re: A todo list to check if your application is finished !

Postby drahpal » Fri Jun 05, 2009 10:53 am

Nice! very useful!

Thanks
Drahpal
drahpal
Member
 
Posts: 40
Joined: Thu Jul 05, 2007 4:00 pm
Location: France

Re: A todo list to check if your application is finished !

Postby camason » Fri Jun 05, 2009 11:56 am

"dedicated threat" =>
"dedicated thread"

:)~ :-)~ :smile:
camason
Junior Member
 
Posts: 18
Joined: Sat Jan 05, 2008 8:38 pm
Location: Plymouth, UK

Re: A todo list to check if your application is finished !

Postby El Riiico » Fri Jun 05, 2009 12:01 pm

Typo corrected, thank you camason.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby phidah » Fri Jun 05, 2009 12:19 pm

How about "Make sure your _dev environment is off or secure?
I've seen soooo many symfony sites with the development environment open.
phidah
Junior Member
 
Posts: 19
Joined: Tue Jan 27, 2009 6:20 pm

Re: A todo list to check if your application is finished !

Postby El Riiico » Fri Jun 05, 2009 12:31 pm

It's written in "Custom rsync_exclude.txt"

http://symfony-check.org/en/#todo14
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby alecs » Fri Jun 05, 2009 1:02 pm

Rename the session coockie
I think it should be cookie
Last edited by alecs on Fri Jun 05, 2009 1:02 pm, edited 1 time in total.
alecs
Junior Member
 
Posts: 3
Joined: Fri Jun 05, 2009 1:00 pm

Re: A todo list to check if your application is finished !

Postby El Riiico » Fri Jun 05, 2009 1:05 pm

@alecs

Typo fixed, thanks.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby benhaines » Fri Jun 05, 2009 1:17 pm

Great idea and will be very useful. Many thanks!

This should be added to the Appendix in the book ;)~ ;-)~ :wink:
benhaines
Member
 
Posts: 62
Joined: Tue Aug 01, 2006 1:16 pm
Location: London

Re: A todo list to check if your application is finished !

Postby jugjug » Fri Jun 05, 2009 2:26 pm

Typo in section "Website Temporary Unavailable":

mySfProject/apps/frontend/config/unavailable.php
mySfProject/config/unavailable.php


instead of

mySfProject/apps/frontend/config/unavaible.php
mySfProject/config/unavaible.php
jugjug
Junior Member
 
Posts: 8
Joined: Fri Jun 08, 2007 5:07 pm

Re: A todo list to check if your application is finished !

Postby El Riiico » Fri Jun 05, 2009 2:31 pm

It's fixed, thanks jugjug.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby jamiel » Fri Jun 05, 2009 4:57 pm

Update your keywords and description in view.yml to remove all the symfony stuff.
Follow me on Twitter: http://twitter.com/jrlearmonth
jamiel
Junior Member
 
Posts: 9
Joined: Wed Sep 10, 2008 12:12 pm
Location: London, United Kingdom

Re: A todo list to check if your application is finished !

Postby benhaines » Fri Jun 05, 2009 5:46 pm

We are getting really picky now... but:

"symfony check is an UI Studio creation"

Should be...

"symfony check is a UI Studio creation"

http://owl.english.purdue.edu/owl/resource/591/01/
benhaines
Member
 
Posts: 62
Joined: Tue Aug 01, 2006 1:16 pm
Location: London

Re: A todo list to check if your application is finished !

Postby sposch » Fri Jun 05, 2009 6:08 pm

great idea

typos:

"unavaible" -> "unavailable"

"custom the language of your pages" -> "customIZE the language of your pages"
sposch
Member
 
Posts: 39
Joined: Tue Dec 18, 2007 1:13 pm

Re: A todo list to check if your application is finished !

Postby El Riiico » Fri Jun 05, 2009 6:57 pm

@benhaines, @sposch : typos fixed, tanks :)~ :-)~ :smile:

@jamiel : I think I'm going to add a "Cutomize titles and metas" todo.


Additionnal features I'm thinking about :
- Adding tags so you can filter todos : design, performance, security
- Adding a cookie system that saves which todo you have already check and what is your favorite todo order

Won't be before next week.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby sposch » Fri Jun 05, 2009 7:09 pm

I'll offer to translate all that into german as soon as you're done with the page.
sposch
Member
 
Posts: 39
Joined: Tue Dec 18, 2007 1:13 pm

Re: A todo list to check if your application is finished !

Postby xdade » Sat Jun 06, 2009 1:26 am

really useful, I have learned more of something new! thanks
xdade
Junior Member
 
Posts: 27
Joined: Mon Nov 03, 2008 7:54 pm
Location: Sassari - Sardinia

Re: A todo list to check if your application is finished !

Postby phidah » Sat Jun 06, 2009 10:57 am

El Riiico wrote: It's written in "Custom rsync_exclude.txt"

http://symfony-check.org/en/#todo14


That will require that you use rsync :)~ :-)~ :smile:
phidah
Junior Member
 
Posts: 19
Joined: Tue Jan 27, 2009 6:20 pm

Re: A todo list to check if your application is finished !

Postby halfer » Mon Jun 08, 2009 2:56 pm

sposch wrote: great idea

typos:

"unavaible" -> "unavailable"

"custom the language of your pages" -> "customIZE the language of your pages"


Or, to be really pedantic: 'customise' may be the preferred spelling, depending on where you're from! ;)~ ;-)~ :wink:

http://en.wikipedia.org/wiki/American_and_British_English_sp elling_differences#-ise.2C_-ize
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: A todo list to check if your application is finished !

Postby halfer » Mon Jun 08, 2009 3:08 pm

Good work, btw. Found a few more:

catchs => catches

Usefull => Useful

an other => another

environement => environment

wich => which

APC is one of the most popular one => APC is one of the most popular ones

not enabled => disabled (you can say either, but I think this sounds better)

can't be anymore saved into cache => cannot be cached (or "can no longer be cached")

these operations will sensibly slow down your application => these operations will substantially slow down your application

(substantially means "a lot", sensibly means "reasonably, sane")
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: A todo list to check if your application is finished !

Postby El Riiico » Mon Jun 08, 2009 3:31 pm

@sposch

Thanks. When the english list will be stable enought, I plan to open the administration of the site to translators. It could take some time, because I'd like to set up a system that will alert translators when a part of the english content is modified.

@halfer

Fixed. Thank you for all your corrections.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby asdf072 » Sat Jun 13, 2009 5:21 am

I was going to say that it's "customize," not "customise," but I couldn't bear bringing up another misspell after you've done this for everyone. :)~ :-)~ :smile:

Thank you!
asdf072
Member
 
Posts: 36
Joined: Sat Jun 13, 2009 1:03 am

Re: A todo list to check if your application is finished !

Postby benhaines » Sat Jun 13, 2009 10:51 am

asdf072,

That all depends on which side of the pond you live!

English - use 's'
American English - use 'z'

;)~ ;-)~ :wink:
benhaines
Member
 
Posts: 62
Joined: Tue Aug 01, 2006 1:16 pm
Location: London

Re: A todo list to check if your application is finished !

Postby asdf072 » Sat Jun 13, 2009 7:09 pm

A thousand pardons. I suppose we should stick with the Queen's English, then. (Anyhow, it makes me feel international, like when I go into a shoppe instead of a shop :)~ :-)~ :smile:
asdf072
Member
 
Posts: 36
Joined: Sat Jun 13, 2009 1:03 am

Re: A todo list to check if your application is finished !

Postby alecs » Sat Jun 13, 2009 11:18 pm

@benhaines

English is not my native english, but, from what i have learned in school, I reember that is "a car" and "an apple" ...
i think it should be "AN ui"...
alecs
Junior Member
 
Posts: 3
Joined: Fri Jun 05, 2009 1:00 pm

Re: A todo list to check if your application is finished !

Postby joshiausdemwald » Sat Jun 13, 2009 11:47 pm

Regarding Point 11:

A solution can be to use several domains :

* http://my-app.com for the frontend
* http://my-app-backend.com for the backend

Personnaly, I prefer use some sub domains for each application :

* http://my-app.com for the frontend
* http://admin.my-app.com for the backend


Perhaps you could also mention the almost more simple solution of putting the front controller (named "admin.php" or something like that) into a subfolder, e.g. ./web/Admin and rename it to "index.php"

That would also prevent the script from being part of the uri (if the corresponing flag in your configuration isset, though)
joshiausdemwald
Junior Member
 
Posts: 14
Joined: Tue May 12, 2009 10:31 pm
Location: Germany, NRW, near Cologne

Re: A todo list to check if your application is finished !

Postby benhaines » Mon Jun 15, 2009 12:02 am

@alecs

http://www.ehow.com/how_2221937_use-vs-sentence.html

See Step 4 for the exception. It is 'a' UI... trust me :)~ :-)~ :smile:

The english language is crazy I tell you! It plays tricks on you!
benhaines
Member
 
Posts: 62
Joined: Tue Aug 01, 2006 1:16 pm
Location: London

Re: A todo list to check if your application is finished !

Postby halfer » Tue Jun 16, 2009 1:45 pm

alecs wrote: @benhaines

English is not my native english, but, from what i have learned in school, I reember that is "a car" and "an apple" ...
i think it should be "AN ui"...

Nearly. Words beginning with a vowel (a, e, i, o, u) use "an" and others use "a". However UI is an acronym, and is pronounced "yoo-eye". Hence "a" sounds more correct. I think if the phonetic pronunciation of an acronym sounds like it begins with a vowel, "an" would be preferred.
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: A todo list to check if your application is finished !

Postby El Riiico » Wed Jun 17, 2009 2:43 am

A new version is online.

When you want to check a todo, the clickable zone is larger.

I've removed the french version.
It was a big decision, but dealing with several versions and building a clean way to let people contribute to translations was just to much work.
Giving it up has helped me to move forward. I don't think french version will come, even if it's just so painfull for me to write in english.

I've added Tags to filter todos

I've added informations about the way to test the pages that you want to customize.

I've added pictures of the error pages, with a lightbox zoom.

The website now degrades gracefully when Javascript is off.

"Customize" is now written with the american spelling, with a "Z".


The code of the site has been refactored. If someone is interrested, I could share the source...
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby benhaines » Wed Jun 17, 2009 10:25 am

Thanks for the update. Great new features.

One issue is that I can't seem to see any tickbox anymore? I can still click to the left hand side of a item and it will grey out, but not tickbox like the first version.
benhaines
Member
 
Posts: 62
Joined: Tue Aug 01, 2006 1:16 pm
Location: London

Re: A todo list to check if your application is finished !

Postby El Riiico » Wed Jun 17, 2009 3:27 pm

It was a bug. It's fixed.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby jarod51 » Thu Jun 18, 2009 10:30 am

Nice work

Need it in a PDF cheat sheet now to insert it in my cheat sheet book please :)~ :-)~ :smile:
jarod51
Member
 
Posts: 79
Joined: Mon May 22, 2006 11:39 am

Re: A todo list to check if your application is finished !

Postby El Riiico » Thu Jun 18, 2009 10:32 am

Hmm, why not, I'll think about it.

The next step will probably to add a little blog and a way to let people comment the todos.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby bigm » Fri Jun 19, 2009 9:10 am

Just wanted to say fantastic site!! Thanks for the effort you've put into it!
bigm
Member
 
Posts: 40
Joined: Sun Apr 20, 2008 11:46 pm
Location: Australia

Re: A todo list to check if your application is finished !

Postby develop7 » Fri Jun 19, 2009 7:16 pm

Hi.

In Opera 9.64 it looks pretty weird — I've attached an screenshot.
<img src="index.php/fa/1168/0/" border=0 alt="index.php/fa/1168/0/">

Thanks.
Attachments
screenshot-Symfony-check.org-nq8.png
screenshot-Symfony-check.org-nq8.png (33.35 KiB) Viewed 3775 times
develop7
Junior Member
 
Posts: 6
Joined: Thu Apr 19, 2007 10:38 am
Location: Belarus

Re: A todo list to check if your application is finished !

Postby El Riiico » Fri Jun 19, 2009 8:11 pm

@develop7 It was due to a tag that was not close, I should have run the w3c valdator.

I've got a great news:
For an important project, I have to implement Selenium. For my first try, I've decided to try it on symfony-check.

It's awesome !

I've decided to publish my selenium tests online to let people discover this amazing tool.

Here is the symfony check selenium test page.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby El Riiico » Fri Jun 19, 2009 11:10 pm

User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby El Riiico » Sun Jun 21, 2009 3:21 pm

I've added a new performance todo

Quote: wrote:
Optimize your routes

The symfony routing system is one of the killer features of the framework.

Code: Select all
<p>Please have a look on <?php echo link_to('our products', 'product/index') ?>.</p>


Indicate in your template which `module/action` you want and then let `routing.yml` do all the job.

You can use the default rule:

Code: Select all
default:
  url:   /:module/:action/*


Or add a dedicated one:

Code: Select all
product_list:
  url:     /our-products
  param:   { module: product, action: index }


Clear your cache and all the related links and uri will be modified, all over the application.

It feels like magic, but it has a cost.

Each time the url request `product/index` is found in a template, symfony has to scan all the rules defined in `routing.yml` and guess which one can handle this request.
The default rule ? An other one ?

This search is done for all the links...

If your project have many pages and many routing rules, you can speed up your application by using rule labels instead of a module/action pairs in your templates:

Code: Select all
<p>Please have a look on <?php echo link_to('our products', '@product_list') ?>.</p>


This solution will speed up the routing, but the disadvantage is that internal links become less self-evident.

It's up to you.



Read the related symfony documentation
Last edited by El Riiico on Sun Jun 21, 2009 3:21 pm, edited 1 time in total.
User avatar
El Riiico
Member
 
Posts: 40
Joined: Fri Feb 09, 2007 3:13 pm
Location: Paris

Re: A todo list to check if your application is finished !

Postby Ases » Wed Jun 24, 2009 2:02 pm

It sounds obvious but it's important for performance.

Check if xdebug is deactivated on production server.
Ases
Junior Member
 
Posts: 1
Joined: Wed Jun 24, 2009 1:54 pm
Location: Atzeneta

Next

Return to Documentation

Who is online

Users browsing this forum: No registered users and 1 guest