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
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