Changeset 601135
- Timestamp:
- 09/19/2012 06:16:50 PM (14 years ago)
- Location:
- wp-mvc/trunk
- Files:
-
- 3 edited
-
README.md (modified) (3 diffs)
-
core/models/wp_models/mvc_post_adapter.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-mvc/trunk/README.md
r508638 r601135 12 12 WP MVC fills this gap. The basic idea is that you create an app/ directory that contains a file structure similar to other MVC frameworks (controllers/, helpers/, models/, views/, etc) and set up models, views, and controllers just as you would in other frameworks. WP MVC runs this code in the context of WordPress (i.e. you can still use all of WordPress's functionality inside of app/). Since WordPress already provides an administrative system, admin actions and views in app/ are run in that context, with WP MVC adding all of the necessary WordPress actions and filters to make this possible without the developer needing to lift a finger. An [Administration Menu](http://codex.wordpress.org/Administration_Menus) is automatically created for each model, but it can be customized or omitted. 13 13 14 For more extensive documentation, and to see what WP MVC is capable of, please visit [wpmvc.org](http://wpmvc.org). 14 For more extensive documentation, and to see what WP MVC is capable of, please visit [wpmvc.org](http://wpmvc.org). Check out the [tutorial](http://wpmvc.org/documentation/tutorial/) to see how quickly you can get an app up and running. 15 15 16 16 If you'd like to grab development releases, see what new features are being added, or browse the source code please visit the [GitHub repo](http://github.com/tombenner/wp-mvc). 17 18 This is free and open source software. If you like it and want to encourage further development, please [flattr it][FlattrLink]. Thanks!19 20 [![][FlattrButton]][FlattrLink]21 17 22 18 Installation … … 44 40 1. Modify the generated models, views, and controllers to customize the app 45 41 46 For a simple example tutorial on this, please see the [tutorial on wpmvc.org](http://wpmvc.org/documentation/ 70/tutorial/).42 For a simple example tutorial on this, please see the [tutorial on wpmvc.org](http://wpmvc.org/documentation/tutorial/). 47 43 48 44 Frequently Asked Questions … … 59 55 * [WordPress Forum](http://wordpress.org/tags/wp-mvc?forum_id=10) 60 56 * [GitHub](http://github.com/tombenner) 61 62 [FlattrLink]: https://flattr.com/thing/487376/WP-MVC63 [FlattrButton]: http://api.flattr.com/button/button-static-50x60.png -
wp-mvc/trunk/core/models/wp_models/mvc_post_adapter.php
r513645 r601135 4 4 5 5 public function verify_settings($model) { 6 if (!isset($model->schema['post_id'])) { 6 if (empty($model->schema)) { 7 MvcError::warning('The schema for '.$model->name.' is empty. It\'s likely that the plugin generating this table isn\'t working, or you may need to deactivate and activate it. Please make sure that the table "'.$model->table.'" exists.'); 8 } else if (!isset($model->schema['post_id'])) { 7 9 MvcError::fatal('To associate posts with '.$model->name.', its table needs to have a column named "post_id" of type BIGINT(20). Please run the following SQL to add and index the column: 8 10 <pre> -
wp-mvc/trunk/readme.txt
r513645 r601135 3 3 Tags: mvc, framework, model, view, controller, development, plugin 4 4 Requires at least: 3.0 5 Tested up to: 3. 3.15 Tested up to: 3.4.2 6 6 Stable tag: 1.2 7 7 … … 19 19 20 20 If you'd like to grab development releases, see what new features are being added, or browse the source code please visit the [GitHub repo](http://github.com/tombenner/wp-mvc). 21 22 This is free and open source software. If you like it and want to encourage further development, please [flattr it](https://flattr.com/thing/487376/WP-MVC). Thanks!23 21 24 22 == Installation == … … 45 43 1. Modify the generated models, views, and controllers to customize the app 46 44 47 For a simple example tutorial on this, please see the [tutorial on wpmvc.org](http://wpmvc.org/documentation/ 70/tutorial/).45 For a simple example tutorial on this, please see the [tutorial on wpmvc.org](http://wpmvc.org/documentation/tutorial/). 48 46 49 47 == Frequently Asked Questions == … … 71 69 72 70 = 1.2 = 73 Please see the [Release Notes](http://wpmvc.org/documentation/1.2/114/release-notes-v-1-2/) for a full list74 71 75 72 * Model objects now have magic properties for accessing their associations (e.g. $event->venue, $event->speakers)
Note: See TracChangeset
for help on using the changeset viewer.