12.07.2015 Views

My first symfony project - Mesurex

My first symfony project - Mesurex

My first symfony project - Mesurex

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>My</strong> <strong>first</strong> <strong>symfony</strong> <strong>project</strong> 16Now navigate again in your application to see your new URLs in action. If you get an error, itmay be because the routing cache needs to be cleared. To do that, type the following at thecommand line while in your sf_sandbox folder:Listing1-38$ php <strong>symfony</strong> ccFind more about smart URLs 17 .Cleaning up the frontendWell, if this is meant to be a blog, then it is perhaps a little strange that everybody is allowedto post! This isn’t generally how blogs are meant to work, so let’s clean up our templates abit.In the template sf_sandbox/apps/frontend/modules/post/templates/showSuccess.php, get rid of the ‘edit’ link by removing the line:Listing1-39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!