Re: Login

2010-07-22 Thread Velmurugan Kuberan
Very thanks Norman thats a smarter solution

On Jul 22, 12:38 am, Norman Paniagua normanpania...@gmail.com wrote:
 I think you want to access the login something 
 likehttp://localhost/login(ifcake is in your webroot folder) then you
 need to add a rule in the
 config/routes.php

 Router::connect('/login', array('controller'='users', 'action'='login'));

 ---

 Norman Paniagua
 Desarrollo / WSDcamp

 + 595 981 184 430www.webcamp.com

 Este correo contiene información confidencial y NO debe ser reenviada a otro
 destinatario sin la autorización del remitente. Si Ud. recibe este correo
 por error favor informe al remitente y elimine completamente la información
 recibida.

 2010/7/21 Germano germano.c...@gmail.com



  I can create a model and define it as Auth userModel on beforeFielter
  callback of your AppController.

  function beforeFilter() {
      $this-Auth-userModel = 'Login';
                   .
                   .
                   .
  }

  and you can define inflections on bootstrap.php for pural of login
  become login to, and create LoginController as your user
  authentication controller.

  On 21 jul, 14:19, Velmurugan Kuberan vkube...@gmail.com wrote:
   Hi,

   I just want to create a login controller in cake.. the url will
   probably like thishttp://localhost/cake/login/ifi named the
   controller like loginshttp://localhost/cake/logins/it'll not sounds
   good... is there any way of making the standalone controller for
   login... i don't want it to be like
  thishttp://localhost/cakephp/users/login..

   Thanks

  Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
  with their CakePHP related questions.

  You received this message because you are subscribed to the Google Groups
  CakePHP group.
  To post to this group, send email to cake-php@googlegroups.com
  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.c 
  omFor more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Login

2010-07-21 Thread Velmurugan Kuberan
Hi,

I just want to create a login controller in cake.. the url will
probably like this http://localhost/cake/login/ if i named the
controller like logins http://localhost/cake/logins/ it 'll not sounds
good... is there any way of making the standalone controller for
login... i don't want it to be like this http://localhost/cakephp/users/login..


Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Javascript include error

2010-07-21 Thread Velmurugan Kuberan
I create a default layout and added css and javascript into it like
the following,

For CSS I added the following lines in the head section of the
default.ctp in layout folder

echo $html-css('reset', 'stylesheet', array(media=screen)).\r
\n;
echo $html-css('style', 'stylesheet', array(media=screen)).\r
\n;
echo $html-css('invalid', 'stylesheet', array(media=screen)).\r
\n\r\n;

It worked finely.

Then I need to add javascript functionality

So I added a line like this after the above code

!--   Javascripts   --
!-- jQuery --
?php
echo $javascript-link(array('jquery-1.3.2.min'));
?


I copy jquery-1.3.2.min to the default webroot/js folder (followed the
cakephp convention)

But I got a warning message like this:

Notice (8): Undefined variable: javascript [APP\views\layouts
\default.ctp, line 26]
Fatal error: Call to a member function link() on a non-object in D:
\xampp\htdocs\cakephp127\app\views\layouts\default.ctp on line 26

I even use $javascript-includeScript() but again I got the same
warning

I can't able to use the javascript functionality,

I am new to cakephp, so I want to know where I am making mistake.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en