Re: Using a view with some parameters
- From: "C. (http://symcbean.blogspot.com/)" <colin.mckinnon@xxxxxxxxx>
- Date: Thu, 12 Jun 2008 05:04:23 -0700 (PDT)
On Jun 12, 11:37 am, Harris Kosmidhs
<hkosm...@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
<snip>
function ShowLogin($loginErrors="") {....
$loginvars['use_cookies']=$this->use_cookies;<snip>
$loginvars['action']=$this->action;
if($loginErrors!="") $loginvars['errors']=$loginErrors;
$logform=get_include_contents('views/generalLoginForm.php');
return $logform;
}
The problem is in the views/generalLoginForm.php. The beginning of it has:
<?php global $loginvars,$loginclassname;?>
<form class="<?php echo $loginclassname; ?>" action="<?php echo
$loginvars['action']; ?>"
$loginvars and $loginclassname is always "". Why is that?
Because they are not in the global scope.
C
.
- Follow-Ups:
- Re: Using a view with some parameters
- From: Harris Kosmidhs
- Re: Using a view with some parameters
- References:
- Using a view with some parameters
- From: Harris Kosmidhs
- Using a view with some parameters
- Prev by Date: Using a view with some parameters
- Next by Date: Re: Saving images in Excel report
- Previous by thread: Using a view with some parameters
- Next by thread: Re: Using a view with some parameters
- Index(es):