Re: Sending mail through Gmail with CakeEmail (again)?

2012-10-25 Thread Chetan Varshney
I am using Gmail SMTP on local host and web server as well here is my code.

In email.php inside app/Config

public $gmail = array(
'transport' = 'Smtp',
'host' = 'ssl://smtp.gmail.com',
'port' = 465,
'timeout' = 3,
'username' = 'yourem...@gmail.com',
'password' = 'yourpassword',
'client' = null,
'log' = true
//'charset' = 'utf-8',
//'headerCharset' = 'utf-8',
);


And in any controller for sending emails-

$fromConfig = 'Sender Email';
$fromNameConfig = 'Sender Email';
$emailObj = new CakeEmail();
$emailObj-from(array( $fromConfig = $fromNameConfig));
$emailObj-sender(array( $fromConfig = $fromNameConfig));
$emailObj-subject('Mail Subject');
$body='Mail Body';
// we are using gmail config for sending mails through Gmail Smtp
$emailObj-config('gmail');
$result = $emailObj-send($body);


On Wed, Oct 24, 2012 at 11:12 AM, Vanja Dizdarević 
lex.non.scri...@gmail.com wrote:

 Sorry for not bumping old topics, but has anyone managed to send an email
 with CakeEmail and stmp.gmail.com?

 My settings:
 class EmailConfig {
 public $gmail = array(
  'transport' = 'Smtp',
 'from' = array('u...@domain.com' = 'Name'),
  'host' = 'ssl://smtp.gmail.com',
 'port' = 465,
  'timeout' = 10,
 'username' = 'u...@domain.com',
  'password' = 'youwishyouknew',
 'client' = null,
 'log' = true,
  //'charset' = 'utf-8',
 //'headerCharset' = 'utf-8',
 'emailFormat' = 'html'
  );

 My Controller code:
 function test_email(){
 $mail = new CakeEmail('gmail');
 $mail-addTo('u...@anotherdomain.com', 'User');
 $mail-from('u...@domain.com', 'User');
 $mail-subject('TESTING '.rand(10, 100));
 $mail-template('test', 'default');
 $return = $mail-send();
 debug($return);
 debug($mail);
 die();
 }
 I keep getting Connection timeouts and Socket errors. Basically, the damn
 thing won't even connect, auth is never even touched. (neither dev, nor
 production machine..)

 I am using Google Apps on that domain (same domain as the production, not
 that it should matter...)

 I have checked for mod_openssl on the server.
 I have double checked the auth info.
 I am using Cake 2.2.1

 Is there something else I'm missing? Or should I just search for another
 email library?

 Thanks! Cheers!

 --
 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 post to this group, send email to cake-php@googlegroups.com.
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.






-- 
Chetan Varshney
Ektanjali Softwares Pvt Ltd

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




ajax submit and reset form after submission

2012-10-25 Thread Chris
hi guys,... is there a way to reset form after ajax submission...? or do I 
have to go thru jquery submission? 
here is my form: 

?php echo $this-Form-create('PhotoComment'); ? 
?php echo $form-hidden('user_id', array('value' = 
$user_object['id'])) ?
?php  echo $this-Form-textarea('content', array('rows' = '3')); ?

?php echo $ajax-submit('Add', array('url'= 
array('controller'='photo_comments', 'action'='ajax_add/'. 
$photo['Photo']['id'] ), 'update' = 'updateDiv')); ? 

 div class=clr/div

div id=updateDiv style=margin: 10px 0 10px 0;/div 

thanks in advance 
chris 


-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: ajax submit and reset form after submission

2012-10-25 Thread Chetan Varshney
You can call javascript function on complete


