Re: view group, photo, blog in foreach statement

2012-11-24 Thread Chris
solved,... On Friday, November 23, 2012 9:53:16 PM UTC-8, Chris wrote: hi guys,... is there a way of show group, blog, photo,... whichever comes in in notification table I have a view of: ?php $i = 0 ? ?php foreach($notes as $note): ? ?php echo

Re: CakePHP on AWS using Elastic Beanstalk

2012-11-24 Thread Mohammad Naghavi
Hi Bob, I just skipped the automatic deployment, set up a machine and installed all the needed apps myself and it worked. You have to do some extra work yourself or just forget the AWS. regards, Mohammad Java C# desktop developer PHP web developer

Re: send emails

2012-11-24 Thread raj kumar Pustela
On Wednesday, August 8, 2012 12:14:59 PM UTC+5:30, raj kumar Pustela wrote: hi all, I am struggled one thing if any one know please help me. how to create google maps in cakephp 2.0.3 through lat and lang dynamically. and how to send emails using wamp server . -- Like

[Run TEST] Erro: Call to undefined method PHPUnit_Framework_AssertionFailedError::getComparisonFailure()

2012-11-24 Thread Lucas Simon Rodrigues Magalhaes
Fatal Error *Erro: * Call to undefined method PHPUnit_Framework_AssertionFailedError::getComparisonFailure() *File: */home/lucas/public_html/eventos-backend/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php *Line: * 252 Whats wrong? -- Like Us on FaceBook

Cake not putting quotes around field value when doing an UpdateAll

2012-11-24 Thread Daniel
I am using UpdateAll in my Users controller as follows: $this-User-MsgReceived-updateAll( array( 'MsgReceived.from_user_id' = 'null', 'MsgReceived.sender' = $username ), array('MsgReceived.from_user_id' = $user_id) ); This causes an error because Cake is not putting quotes

Data not being saved

2012-11-24 Thread Daniel
In my Users controller I am trying to save to another model: $this-loadModel('Delemail'); $de_data = array( 'Delemail' = array( 'username' = $username, 'email' = $email, 'blacklisted' = 'false' ) ); $this-Delemail-Create(); $this-Delemail-Save($de_data); I don't see

Re: Cake not putting quotes around field value when doing an UpdateAll

2012-11-24 Thread Daniel
I put quotes around the field value and this fixed the problem: 'MsgReceived.sender' = ''.$username.'' -- 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

Solution for CakePHP newbies who are stuck with messages like - Error: PostController could not be found

2012-11-24 Thread Mike Pritchard
I struggled with the problems described in messages from new CakePHP users. The Cake install looked OK, but when I went through the Blog Adding a Layer tutorial I'd get these kinds of messages. Error: PostController could not be found Error: Create the class PostController below in file:

Dynamic Subdomains as Parameter

2012-11-24 Thread treckstar
Hi everyone. I am working on a little project to learn more about Cake that involves using a locale as a sub domain. An example of a popular website that incorporates this type of functionality is craigslist. ex: pittsburgh.craigslist.org I am running the latest version of Cake, 2.2.3 on a

Re: Data not being saved

2012-11-24 Thread Jeremy Burns : Class Outfit
Are you checking for validation errors? A couple of suggestions: use -create and -save (note the lower case letters) Try -save($de_data['Delemail']) Are you sure you mean 'false' and not false or 0? Try: if (!$this-Delemail-save($de_data['Delemail'])) {

Re: Dynamic Subdomains as Parameter

2012-11-24 Thread Andras Kende
Hello, You could do something like this to start: protected function _getSubDomain() { $url = explode('.', $_SERVER['HTTP_HOST']); return $url[0]; } public function index() { $locale = $this-_getSubDomain();