-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Mar 8, 2013
1 parent
5d0c2e8
commit 49b6b4a
Showing
18 changed files
with
232 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/* This file is part of the MuMVC Project (http://alex.413x31.com/Projects/MuMVC) | ||
* Copyright (c) 2013 MuMVC Team (http://alex.413x31.com/Projects/MuMVC/Team) | ||
* Full copyright and license information can be found in the file license.txt or | ||
at http://alex.413x31.com/Projects/MuMVC/licence.txt */ | ||
|
||
namespace Application\Controller; | ||
|
||
use MuMVC\ActionController; | ||
use MuMVC\Registry; | ||
|
||
class Mobile extends ActionController { | ||
public function before() { | ||
$this->layout = 'layout_mobile.tpl'; | ||
parent::before(); | ||
$this->addCrumb('Mobile', '/mobile/'); | ||
} | ||
public function indexAction() { } | ||
public function error($code, $message) { | ||
$this->action = 'error' . $code; | ||
$this->before(); | ||
if ($message) { | ||
$this->template->asigna('MESSAGE', $message); | ||
} | ||
} | ||
|
||
public function after() { | ||
$this->getBreadcrumbs(); | ||
return parent::after(); | ||
} | ||
|
||
public function getBreadcrumbs() { | ||
foreach(self::$crumbs as $crumb) { | ||
$this->layout->asigna('description', $crumb[0]); | ||
$this->layout->asigna('link', $crumb[1]); | ||
$this->layout->parse('crumb'); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/* This file is part of the MuMVC Project (http://alex.413x31.com/Projects/MuMVC) | ||
* Copyright (c) 2013 MuMVC Team (http://alex.413x31.com/Projects/MuMVC/Team) | ||
* Full copyright and license information can be found in the file license.txt or | ||
at http://alex.413x31.com/Projects/MuMVC/licence.txt */ | ||
|
||
namespace Application\Controller\Mobile; | ||
|
||
use Application\Controller\Mobile; | ||
|
||
class Mumvc extends Mobile { | ||
public function __construct() { | ||
$this->controller = 'Mobile/Mumvc'; | ||
parent::__construct(); | ||
} | ||
public function before() { | ||
parent::before(); | ||
$this->addCrumb('MuMVC', '/mobile/MuMVC/'); | ||
} | ||
public function index() { } | ||
public function error($code, $message) { | ||
$this->controller = 'Mobile'; | ||
$this->action = 'error' . $code; | ||
parent::error($code, $message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Alexey Serikov Kompaniets Online</title> | ||
<link rel="stylesheet" href="/assets/css/jquery.mobile.custom.min.css" /> | ||
<link rel="stylesheet" href="/assets/css/jquery.mobile.custom.structure.css" /> | ||
<link rel="stylesheet" href="/assets/css/jquery.mobile.custom.theme.css" /> | ||
<script src="/assets/js/jquery.js"></script> | ||
<script src="/assets/js/jquery.mobile.custom.js"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<div data-role="page" data-theme="a"> | ||
<div data-role="header" data-divider-theme="b"> | ||
<h1>Alexey Serikov Kompaniets Online</h1> | ||
</div> | ||
<div data-role="navbar" position="fixed"> | ||
<ul> | ||
<li><a href="/mobile/">Home</a> | ||
<li><a href="/old/">Old site</a></li> | ||
<li><a href="/mobile/MuMVC/">MuMVC</a> | ||
<li><a href="/assets/pdf/CV_es.pdf">Spanish C.V.</a></li> | ||
<li><a href="/assets/pdf/CV_en.pdf">English C.V.</a></li> | ||
</ul> | ||
|
||
<ul data-role="navbar" data-inset="true" data-divider-theme="b"> | ||
{block name="crumb"} | ||
<li data-theme="a"><a href="{$link}">{$description}</a></li> | ||
{/block} | ||
</ul> | ||
|
||
|
||
</div> | ||
|
||
<div data-role="content"> | ||
|
||
{$CONTENT} | ||
<ul data-role="listview" data-inset="true" data-divider-theme="b"> | ||
</ul> | ||
<ul data-role="listview" data-inset="true" data-divider-theme="d"> | ||
<li data-role="list-divider">Projects</li> | ||
<li><a href="/mobile/MuMVC/">MuMVC</a></li> | ||
</ul> | ||
</div> | ||
<div data-role="footer" data-position="fixed"> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>HTTP/404: Page not found</h1> | ||
<p>Action {$MESSAGE} you were looking for couldn't be found on this server.</p> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<h1>About μMVC</h1> | ||
<p>μMVC as it is at the moment | ||
<h3>Features</h3> | ||
<ul> | ||
<li>Fully fledged (rh)MVC system, whatever that means.<a href="/mobile/MuMVC/rhMVC/">*</a></li> | ||
<li>8 bits template system</li> | ||
</ul> | ||
<h3>Missing features</h3> | ||
<p>Features that won't be missed.</p> | ||
<ul> | ||
<li>Dependency Injection</li> | ||
<li>ASCII art and console commands</li> | ||
</ul> | ||
<h3><strike>Filosophy</strike> Methodology</h3> | ||
<h3>Code</h3> | ||
<ul> | ||
<li>Repository: <a href="http://git.413x31.com/gitweb/?p=mumvc.git;a=summary">gitweb</a></li> | ||
<li>Conventions:</li> | ||
</ul> | ||
<h3>Team</h3> | ||
<p>Please see <a href="team">team page</a>.</p> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h3><i>μ</i>MVC Team</h3> | ||
<p>Project leader: </p><b>Alexey Serikov Kompaniets</b> < [email protected] ></b> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters