Re: Problem with Pagination of search results

2013-04-30 Thread Lilit
That's perfect! thanks again! -- View this message in context: http://cakephp.1045679.n5.nabble.com/Problem-with-Pagination-of-search-results-tp5714685p5714707.html Sent from the CakePHP mailing list archive at Nabble.com. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Hidden fields in IE (cakePHP: 2.3.2)

2013-04-30 Thread Mario Rico
I'm having a problems with Internet explorer and hidden fields. it isn't hide them. IE 10 or older cakePHP: 2.3.2 use: echo $this-Form-input('category', array('type' = 'text', 'value' = $category, 'hidden' = true, 'label' = false)); source generated: input name=data[Document][category]

Re: Hidden fields in IE (cakePHP: 2.3.2)

2013-04-30 Thread Jeremy Burns | Class Outfit
What happens when you try: echo $this-Form-hidden('category', array('value' = $category)); Jeremy Burns Class Outfit http://www.classoutfit.com On 30 Apr 2013, at 11:20:59, Mario Rico marior...@gmail.com wrote: I'm having a problems with Internet explorer and hidden fields. it isn't hide

Re: Hidden fields in IE (cakePHP: 2.3.2)

2013-04-30 Thread Mario Rico
Perfect Jeremy I wonder why it is happening only in IE. Thanks you very much. On Tuesday, 30 April 2013 11:28:31 UTC+1, Jeremy Burns wrote: What happens when you try: echo $this-Form-hidden('category', array('value' = $category)); Jeremy Burns Class Outfit http://www.classoutfit.com

Re: Hidden fields in IE (cakePHP: 2.3.2)

2013-04-30 Thread André Luis
It´s not a IE problem, if you see what is generated with your code, is an input type of text, and the hidden field is an input type of hidden, not an input type text with a hidden param... Em terça-feira, 30 de abril de 2013 07h20min59s UTC-3, Mario Rico escreveu: I'm having a problems with

Re: Cake 2.1 Events:

2013-04-30 Thread Ciul
Hi @phpMagpie, from my personal point of view, you are doing it right. Since you were not too much confident about where to attach events to the EventManager, well, I propose two ways I think, might be cleaner that in the Controller according to your example. Method #1: Use CakePHP bootstrap

Best way to set up this Relation

2013-04-30 Thread Fernando Nery Filho
Hey everybody. I am looking for some advice here. I got the following tables in my application: Movies and Celebrities. Celebrities can participate in movies as Actors, Directors and Script Writters. So, while editing a movie (or adding one) I should be able in my view to select in 3

Re: Cake 2.1 Events:

2013-04-30 Thread Ciul
Hi again @phpMagpie, I've just found two better ways to achieve what you wish. #1 Override the Model implementedEvents method. If you check the CakePHP Model class code you see that it already implements CakeEventListener class). /** * Returns a list of all events that will fire in the model

Looking for a Freelance CakePHP Programmer

2013-04-30 Thread Dyske Suematsu
Hi All, We are a web design/development firm in New York City, and we are looking for a freelance CakePHP programmer to build a website for a non-profit organization. Our client needs to sell tickets for events and collect registration information. We have someone who will be doing the

Layout and !--nocache--

2013-04-30 Thread Pablito Pablito
Hello everyone, I enabled the cache helper on one of my controllers and it's working perfectly with some major issue that has forced me to disable. I have in my default layout a call to include a file: include header.php; it's the typical header with some static menues and a sign in link an

Carregar campo tipo tinyint(1)

2013-04-30 Thread Anderson Moraes
Pessoal, boa tarde. Eu fiz um CRUD de clientes, onde um dos campos da minha tabela é do tipo tinyint(1), o nome do campo é status. Então, quando eu clico no controller edit que chama a minha view ele carrega os campos do formulário corretamente, inclusive o campo do tipo select de estados,

Re: Best way to set up this Relation

2013-04-30 Thread Ciul
Hi Fernando, an idea that it's up to you to try is implement a MovieParticipation Model. Thus: *Celebrities* *hasMany* *MovieParticipation* *Movies* *hasMany* *MovieParticipation* * * Where the MovieParticipation table might have following fields: - *id* - *celebrity_id* - *movie_id*

Re: Carregar campo tipo tinyint(1)

2013-04-30 Thread Ciul
Hi Anderson, I don't speak Portuguese but Google Translator made it :P Anderson, if you read at: http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::checkbox you will see that a tinyint(1) is likely a flag, on/off. And you are using an 'options' key in the options

Re: Security Release - CakePHP 1.2.12, 1.3.16, 2.2.8 and 2.3.4

2013-04-30 Thread Alan W
Can you tell what release this problem was introduced, I think it was 1.2RC2, right? On Sunday, April 28, 2013 4:37:05 PM UTC-4, mark_story wrote: If you are using CakePHP's PaginatorComponent without whitelisted sort fields you should upgrade as soon as possible to prevent possible SQL

subdomain cpanel error

2013-04-30 Thread Attila Szili
Hi there! Sorry for the poor english! I have a new problem after moving my site from local to the server, where i placed that in a subdomain. The problem is: Warning: include(Cake/bootstrap.php) [function.includehttp://demo.mginfo.hu/function.include]: failed to open stream: No such file or

Help with Cake Auth - Manual Login

2013-04-30 Thread James Lukensow
I'm running into a issue here, trying to get Cake to manually log a user in. Here is what I am trying to accomplish. I'm using a XML-RPC to log the user in to Vbulletin from Cakephp, what I get back are some cookies, and user info. On the CakePhp Side of things, I have a Users table, which

make a dynamic select box !

2013-04-30 Thread Khalil Charfi
how can i make a dynamic select box contain the list of names of all the clients in the database ? -- 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

Re: Help with Cake Auth - Manual Login

2013-04-30 Thread Shahruk Khan
This is the working code I have: if($this-Auth-login($user['User'])) Using this, I was able to force log my users in via Facebook. Do a find for the user and pass the User array. On Tuesday, April 30, 2013 5:22:18 PM UTC-4, James Lukensow wrote: I'm running into a issue here, trying to get

How can I keep a user logged in?

2013-04-30 Thread Shahruk Khan
The Miles component is not what I'm looking for. Right now, I log users in via Facebook or regular login. I want to do some logic in the AppController where once they are logged in, they don't have to keep relogging in every single day. Once you're logged in you stay logged in. Any tips? --

Re: Help with Cake Auth - Manual Login

2013-04-30 Thread James Lukensow
What values are you passing inside of the $user array. I assume just a username and what else? On Tuesday, April 30, 2013 9:01:45 PM UTC-6, Shahruk Khan wrote: This is the working code I have: if($this-Auth-login($user['User'])) Using this, I was able to force log my users in via Facebook.

Re: Help with Cake Auth - Manual Login

2013-04-30 Thread James Lukensow
Okay, was able to get it working by adding the following to my beforefilter: $this-set('user', $this-Auth-user()); On Tuesday, April 30, 2013 9:01:45 PM UTC-6, Shahruk Khan wrote: This is the working code I have: if($this-Auth-login($user['User'])) Using this, I was able to force log my