aaron118 Posted March 20, 2012 Share Posted March 20, 2012 Hi guys, I'm currently creating my first Yii app, and I'm really enjoying it so far. The app will be used to allow users to log their weightlifting workouts and to monitor their strength over time. Part of the app is to allow users to create their own workout routines, so for example a final workout routine might consist of: Legs Routine A Squat Set 1 Target reps: 12 Set 2 Target reps: 10 Set 3 Target reps: 8 Deadlift Set 1 Target reps: 10 Set 2 Target reps: 8 Set 3 Target reps: 6 Seated Calf Raises Set 1 Target reps: 15 Set 2 Target reps: 12 I know how to display and use these workout routines, but I can't seem to figure out how I can go about building the feature to create them. Ideally I'd like a 'create' page where both the exercises and their sets become repeatable fields, so you can define a certain amount of each. I have attached my database schema (the routine tables are the main ones concerned) and a wireframe design for my desired create routine page to help give you guys an idea on what I'm trying to do. I would really appreciate it if someone could point me in the right direction with this. Many thanks, Aaron Quote Link to comment https://forums.phpfreaks.com/topic/259333-please-help-with-repeatable-fields-in-my-first-yii-app/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.