Things to know
- Controller are connected to the view by the actions defined in it. If you declare a variable within the action, this variable will also be accessible in the views template file. e.g. if you define a
@user
in users_controller,@user
will also be accessible in whatever template you created in users sub-folder of views.
No comments:
Post a Comment