Update of /var/cvs/Geeklog-2.x/MVCnPHP/ProjectStub/views
In directory iowaoutdoors:/tmp/cvs-serv939/ProjectStub/views
Modified Files:
SampleView1.php SampleView2.php
Log Message:
Fixed whitespace issues as a result of me moving a file
between linux/windows. Constructor now takes viewDir and
commandDir.
Index: SampleView2.php
============================================================
=======
RCS file:
/var/cvs/Geeklog-2.x/MVCnPHP/ProjectStub/views/SampleView2.p
hp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SampleView2.php 15 Nov 2006 01:41:24 -0000 1.2
--- SampleView2.php 15 Nov 2006 21:56:39 -0000 1.3
***************
*** 1,24 ****
! <?php
!
! require_once 'Geeklog/MVCnPHP/BaseView.php';
!
! class SampleView2 extends Geeklog_MVCnPHP_BaseView {
! public function getNames()
! {
! return array('WebTest1');
! }
!
! public function getForwards()
! {
! $forwards = array();
!
! return $forwards;
! }
!
! public function getView()
! {
! echo '<h2>WebTest1
Working!</h2><p>You should try WebTest2
now!</p>';
! }
! }
!
?>
No newline at end of file
--- 1,24 ----
! <?php
!
! require_once 'Geeklog/MVCnPHP/BaseView.php';
!
! class SampleView2 extends Geeklog_MVCnPHP_BaseView {
! public function getNames()
! {
! return array('WebTest1');
! }
!
! public function getForwards()
! {
! $forwards = array();
!
! return $forwards;
! }
!
! public function getView()
! {
! echo '<h2>WebTest1
Working!</h2><p>You should try WebTest2
now!</p>';
! }
! }
!
?>
No newline at end of file
Index: SampleView1.php
============================================================
=======
RCS file:
/var/cvs/Geeklog-2.x/MVCnPHP/ProjectStub/views/SampleView1.p
hp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SampleView1.php 15 Nov 2006 01:41:24 -0000 1.2
--- SampleView1.php 15 Nov 2006 21:56:39 -0000 1.3
***************
*** 1,35 ****
! <?php
!
! require 'Geeklog/MVCnPHP/BaseView.php';
!
! class SampleView1 extends Geeklog_MVCnPHP_BaseView
! {
! public function getNames()
! {
! return array('sample1','SampleOne');
! }
!
! public function getForwards()
! {
! $forwards = array();
!
! $forwards[] = new Geeklog_MVCnPHP_Forward('home',
Geeklog_MVCnPHP_Forward::VIEW, 'Home');
! $forwards[] = new Geeklog_MVCnPHP_Forward('error',
Geeklog_MVCnPHP_Forward::REDIRECT , '/index.php/Error');
! $forwards[] = new Geeklog_MVCnPHP_Forward('error',
Geeklog_MVCnPHP_Forward::COMMAND , 'SomeCommand');
!
! return $forwards;
! }
!
! public function getIsDefaultAction()
! {
! return true;
! }
!
! public function getView()
! {
! echo 'View done printing';
! return '';
! }
! }
!
?>
No newline at end of file
--- 1,35 ----
! <?php
!
! require 'Geeklog/MVCnPHP/BaseView.php';
!
! class SampleView1 extends Geeklog_MVCnPHP_BaseView
! {
! public function getNames()
! {
! return array('sample1','SampleOne');
! }
!
! public function getForwards()
! {
! $forwards = array();
!
! $forwards[] = new Geeklog_MVCnPHP_Forward('home',
Geeklog_MVCnPHP_Forward::VIEW, 'Home');
! $forwards[] = new Geeklog_MVCnPHP_Forward('error',
Geeklog_MVCnPHP_Forward::REDIRECT , '/index.php/Error');
! $forwards[] = new Geeklog_MVCnPHP_Forward('error',
Geeklog_MVCnPHP_Forward::COMMAND , 'SomeCommand');
!
! return $forwards;
! }
!
! public function getIsDefaultAction()
! {
! return true;
! }
!
! public function getView()
! {
! //echo 'View done printing';
! return '';
! }
! }
!
?>
No newline at end of file
_______________________________________________
geeklog2-cvs mailing list
geeklog2-cvs lists.geeklog.net
http://lists.geeklog.net/mailman/listinfo/geeklog2-cvs
|