2017 © Pedro PelĂĄez
 

library sense

The Sense Framework for WordPress

image

simettric/sense

The Sense Framework for WordPress

  • Sunday, March 11, 2018
  • by asiermarques
  • Repository
  • 3 Watchers
  • 19 Stars
  • 299 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 3 Open issues
  • 5 Versions
  • 25 % Grown

The README.md

Sense Framework

SensioLabsInsight, (*1)

Build Status, (*2)

Sense is a MVC Framework designed to build complex websites and web applications based on WordPress., (*3)

Code your WordPress plugins and themes using best practices

YOUR CONTROLLER, (*4)

class TestController extends AbstractController{

   /**
     * @Route("/profile/{name_slug}", name="profile_detail")
     */
    function demoAction($name_slug, \WP_Query $wp_query, \Request $request) {

        $repository = $this->get("repository.user");
        $user = $repository->findBy("username", $name_slug);

        return $this->resultTemplate('User/profile.php', array(
            "user" => $user
        ));
    }
}

YOUR VIEW, (*5)

get("user");
?>



getName() ?>

<?php get_footer();

(Yes, you can use Twig if you want too ;), (*6)

Read the documentation

The Versions