Re: Cakephp is generating empty options to select the component

2013-07-12 Thread raj kumar Pustela
yes cakephp is generating empty options ?php echo $this-Form-input('role',array('options' = h(array(; ? On Fri, Jul 12, 2013 at 9:01 AM, salman farisi salmandr...@gmail.comwrote: try this one : echo $this-Form-input('situacao_venda_id', array('option'= $situacaoVendas)); On Wed,

Re: Cakephp is generating empty options to select the component

2013-07-12 Thread euromark
'options' = h(array()) what is that supposed to be? you cannot arrays as strings Am Freitag, 12. Juli 2013 08:10:40 UTC+2 schrieb raj kumar Pustela: hi your requirement like this right. pls found below attach file. ?php echo $this-Form-input('role',array('options' = h(array(; ?

Auth redirect - error

2013-07-12 Thread Allan Diego
Hello, I have a redirection problem after upgrade to 2.3.7 accessing: *http://www.mysite.com/test/users/login* = logging in, I am directed to *http://www.mysite.com/teste/http://www.site.com.br/teste/ * (thats ok) but accessing:

Re: Auth redirect - error

2013-07-12 Thread euromark
unrelated but why $this-redirect('/', null, false); ? it should be just $this-redirect('/'); to properly exit on redirect Am Freitag, 12. Juli 2013 14:14:02 UTC+2 schrieb Allan Diego: Hello, I have a redirection problem after upgrade to 2.3.7 accessing:

Re: Auth redirect - error

2013-07-12 Thread Allan Diego
I have followed cook book http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/part-two.html Controller::redirect(*mixed $url*, *integer $status*, *boolean $exit*) If a user is already logged in, redirect him by adding this to your UsersController: public

Re: Auth redirect - error

2013-07-12 Thread euromark
thx, fixed that. shouldnt have been false in the first place ;) I think this is the ticket to the issue - for reference: https://cakephp.lighthouseapp.com/projects/42648/tickets/3916-fail-to-redirct-in-237 Am Freitag, 12. Juli 2013 17:38:14 UTC+2 schrieb Allan Diego: I have followed cook

Re: Content blocks via controller

2013-07-12 Thread André Luis
What i wanted is to put a $this-fetch('test') for example, but the data for this test was sent by the controller... but it seems not to be possible Em segunda-feira, 6 de agosto de 2012 16h00min32s UTC-3, André Luis escreveu: Hi people, i have a doubt, i am trying to create a content block

Re: Problems with the Translate Beahvior in Cake 2.3.7

2013-07-12 Thread kicaj
Look at http://bakery.cakephp.org/articles/kicaj/2013/01/27/internationalization_with_static_and_dynamic_content_routing_and_switching W dniu niedziela, 7 lipca 2013 12:16:25 UTC+2 użytkownik Hervé Thouzard napisał: Hello, I have many problems with the translate behavior. Here is my

Re: translate behavior - inserting in all languages at once?

2013-07-12 Thread kicaj
Use search terms: multiple language forms W dniu sobota, 6 lipca 2013 01:21:53 UTC+2 użytkownik K3 napisał: Hi, when i insert a record to a model that has Translate behavior attached, beside the record in models table, new records are inserted to the i18n table as well. for example

Re: Content blocks via controller

2013-07-12 Thread Simon Males
As previously mentioned using a view var is the correct method. On 7/13/13, André Luis cavall...@live.com wrote: What i wanted is to put a $this-fetch('test') for example, but the data for this test was sent by the controller... but it seems not to be possible Em segunda-feira, 6 de agosto