Title: wp mvc Framework
Last modified: May 2, 2020

---

# wp mvc Framework

 *  [fehmib](https://wordpress.org/support/users/fehmib/)
 * (@fehmib)
 * [6 years ago](https://wordpress.org/support/topic/wp-mvc-framework/)
 * Hi,
    I have three questions please : 1- I defined validations for the fields 
   of the model, Like below :
 *     ```
       class Student extends MvcModel {
   
         var $validate = array(
       'url' => array(
             'rule' => 'url',
             'required' => false,
             'message' => 'Please enter a valid URL in the URL field!'
           )
       );
       ```
   
 * My question is : How to get the message and display it to the front End user?
 * 2-
    What’s the best practice to use the mvc_css_url() function to link a CSS 
   style sheet (for example Bootstrap from a CDN or a Bootstrap local file), in 
   a front view ; and can I put a <head> </head> tags in the front view Like this:
 *     ```
       <head>
       <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
           <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.20/datatables.min.css"/>
           <link rel="stylesheet" type="text/css" href="<?php  echo mvc_css_url('my_plugin', 'datatable');?>"/>
   
       <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.20/datatables.min.js"></script>
   
   
       </head>
   
       <h2>List of students</h2><br>
       ```
   
 * 3 Upload of file :
    is there any validation rules for Files in wpmvc (type and
   size),
 * Best Regards,
    TSMM Teacher

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years ago](https://wordpress.org/support/topic/wp-mvc-framework/#post-12765692)
 * What is wpmvc ?
    This must be a plugin or something because WordPress is not 
   built on the MVC paradigm. (and I hope it never is) Please submit your questions
   to the plugin support forum that you are referring to.
 *  Thread Starter [fehmib](https://wordpress.org/support/users/fehmib/)
 * (@fehmib)
 * [6 years ago](https://wordpress.org/support/topic/wp-mvc-framework/#post-12765758)
 * Thank you [@joyously](https://wordpress.org/support/users/joyously/)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp mvc Framework’ is closed to new replies.

## Tags

 * [file upload](https://wordpress.org/support/topic-tag/file-upload/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [fehmib](https://wordpress.org/support/users/fehmib/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/wp-mvc-framework/#post-12765758)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
