Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorraslam
    • CommentTimeOct 29th 2007
     
    Hi,

    I want to know where does the model files exist after we create a scaffold on a model. Like in the blog screen cast I created a post model and used scaffold to generate actions. After generation we can use methods like
    <code>
    $post->getId();
    $post->getTitle();
    </code>
    Where are these located? Now at a later stage I have added another field in the database and I don't want to re-generate the scaffold as it would ruin my customizations. I want to add
    <code>$post->getNewField();</code>
    method to the model. With re-generating the scaffold the getter for new_field isn't available. I want to add the getter manually.

    Please advise.

    --
    raslam
    •  
      CommentAuthorbermi
    • CommentTimeOct 31st 2007
     

    Hi Rashid,

    Scaffolds are just a little help on creating your application and no one should consider them for production without customization. You can edit your models which are located at app/models/, and the views at app/views

Add your comments
    Username Password
  • Format comments as