SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 28 of 28
  1. #26
    SitePoint Addict Mastodont's Avatar
    Join Date
    Mar 2007
    Location
    Czech Republic
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    During modification of view structure must - of course - the template be re-generated. Manual changes in templates are non-permissible.

  2. #27
    Spirit Coder allspiritseve's Avatar
    Join Date
    Dec 2002
    Location
    Ann Arbor, MI (USA)
    Posts
    648
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't like the idea of generating the templates either. I'd rather have a generic template that I can override with a custom template if I need to. It works, its fast, might not be as user-friendly as a hand-written template, but at least it doesn't break when schema changes, which is the whole point.

  3. #28
    PHP/Rails Developer Czaries's Avatar
    Join Date
    May 2004
    Location
    Central USA
    Posts
    806
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well with scaffolding, you choose whether or not to re-generate the templates. So for most small changes, it's much simpler just to go in and make the modifications by hand, especially after you really learn the syntax and the way the system works. If whatever you're building is automated, be sure to have some sort of user prompt/warning about overwriting.

    That said, I do like your idea of having a generated backup form that will only be used if a proper one is not found. That sounds like it may work well in this case.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •