Plugin Directory

Changeset 601135


Ignore:
Timestamp:
09/19/2012 06:16:50 PM (14 years ago)
Author:
tombenner
Message:

Updating the READMEs and catching an edge case in MvcPostAdapter

Location:
wp-mvc/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-mvc/trunk/README.md

    r508638 r601135  
    1212WP 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.
    1313
    14 For more extensive documentation, and to see what WP MVC is capable of, please visit [wpmvc.org](http://wpmvc.org).
     14For 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.
    1515
    1616If 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]
    2117
    2218Installation
     
    44401. Modify the generated models, views, and controllers to customize the app
    4541
    46 For a simple example tutorial on this, please see the [tutorial on wpmvc.org](http://wpmvc.org/documentation/70/tutorial/).
     42For a simple example tutorial on this, please see the [tutorial on wpmvc.org](http://wpmvc.org/documentation/tutorial/).
    4743
    4844Frequently Asked Questions
     
    5955* [WordPress Forum](http://wordpress.org/tags/wp-mvc?forum_id=10)
    6056* [GitHub](http://github.com/tombenner)
    61 
    62 [FlattrLink]: https://flattr.com/thing/487376/WP-MVC
    63 [FlattrButton]: http://api.flattr.com/button/button-static-50x60.png
  • wp-mvc/trunk/core/models/wp_models/mvc_post_adapter.php

    r513645 r601135  
    44
    55    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'])) {
    79            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:
    810<pre>
  • wp-mvc/trunk/readme.txt

    r513645 r601135  
    33Tags: mvc, framework, model, view, controller, development, plugin
    44Requires at least: 3.0
    5 Tested up to: 3.3.1
     5Tested up to: 3.4.2
    66Stable tag: 1.2
    77
     
    1919
    2020If 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!
    2321
    2422== Installation ==
     
    45431. Modify the generated models, views, and controllers to customize the app
    4644
    47 For a simple example tutorial on this, please see the [tutorial on wpmvc.org](http://wpmvc.org/documentation/70/tutorial/).
     45For a simple example tutorial on this, please see the [tutorial on wpmvc.org](http://wpmvc.org/documentation/tutorial/).
    4846
    4947== Frequently Asked Questions ==
     
    7169
    7270= 1.2 =
    73 Please see the [Release Notes](http://wpmvc.org/documentation/1.2/114/release-notes-v-1-2/) for a full list
    7471
    7572* 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.