Re: Cakephp is generating empty options to "select" the component

2013-07-11 Thread raj kumar Pustela
yes cakephp is generating empty options Form->input('role',array('options' => h(array(; ?> On Fri, Jul 12, 2013 at 9:01 AM, salman farisi wrote: > try this one : > > echo $this->Form->input('situacao_venda_id', array('option'=> > $situacaoVendas)); > > > On Wed, Jul 10, 2013 at 4:47 PM, A

Re: RewriteRule not working as before

2013-07-11 Thread boris
If there are a hundred of rules Router :: connect () really slows the application. For larger applications is a big problem. So I decided to Apache RewriteRule (CakePhp 1.3). In earlier versions of CakePHP and (1.3) all worked OK. For example simple Rule: RewriteRule ^upozorenje/index$ warnings/

Re: Cakephp is generating empty options to "select" the component

2013-07-11 Thread salman farisi
try this one : echo $this->Form->input('situacao_venda_id', array('option'=>$situacaoVendas )); On Wed, Jul 10, 2013 at 4:47 PM, AD7six wrote: > Most likely this is an encoding problem, the labels that are blank contain > non-utf8 characters. Investigating along those lines you'll probably fin

Re: Amazon AWS SimpleDB

2013-07-11 Thread Mark Neil Borromeo
Any updates on DBO for simpleDB? On Friday, April 11, 2008 11:57:16 PM UTC+8, Scott wrote: > > I'm in the process of creating a CakePHP DBO for SimpleDB. Everything > is mostly working, including all the kinds of relations. I'm planning > to release it as soon as we write enough of an applicat

Re: RewriteRule not working as before

2013-07-11 Thread AD7six
On Thursday, 11 July 2013 13:42:03 UTC+2, boris wrote: > > RewriteRule ^upozorenje/index$ warnings/index [L] > rule is not working. > If your rewrite rules aren't working - you're on your own and that's off topic for this group. Alternatively routes work. Routes work very well. Did I mention t

Re: RewriteRule not working as before

2013-07-11 Thread boris
RewriteRule ^upozorenje/index$ warnings/index [L] rule is not working. On Thursday, July 11, 2013 10:42:27 AM UTC+2, Frank de Graaf (Phally) wrote: > > Shouldn't it be: > > RewriteRule ^upozorenje/index$ warnings/index [L] > > Also, the router does a lot more than just a rewrite like that. >

Re: Cakephp findById or find return garbage value with null id

2013-07-11 Thread Chetan Varshney
Hi, I am not able to reproduce this issue any way. Which version of Cake are you using? However you can check id is null before calling findById function. On Thu, Jul 11, 2013 at 2:40 PM, Abhay Jeet Singh wrote: > Hi, > >I am fetching the data in foreach loop by id as attached file > (secur

Cakephp findById or find return garbage value with null id

2013-07-11 Thread Abhay Jeet Singh
Hi, I am fetching the data in foreach loop by id as attached file (secure_find.png). that return the garbage data for id null, although we have no record with id null. i have imported a model to another model then fetching the data. Plz suggest. Thanks in advance! -- Like Us on Face

Re: RewriteRule not working as before

2013-07-11 Thread Frank de Graaf (Phally)
Shouldn't it be: RewriteRule ^upozorenje/index$ warnings/index [L] Also, the router does a lot more than just a rewrite like that. Op donderdag 11 juli 2013 08:54:14 UTC+2 schreef boris het volgende: > > In the new version of CakePHP's RewriteRule not working as before. For > example: > Rewrite

User Authentication with 2 different tables

2013-07-11 Thread Marius Heil
Hello, what's the best approach for the following?: I have normal web users and admin users, admin users I need the admin users to stay in a different database than the webusers My admin users and web users have a different table structure that I do not want to merge. So I basically just want au

Re: how to add custome dyanmic fileds in cakephp?

2013-07-11 Thread raj kumar Pustela
Thank u for giving solution On Thu, Jul 11, 2013 at 4:00 AM, lowpass wrote: > CREATE TABLE product_attributes ( > `product_id` BINARY(36) NOT NULL, > `field` VARCHAR(255) NOT NULL, > `value` VARCHAR(255) DEFAULT NULL, > > UNIQUE (`product_id`, `field`), > CONSTRAINT `FK_product_attributes_item