Re: Naming Conventions

2012-07-12 Thread Greg Skerman
The fact that it's referring to the favorites table and not favorite_posts leads me to believe there's something screwy in your schema. Can you post your table struct? On Friday, July 13, 2012, Advantage+ wrote: > Yes that is correct but it will not bake the view. I get error saying > Favorite T

Pre BC Dates?

2012-07-12 Thread Michael Gaiser
So my website will have a time line, along with dates that range before 0 AD. What would be the best way to tackle this issue? ~Michael -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help o

Re: How to use ClassRegistry::getObject('view') in cake 2.2?

2012-07-12 Thread José Lorenzo
$this->_View in your helper On Tuesday, July 10, 2012 2:27:37 PM UTC-4:30, Lucas Simon Rodrigues Magalhaes wrote: > > I'm using this, $view =& ClassRegistry::getObject('view'); in my Helper > but does not work. > > I imported App::uses('ClassRegistry', 'Utility'); > > but nothing ... and my debu

Re: Fresh Bake

2012-07-12 Thread Arafat
Hello, Please download the fresh copy of cake and follow the folling steps for baking Bake on windows http://arafats.info/cakephp-cake-bake-on-windows/ Bake on ubundu http://arafats.info/cake-bake-in-ubuntu/ Thanks http://arafats.info On Friday, July 6, 2012 6:31:59 AM UTC+6, advantage+ wrote:

Re: Translate behaviour not working as expected

2012-07-12 Thread spyy
same problem here! wenn a browser specifies no language, no results are shown...also wenn their is no translation for a specific language. but i want to show articles from a language... Am Montag, 7. Mai 2012 14:04:21 UTC+2 schrieb manzapanza: > > Hi, > Probably you need to enter "manually" in i

Re: Problem with adding records

2012-07-12 Thread lowpass
The only thing that I can think of is that your id column has reached its limit (something over 2 billion) and has rolled back to zero. But I doubt that's the problem. You could try dropping and recreating the users table (or just the id column). On Wed, Jul 11, 2012 at 11:59 PM, mohit kumar wro

RE: Naming Conventions

2012-07-12 Thread Advantage+
Yes that is correct but it will not bake the view. I get error saying Favorite Table cannot be found in the console. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Greg Skerman Sent: Thursday, July 12, 2012 3:12 AM To: cake-php@googlegroups.com Subject: Re: Nami

Re: SaveAll issue with nested arrays

2012-07-12 Thread Michael Gaiser
This is from the docs: "The saveAll function is just a wrapper around the saveMany and saveAssociated methods. it will inspect the data and determine what type of save it should perform. If data is formatted in a numerical indexed array, saveMany will be called, otherwise saveAssociated is used."

Re: Looping through actions?

2012-07-12 Thread mohit
Thanks Greg On Thursday, July 12, 2012 11:55:13 AM UTC+5:30, Greg wrote: > > http://php.net/manual/en/function.get-class-methods.php > > alternatively use reflection. > > > On Thu, Jul 12, 2012 at 3:59 PM, mohit kumar wrote: > >> Just a query.. >> Is it possible to loop through all the actions o

How to test login?

2012-07-12 Thread resting
I have a users controller, and it has a login action. So, how do I write a test case for this login action. For simplicity sake, lets just say all this action does is to redirect user if authentication passed, else display a message with setFlash. I'm thinking of creating a mock post request to

Form file upload problem

2012-07-12 Thread technobulka
create input file: > > $this->Form->file('color.'.$prod_color['id'].'.images.'.$i) > in html i see: > data[color][1][images][0] ... data[color][1][images][9] but debug($this->data['color']) looks like: > Array > ( > [1] => Array > ( > [images] => Array >