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
<?php | |
//config 3rd party component | |
'components'=>array( | |
... | |
'mailer'=>array( | |
'class'=>'application.extensions.mailer.EMailer', | |
'Mailer'=>'smtp', | |
'Host'=>'yourhost', | |
'SMTPAuth'=>true, | |
'Username'=>'smtpuser', |
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
tar -xzf yii-1.1.14.f0fee9.tar.gz |
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
<?php | |
// Module | |
if(isset($this->module)): echo $this->module->getName(); endif; | |
// Controller | |
echo $this->ID; | |
// Action | |
echo $this->action->id; | |
?> |
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
<?php | |
class TestModule extends CWebModule | |
{ | |
public function init() | |
{ | |
$this->setImport(array( | |
'tmp.models.*', | |
'tmp.components.*', | |
)); | |
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
<html> | |
<head> | |
<title>remove last row from a table</title> | |
<script language="JavaScript" type="text/javascript"> | |
<!-- | |
var rws; | |
function RemoveRow(obj){ | |
obj=document.getElementById(obj); | |
rws=obj.getElementsByTagName('TR'); | |
obj.removeChild(rws[rws.length-1]); |