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 echo $this->headLink()->prependStylesheet($this->basePath('/res/vendor/bootstrap/css/bootstrap.min.css')); ?> | |
<?php echo $this->headLink()->prependStylesheet($this->basePath('/res/vendor/bootstrap/css/bootstrap-responsive.min.css')); ?> | |
<?php echo $this->headLink()->prependStylesheet($this->basePath('/res/btit-admin/css/main.css')); ?> | |
I got | |
<link href="/github/btit/btit/public/res/vendor/bootstrap/css/bootstrap.min.css" media="screen" rel="stylesheet" type="text/css"> | |
<link href="/github/btit/btit/public/res/vendor/bootstrap/css/bootstrap-responsive.min.css" media="screen" rel="stylesheet" type="text/css"> | |
<link href="/github/btit/btit/public/res/vendor/bootstrap/css/bootstrap.min.css" media="screen" rel="stylesheet" type="text/css"> | |
<link href="/github/btit/btit/public/res/btit-admin/css/main.css" media="screen" rel="stylesheet" type="text/css"> |
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 | |
echo $this->headLink()->prependStylesheet($this->basePath().'/res/btit-admin/css/main.css') | |
->prependStylesheet($this->basePath().'/res/vendor/bootstrap/css/bootstrap-responsive.min.css') | |
->prependStylesheet($this->basePath().'/res/vendor/bootstrap/css/bootstrap.min.css'); | |
?> |
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
class Home_Controller extends Base_Controller { | |
public function action_index() | |
{ throw new Exception('pippo'); | |
return View::make('home.index'); | |
} | |
} |
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 | |
Route::get('/', function() | |
{ | |
return View::make('home.index'); | |
}); | |
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
<phpunit bootstrap="./Bootstrap.php" | |
colors="true" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
verbose="true" | |
stopOnFailure="false" | |
processIsolation="false" | |
backupGlobals="false" | |
syntaxCheck="true" |
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
in the reference | |
http://framework.zend.com/manual/1.12/en/zend.test.phpunit.html | |
is: | |
$this->request->setHeader('X-Requested-With', 'XmlHttpRequest'); | |
it should be: | |
$this->request->setHeader('X_REQUESTED_WITH', 'XMLHttpRequest'); | |
in Zend_Controller_Request_Http | |
public function isXmlHttpRequest() |
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
public function xhrsignupAction() | |
{ | |
$data = array(); | |
$data['code'] = 200; | |
$request = $this->getRequest(); | |
if ($request->isPost() && $request->isXmlHttpRequest()) { | |
} | |
throw new Zend_Controller_Action_Exception('Not Found', 404); | |
} |
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
public function xhrsignupAction() | |
{ | |
$data = array(); | |
$data['code'] = 200; | |
$request = $this->getRequest(); | |
if ($request->isPost() && $request->isXmlHttpRequest()) { | |
try { | |
$this->_helper->layout->disableLayout(); | |
$this->_helper->viewRenderer->setNoRender(true); |
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
public function testUserCanRegisterAction() | |
{ | |
$data = array( | |
'email'=>'[email protected]', | |
'password'=>'password', | |
'repassword'=>'password', | |
'domain'=>'googlish.com', | |
'country'=>'it', | |
'category'=>5, | |
'terms_accept'=>1, |
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
if ($_SERVER['APPLICATION_ENV'] == 'development') { | |
error_reporting(-1); | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
} |
OlderNewer