?php echo $ajax-submit('Add', array('url'= array('controller'='photo_
comments', 'action'='ajax_add/'. $photo['Photo']['id'] ), 'update' =
'updateDiv', 'complete' = 'javascript:resetThisForm();')); ?

script
function resetThisForm()
{
document.getElementById(FormId).reset();
}
/script

On Thu, Oct 25, 2012 at 1:15 PM, Chris chris...@yahoo.com wrote:

 hi guys,... is there a way to reset form after ajax submission...? or do I
 have to go thru jquery submission?
 here is my form:

 ?php echo $this-Form-create('PhotoComment'); ?
 ?php echo $form-hidden('user_id', array('value' =
 $user_object['id'])) ?
 ?php  echo $this-Form-textarea('content', array('rows' = '3')); ?

 ?php echo $ajax-submit('Add', array('url'=
 array('controller'='photo_comments', 'action'='ajax_add/'.
 $photo['Photo']['id'] ), 'update' = 'updateDiv')); ?

  div class=clr/div

 div id=updateDiv style=margin: 10px 0 10px 0;/div

 thanks in advance
 chris


  --
 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 post to this group, send email to cake-php@googlegroups.com.
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.






-- 
Chetan Varshney
Ektanjali Softwares Pvt Ltd

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CakeResponse::expires() Fatal Error

2012-10-25 Thread gimmebucks
anyone?

On Monday, 22 October 2012 17:15:10 UTC+8, gimmebucks wrote:

 I'm using cake 2.2.2 and trying to set expires headers.
 in my AppController.php

 public function beforeRender(){
 CakeResponse::expires(new DateTime('+5 day'));
 }


 but i got this error

 *Fatal error*: Call to undefined method 
 CakeErrorController::_getUTCDate() in *
 F:\www\mail-us\lib\Cake\Network\CakeResponse.php* on line *858*


 please help.
 p/s : i'm trying this on individual action but got the same error. 



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: ajax submit and reset form after submission

2012-10-25 Thread Chris
Thanks Chetan, !! it works, 


On Thursday, October 25, 2012 1:13:20 AM UTC-7, chetan varshney wrote:

 You can call javascript function on complete


 ?php echo $ajax-submit('Add', array('url'= array('controller'='photo_
 comments', 'action'='ajax_add/'. $photo['Photo']['id'] ), 'update' = 
 'updateDiv', 'complete' = 'javascript:resetThisForm();')); ?
  
 script
 function resetThisForm()
 {
 document.getElementById(FormId).reset();
 }
 /script

 On Thu, Oct 25, 2012 at 1:15 PM, Chris chri...@yahoo.com javascript:wrote:

 hi guys,... is there a way to reset form after ajax submission...? or do 
 I have to go thru jquery submission? 
 here is my form: 

 ?php echo $this-Form-create('PhotoComment'); ? 
 ?php echo $form-hidden('user_id', array('value' = 
 $user_object['id'])) ?
 ?php  echo $this-Form-textarea('content', array('rows' = '3')); ?

 ?php echo $ajax-submit('Add', array('url'= 
 array('controller'='photo_comments', 'action'='ajax_add/'. 
 $photo['Photo']['id'] ), 'update' = 'updateDiv')); ? 

  div class=clr/div

 div id=updateDiv style=margin: 10px 0 10px 0;/div 

 thanks in advance 
 chris 


  -- 
 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 post to this group, send email to cake...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 cake-php+u...@googlegroups.com javascript:.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.
  
  




 -- 
 Chetan Varshney
 Ektanjali Softwares Pvt Ltd



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: CakeResponse::expires() Fatal Error

2012-10-25 Thread euromark
it seems you are triggering an error and the CakeErrorController does not 
know how to handle this method
but why are you doing that statically?

if anything it should be
$this-response-expires()



Am Donnerstag, 25. Oktober 2012 12:11:10 UTC+2 schrieb gimmebucks:

 anyone?

 On Monday, 22 October 2012 17:15:10 UTC+8, gimmebucks wrote:

 I'm using cake 2.2.2 and trying to set expires headers.
 in my AppController.php

 public function beforeRender(){
 CakeResponse::expires(new DateTime('+5 day'));
 }


 but i got this error

 *Fatal error*: Call to undefined method 
 CakeErrorController::_getUTCDate() in *
 F:\www\mail-us\lib\Cake\Network\CakeResponse.php* on line *858*


 please help.
 p/s : i'm trying this on individual action but got the same error. 



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: cakephp app as part of static site

2012-10-25 Thread sso
I tested by uploading to my personal site ... and it works :)
thanks a lot 

On Wednesday, 24 October 2012 10:50:41 UTC-4, sso wrote:

 Thanks a lot. Seems like it might work :)
 There seems to be a missing mysql db driver, which my search online says 
 is because of missing PDO driver for mysql.
 I'll update once the (slow) web-hosting team updates the driver settings

 Thx a lot :)

 R

 On Wednesday, 24 October 2012 08:19:52 UTC-4, PaulW wrote:

 Hi 

 There's nothing particularly clever needs doing for this. I did exactly 
 the same thing recently where we built a mini site to sit in a sub folder 
 of the customer's existing site. 

 The only 'issue' I had was I had to edit the standard .htaccess files 
 slightly to set the RewriteBase path properly (which I got help from on 
 this list) you might not even need to do this but what I ended up with 
 was.. 

 mysite.com/webapp/.htaccess 

 IfModule mod_rewrite.c 
  RewriteEngine on 
  RewriteBase /webapp 
  RewriteRule^$ app/webroot/[L] 
  RewriteRule(.*) app/webroot/$1 [L] 
 /IfModule 

 mysite.com/webapp/app/.htaccess 

 IfModule mod_rewrite.c 
   RewriteEngine on 
   RewriteBase /webapp/app/ 
   RewriteRule^$webroot/[L] 
   RewriteRule(.*) webroot/$1[L] 
 /IfModule 

 mysite.com/webapp/app/webroot/.htaccess 

 IfModule mod_rewrite.c 
   RewriteEngine On 
   RewriteBase /webapp/app/webroot/ 
   RewriteCond %{REQUEST_FILENAME} !-d 
   RewriteCond %{REQUEST_FILENAME} !-f 
   RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] 
 /IfModule 

 Cheers 

 Paul 



 On 23 Oct 2012, at 23:25, sso raj...@gmail.com wrote: 

  Hi, 
  
  I have kind of an unique situation. 
  I have developed a cakephp app and need to deploy it to a shared server 
 with content. 
  I know generally we are supposed to have static content in webroot, but 
 am not allowed to do so, as this application needs to be removed later on. 
  
  its a shared hosting and i can't change DocumentRoot or any admin 
 related settings. I can however add .htacces files. 
  
  I have my files in the following order: 
  /webapp 
 /app 
 /lib 
 ... 
 /webroot 
  
  I guess you get the point. 
  I was planning to deploy the entire 'webapp' folder along with the 
 static site and have the login link so the people can come to the site as 
 http://mysite.com/webapp/users/login. 
  Unfortunately I do not know the correct way to do this. I hope to 
 preserve the directory structure as-is so that someone coming after me can 
 easily modify and delete it. 
  
  Any help is appreciated. 
  
  -- 
  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 post to this group, send email to cake...@googlegroups.com. 
  To unsubscribe from this group, send email to 
 cake-php+u...@googlegroups.com. 
  Visit this group at http://groups.google.com/group/cake-php?hl=en. 





