Dear Antonio,
I am doing something wrong. Can you please help me again.
cContent is declared as STATIC
Thank you in advance
Otto
error: Variable does not exist CCONTENT
function Controller( cRequest )
cContent = If( Empty( cRequest ), "home",;
If( cRequest $ "wishlist,login,cart,checkout", cRequest, "home" ) )
TEMPLATE
<h1>My First Heading</h1>
<p>My first paragraph.</p>
Test<br>
<?prg Time() ?><br>
Otro<br>
<?prg DToC( Date() ) ?> <br>
Test show cContent<br>
Si, ok<br>
ENDTEXT
BLOCKS
{{ cContent }}
ENDTEXT
do case
case AP_Method() == "GET"
AP_RPuts( View( "default" ) )
case AP_Method() == "POST"
do case
case cRequest == "login"
Login()
endcase
endcase
return nil
//----------------------------------------------------------------------------//
<?prg return cContent ?>
error: Variable does not exist CCONTENT
called from: GETERRORINFO, line: 103
called from: DOBREAK, line: 114
function Controller( cRequest )
cContent = If( Empty( cRequest ), "home",;
If( cRequest $ "wishlist,login,cart,checkout", cRequest, "home" ) )
TEMPLATE
<h1>My First Heading</h1>
<p>My first paragraph.</p>
Test<br>
<?prg Time() ?><br>
Otro<br>
<?prg DToC( Date() ) ?> <br>
Test show cContent<br>
Si, ok<br>
<?prg return cContent ?>
ENDTEXT
do case
case AP_Method() == "GET"
AP_RPuts( View( "default" ) )
case AP_Method() == "POST"
do case
case cRequest == "login"
Login()
endcase
endcase
return nil
//----------------------------------------------------------------------------//
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club********************************************************************