I hereby claim:
- I am juriansluiman on github.
- I am jurian (https://keybase.io/jurian) on keybase.
- I have a public key whose fingerprint is F425 765A F301 EE83 71B1 35BE 043B E044 6A20 6379
To claim this, I am signing this object:
<?php | |
namespace MyEmailThingy; | |
class Module | |
{ | |
public function onBootstrap($e) | |
{ | |
$app = $e->getApplication(); | |
$em = $app->getEventManager(); |
<?php | |
use Zend\Mvc\MvcEvent; | |
class Module | |
{ | |
public function onBootstrap($e) | |
{ | |
$app = $e->getApplication(); | |
$sl = $app->getServiceManager(); | |
$em = $app->getEventManager(); |
<?php | |
class MyFactory implements FactoryInterface | |
{ | |
public function createService() | |
{ | |
$adapter = // get adapter based on config; | |
$service = new Service($adapter); | |
return $service; | |
} |
<?php | |
namespace Foo; | |
use Zend\Http\Client as HttpClient; | |
use Zend\Http\Response as HttpResponse; | |
use Zend\Http\Exception\ExceptionInterface as HttpException; | |
use Zend\Json\Json; |
I hereby claim:
To claim this, I am signing this object:
<comment-box> | |
<h1>{ opts.title }</h1> | |
<comment-list url={ opts.url } comments={ comments } /> | |
<comment-form url={ opts.url } comments={ comments } /> | |
// Start with some in-memory list of comments | |
this.comments = [{'name': 'Tom', 'message': 'Hi there'}, {'name': 'Paul', 'message': 'Great job'}] | |
</comment-box> |
<?php | |
namespace Application\Controller; | |
use Zend\Mvc\Controller\ActionController | |
Zend\Mvc\MvcEvent; | |
class IndexController extends ActionController | |
{ | |
public function indexAction() |
This document describes how a system can be formed to set up modules in combination with a tree of pages stored in the database. The general idea is to have pages stored within a database in a tree structure, where every page is coupled to a module (1:n). Pages are queried and parsed to routes as a combination of the page route and the modules route(s).
Webapplications exist often with a frontend (for normal visitors) and backend (to manage the whole bunch). Also some pages might want to utilize the same module (two simple text pages as basic example). Thirdly, it should be easy for end users to create new pages, modify them or delete pages. To accomplish this, a robust system ("content management framework") should be made on top of zf2 to accomodate this.
<?php echo $this->doctype() ?> | |
<html> | |
<head> | |
<?php echo $this->headTitle() ?> | |
<?php echo $this->headMeta() ?> | |
<?php echo $this->headLink() ?> | |
<?php echo $this->headScript() ?> | |
</head> |