-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




phpCAS with CakePHP

2012-10-25 Thread sso
Hi,

I am looking for help with phpCAS and CakePHP.
I followed the tutorial/instructions at: 
http://bakery.cakephp.org/articles/pietro.brignola/2010/10/12/casauth_4_cakephp_4
 to 
connect to the CAS server.

The system properly redirects to the CAS login page and once logged-in 
tries to redirect to the application.
As per instructions, I have changed the password of all users to blank via 
the application so that it adds a hash value in database for blank 
password. As you would have guessed, not everyone authenticated via CAS is 
eligible for application and different people have different roles.

The problem I am facing is that once authenticated the system redirects to 
my page where somehow it fails with an error shown below:


*Warning* (2): DOMDocument::loadXML() [domdocument.loadxml 
http://rajankz.com/sso/users/domdocument.loadxml]: Empty string supplied as 
input [*APP/Vendor/CAS/CAS/CAS/Client.php*, line *2766*]
Code Context

DOMDocument::loadXML() - [internal], line ??
CAS_Client::validateCAS20() - APP/Vendor/CAS/CAS/CAS/Client.php, line 2766
CAS_Client::isAuthenticated() - APP/Vendor/CAS/CAS/CAS/Client.php, line 1221
CAS_Client::forceAuthentication() - APP/Vendor/CAS/CAS/CAS/Client.php, line 1080
phpCAS::forceAuthentication() - APP/Vendor/CAS/CAS/CAS.php, line 1100
CasAuthComponent::startup() - APP/Controller/Component/CasAuthComponent.php, 
line 40
ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 130
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 671
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 183
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 92

CAS Authentication failed!

You were not authenticated.

You may submit your request again by clicking here.

If the problem persists, you may contact the administrator of this 
sitesupp...@supportwebsite.com
.
--
phpCAS 1.3.1 using server https://changed for security purpose/ (CAS 2.0)
*phpCAS error*: *phpCAS::client(): phpCAS::client() has already been called 
(at 
/home/content/89/8244189/html/sso/app/Controller/Component/CasAuthComponent.php:36)
* in*
/home/content/89/8244189/html/sso/app/Controller/Component/CasAuthComponent.php
* on line *36*
*--*
*
*
if i click on the server link above(removed), i see a page saying that I 
was authenticated.
how do i fix so that an empty string is not supplied as input. seems like 
this happened because it went in a loop or something.

Thanks for help.
*
*

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Login not Working on Deploy Sever...

2012-10-25 Thread GerarD
I did what you said and still nothing. It's not working =/.

El martes, 23 de octubre de 2012 11:32:38 UTC-4:30, gimmebucks escribió:

 I got similar problem few months ago but it's ok after clear browser cache 
 and delete server /app/tmp/cache files.

 On Saturday, 20 October 2012 06:24:13 UTC+8, GerarD wrote:

 Hi there... I don't think that's the problem. I check all my data in the 
 DB and the Query, and it's all fine...

 I did change something in the configuration of cake to use the tmp folder 
 to store sessions.. I though maybe that would be the problem, but noup... 
 it's still not working my login.. 

 Any other idea.?

 Thanks Vanja



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Is it really neccessary to use h function on all fields?

2012-10-25 Thread Daniel
Is it really neccessary to use the h function on int, boolean, date or 
calculated fields etc?

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Login not Working on Deploy Sever...

2012-10-25 Thread Ali Wasif
Delete the browser cache and try again. If that does not work change the
username and password then try again. It should work.

On Thu, Oct 25, 2012 at 9:55 PM, GerarD gerard.lea...@gmail.com wrote:

 I did what you said and still nothing. It's not working =/.

 El martes, 23 de octubre de 2012 11:32:38 UTC-4:30, gimmebucks escribió:

 I got similar problem few months ago but it's ok after clear browser
 cache and delete server /app/tmp/cache files.

 On Saturday, 20 October 2012 06:24:13 UTC+8, GerarD wrote:

 Hi there... I don't think that's the problem. I check all my data in the
 DB and the Query, and it's all fine...

 I did change something in the configuration of cake to use the tmp
 folder to store sessions.. I though maybe that would be the problem, but
 noup... it's still not working my login..

 Any other idea.?

 Thanks Vanja

  --
 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 post to this group, send email to cake-php@googlegroups.com.
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.




-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Is it really neccessary to use h function on all fields?

2012-10-25 Thread Felipe Zavan
It's up to you, but it's a good habit to use it. h is just a wrapper
for htmlspecialchars()

http://book.cakephp.org/1.3/view/1132/h

http://php.net/manual/pt_BR/function.htmlspecialchars.php

2012/10/25 Daniel danwgr...@gmail.com:
 Is it really neccessary to use the h function on int, boolean, date or
 calculated fields etc?

 --
 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 post to this group, send email to cake-php@googlegroups.com.
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.



-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Is it really neccessary to use h function on all fields?

2012-10-25 Thread euromark
no, only for fields which can contain strings and therefore potentially 
harmlos characters
so bools/ints/floats and date fields are usually not necessary to wrap in 
h()


Am Donnerstag, 25. Oktober 2012 19:08:18 UTC+2 schrieb Daniel:

 Is it really neccessary to use the h function on int, boolean, date or 
 calculated fields etc?

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Help with Deployment: CakePHP App (AppServer) behind Firewall with a Seperate WebServer

2012-10-25 Thread Blues Clues
Hi
I am lost here. We need to deploy our first CakePHP application using 
3-tier architecture as follows. My CakePHP already works on my localhost 
however, we need to place CakePHP app inside firewall and have webserver 
outside firewall that actually processes user requests.

How can we deploy something like this?. We need to protect all the code 
written (Controllers, Models, Views) in CakePHP by keeping it behind 
firewall. 

Required Architecture:

1. Web Server -  Just receives requests/sends responses back to the user. 
This is outside firewall.

2. App Server - This is where we have CakePHP code. Receives Requests 
'Only' from webserver and processes requests using CakePHP M-V-C and 
responds to WebServer.

3. Database Server - This is where we have Database engine running. This 
server receives requests from AppServer. CakePHP AppServer simply connects 
to this Database Server.

As of now, my localhost has Web/AppServer running. I don't like this 
architecture as my localhost has CakePHP code developed by us.

Any ideas...I thought this is no brainer but now, I am perplexed as how I 
can split WebServer and AppServer(CakePHP). 

Thanks
Blues Clues

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




bring data from database and populate a radio button with this data

2012-10-25 Thread sitemetria
I would like to bring data from database and populate a radio button with 
this data. How can I do this? 

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




How can i retrieve data and put in a radio button

2012-10-25 Thread SITEMETRIA
I would like to bring data from database and populate a radio button 
with this data. How can I do this?


--
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Sending mail through Gmail with CakeEmail (again)?

2012-10-25 Thread kendosan
*check Google settings Account for ' allow* authentication' -- IMAP and 
POP3?  is active for the *SMTP* server in your mail client

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




usuário não consegue se conectar

2012-10-25 Thread Fillipe Norton
Boa noite pessoal,

sou novo com o Php e estou precisando muito dar manutenção em uma aplicação 
que foi desenvolvida com o framework cakephp

O que está acontecendo é o seguinte: 

O usuário tenta logar no sistema e não consegue, quando o usuário e senha 
existem, ele passa pela autenticação mas retorna a tela de login e só!

Quando o usuário ou senha não conferem aí sim ele apresenta a mensagem da 
validação.

Bom, de ontem pra hoje o no código fonte da app nada foi alterado. Segundo 
o pessoal da infra também nada foi mexido.

Vocês sugerem alguma coisa ? já aconteceu algo parecido com alguém ? o que 
posso investigar ?

Já reiniciei o servidor do banco de dados, o servidor web (apache), e como 
disse, segundo o pessoal está tudo certo com relação a aos servidores.

Agradeço qualquer dica.

Fillipe Norton

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: usuário não consegue se conectar

2012-10-25 Thread Wallace Cardoso Colaco Ricardo
Ola Felipe,

Manda o código pra gente, especificamente a parte da configuracão do 
AuthComponent.

Abs

On Oct 25, 2012, at 9:24 PM, Fillipe Norton wrote:

 Boa noite pessoal,
 
 sou novo com o Php e estou precisando muito dar manutenção em uma aplicação 
 que foi desenvolvida com o framework cakephp
 
 O que está acontecendo é o seguinte: 
 
 O usuário tenta logar no sistema e não consegue, quando o usuário e senha 
 existem, ele passa pela autenticação mas retorna a tela de login e só!
 
 Quando o usuário ou senha não conferem aí sim ele apresenta a mensagem da 
 validação.
 
 Bom, de ontem pra hoje o no código fonte da app nada foi alterado. Segundo o 
 pessoal da infra também nada foi mexido.
 
 Vocês sugerem alguma coisa ? já aconteceu algo parecido com alguém ? o que 
 posso investigar ?
 
 Já reiniciei o servidor do banco de dados, o servidor web (apache), e como 
 disse, segundo o pessoal está tudo certo com relação a aos servidores.
 
 Agradeço qualquer dica.
 
 Fillipe Norton
 
 -- 
 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 post to this group, send email to cake-php@googlegroups.com.
 To unsubscribe from this group, send email to 
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.
  
  

-- 
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.