Re: Using Notepad++ to edit .ctp files

2014-04-07 Thread Shivdhwaj Pandey
Thanks alot :)

On Friday, 14 August 2009 15:42:56 UTC+5:30, simplecy wrote:
>
> To get Notepad++ to view .ctp files as if they were .php files:- 
>
> Open Notepad++ 
> Select Settings then Style Configurator 
> Select php as the language and enter ctp in the user ext box and the 
> Save&Close. 
>
> Restart Notepad++ and it will now apply the same syntax highlighting 
> to ctp files as php files. 
>
> I'm posting this here as it took me a while to Google the information 
> so hopefully this will improve things for future newbies :) 
>
> regards 
>
> Simon 
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: The request has been black-holed

2013-09-04 Thread SHIVDHWAJ PANDEY
Do you found the solution for this problem "The request has been 
black-holed". As i am facing this too but cant find out how to solve it ?

On Thursday, 14 June 2012 18:50:49 UTC+5:30, jmail wrote:
>
> Hi all!
>  
> I've got a stupid problem :/ 
>  
> I am building small chat. I need that for my customer - it's not importand
>  
> I've got:
>  
> AppController:
>  
>  App::uses('Controller', 'Controller');
> class AppController extends Controller {
>  var $uses = array('Config', 'Chat', 'User');
>  var $helpers = array('Form', 'Html', 'Session');
>  var $components = array('Session', 'RequestHandler');
>  var $nonLoginActions = array(
>   'chat' => array('login')
>  );
>  public function beforeFilter() {
> parent::beforeFilter();
>   $this->getConfig();
>   $this->checkSession();
>  }
>  
>  function getConfig(){
>   $config = $this->Config->find('all');
>   foreach($config as $element){
>Configure::write('config.'.$element['Config']['name'], 
> $element['Config']['value']);
>   }
>  }
>  
>  function checkSession(){
>   if(isset($this->nonLoginActions[$this->request->params["controller"]])){
>if(!in_array($this->request->params["action"], 
> $this->nonLoginActions[$this->request->params["controller"]])){
> if(CakeSession::read("user") === null || CakeSession::read("user") === 
> false){
>  $this->redirect(array('controller' => 'chat', 'action' => 'login'));
> }
>}
>   }
>  }
>  
> }
>  
>  
> Controller - ChatController
>  
>  /*
>  * To change this template, choose Tools | Templates
>  * and open the template in the editor.
>  */
> /**
>  * Description of ChatController
>  *
>  * @author jmail
>  */
> class ChatController extends AppController{
>  var $components = array('Session', 'RequestHandler', 'Security');
>  
>  function login(){
>   
>  }
>  
> }
>  
> View - login.ctp
>  
> Logowanie
> Form->create('User', array('inputDefaults' => 
> array('label' => false,'div' => false)));?>
> Form->input('login', array('type' => 'text', 'label' => 
> 'Login'));?>
> Form->input('pass', array('type' => 'password', 'label' 
> => 'Hasło'));?>
> Form->end(array('value' => 'Zaloguj się', 'label' => 
> 'Zaloguj się',  'div' => false));?>
>  
> Layout - default.ctp
>  
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
>  
> echo $this->Html->css('cake.generic');
>  ?>
> 
> 
>  
>   
>MiniChat
>   
>   
>fetch('content'); ?>
>   
>  
> 
> 
>  
> And my problem is:
>  
> When i go to the http://site/chat/login and press submit button I get
>  
> The request has been black-holed
>
> *Error: * The requested address *'/chat/login'* was not found on this 
> server.
>
>  
>
> Everything is empty. What the hell I am doing wrong?
>
> cakephp-cakephp-2.1.3-28-g645e981
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.