NAMES OF APPLICANT :<?php echo $modela->name;?>
PHONE NO OF THE APPLICANT :
HOUSE NUMBER OF THE APPLICANT :
PROFESSION OF THE APPLICANT :
ADDRESS OF THE APPLICANT :
SPOUSE NAME :
PdfcreaterController.php
Hi PeRoChAk, Am trying to achieve this, but i get errors. wats the best way to do it? I have attached the file for clarity purposes
<?php
class PdfcreaterController extends Controller
{
$OS='a value pulled from database table. it is not static but dynamic';// this value may be window7, ubuntu, windowxp, opensuse, mac.
if($OS=='window7')
{
public function actionWindow7()
{
$this->render('window7');
}
}//this one should render a file called window7 in the view folder
if($OS=='ubuntu')
{
public function actionUbuntu()
{
$this->render('ubuntu');
}
}//this one should render a file called ubuntu in the view folder
if($OS=='windowsxp')
{
public function actionWindowxp()
{
$this->render('windowsxp');
}
}//this one should render a file called windowsxp in the view folder
if($OS=='opensuse')
{
public function actionOpensuse()
{
$this->render('opensuse');
}
}//this one should render a file called opensuse in the view folder
else
{
public function actionMac()
{
$this->render('mac');
}
}//this one should render a file called mac in the view folder
I’m not sure if is what u are looking for but you could create a scenario or just use CActiveRecord::findByAttributes() OR CActiveRecord::findAllByAttributes()
Hi friend,hope you remember our last chat about table relations.The application am doing is to be used register businesses owned by individuals.They are issued with certificates for every business registered.One may have more than one business.This means he/ she will be issued with several certificates of registration.In-terms of database, a person having several businesses have several records in in the database tables involved.we term this a one-to-many relation.help me do the relation here is the systemhttp://thekenyayouthleague.com/icentralsystemzi have attached the database.