Hi guys,
I'm new to Phalcon and I'm using mvc/multiple (which I download from here: https://github.com/phalcon/mvc) example to explore things. In the mvc/multiple example, I have added:
<?php
namespace Multiple\Frontend\Controllers;
class IndexController extends \Phalcon\Mvc\Controller
{
public function indexAction()
{
// I have added the below test code
$this->view->disable();
$response = new \Phalcon\Http\Response();
$response->redirect("https://www.google.com",TRUE)
echo "If this page is not redirected then it will display this";
}
}
And I haven't modified anything else. All other things are kept intact. The redirect is not working and it's displaying the echo message. I have tried removing TRUE also so that Phalcon may automatically detect it as an external url. But still the same.
Phalcon Version: 1.3.2
OS : Windows 7 32 bit
PHP version : 5.5 (installed using XAMPP) [Phalcon installed perfectly using DLL]
What am I doing wrong here? Kindly provide a solution.