Re: AuthComponent using Cookies

2012-01-18 Thread Angad Nadkarni
Thanks 100rk, you pretty much answered all I needed to know. Just realized that the Cookie overhead per request is just not worth it. Best use Sessions and scale them across multiple servers appropriately when the need arises. Your suggested solutions to getting it to use Cookies instead of

Cake bake command giving error in ubuntu 11.10

2012-01-18 Thread adarsh snehajan
hi, When I giving bake command in ubuntu i am getting the following error PHP Deprecated: Comments starting with '#' are deprecated in /etc/ php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0 Welcome to CakePHP v1.2.4.8284 Console

help for a newb - internal error has occured?

2012-01-18 Thread cyboman
I'm trying to get a cakePHP site up and running in a new host environment. Everything is working except I get this mysterious error when entering the CMS portion of the site, it is also caused upon using the search feature. I did a small hack I found on the web to show more details on the error

Read configuration variables from the controller, CakePHP V2

2012-01-18 Thread Abraham Boray
I'm trying to read some of the variable I put in the configuration file Core.php. So I can have like class Variables that takes their values from the core Variable. EG class QuestionsController extends AppController { var $visite_status = Configure::read('visite_status'); } But this

Re: Read configuration variables from the controller, CakePHP V2

2012-01-18 Thread Tilen Majerle
You cannot functions while declaring propertiesso create constructor and there set value from method/function... Dne sreda, 18. januar 2012 je pošiljatelj Abraham Boray abrahambo...@gmail.com napisal: I'm trying to read some of the variable I put in the configuration file Core.php. So I can

Trouble Linking Models

2012-01-18 Thread Clint
I'm trying to link a few models together, but I'm having difficulty in linking the second level of model in. For example, say I have a Band which has many Members, many Gigs and many Records. This can be easily represented in the Band model as: var $hasMany = array('Members', 'Gigs',

Re: Trouble Linking Models

2012-01-18 Thread Jeremy Burns | Class Outfit
You set those associations up in their respective models. So, for example, in your Record model, Record hasOne Image. You can then do a find from the Band model that will bring in Records and Images. I'd recommend looking up the Containable behaviour as that will make finds really easy. Jeremy

Re: Trouble Linking Models

2012-01-18 Thread Clint
Thanks Jeremy I'll look into that. I wasn't sure if how the other models had relationships setup if they were taken into consideration or if it was just the one you were using. You set those associations up in their respective models. So, for example, in your Record model, Record hasOne

Re: Read configuration variables from the controller, CakePHP V2

2012-01-18 Thread Abraham Boray
Okay, Thank YOU :)..It's workin'! -- 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 others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: Missing GROUP BY in query SELECT Max(Alias.field1) as field1, field2 From table

2012-01-18 Thread AD7six
On Jan 17, 7:54 pm, quentin quentin.bra...@gmail.com wrote: Hi AD7six Thanks for your answer. Yes I've realized my mistake. Off course it's a sql error and I was wrong when I though that this could come from the treeBehavior because as you said : The tree behavior does not mix max() with

java script detection at the time of site load

2012-01-18 Thread vaibhav pathak
Please any one can tell me how i can detect that java script of browser is on or not in cake cake php? Thanks -- 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 others with their CakePHP

Re: Problem with pagination 2.1.0

2012-01-18 Thread Marin Marušić
I tried changing the variable name to $new as $news... I'll try your method, but... The error comes as Undefined index on $this-Paginate-numbers ... i do get the data. Limit works, and ordering. On Jan 17, 9:02 pm, Tilen Majerle tilen.maje...@gmail.com wrote: check your view file ?php foreach

Problems with URL

2012-01-18 Thread Thad
Hey guys, i'm trying to workout in an app code here but i'm getting the message: URL should be set in array format (i.e., array('controller' = 'controller', 'action' = 'action') for other than /. Fix your helper usage. Everything seems to be ok and I don't know what to do anymore. The URL is

how to count downloads

2012-01-18 Thread ahmed fakher
i want to know how to count when someone click to download some file.. important notice.. i don't store my files in database..i store it into webroot/files and i use meioupload to upload files CREATE TABLE IF NOT EXISTS `downloads` ( `id` int(11) NOT NULL AUTO_INCREMENT, `filename`

Re: Problem with TinyMCE

2012-01-18 Thread Sam Sherlock
I thought that shorttags could be ini_set. Perhaps in bootstrap.php - S On 17 Jan 2012 11:45, LipeDjow liped...@gmail.com wrote: Hi AD7six, I have the same problem, using CakePHP and TinyMCE Plugin. I saw here (

how to count downloads

2012-01-18 Thread ahmed fakher
i want to know how to count when someone click to download some file..please i need one example with answer ..cause i mam newbie important notice .. i don't store my files in database..i store it into webroot/files and i use meioupload to upload files i see this tut but i don't understand how to

Re: Cake bake command giving error in ubuntu 11.10

2012-01-18 Thread Sam Sherlock
You have a comment in the conf file mentioned, that uses # which is depreciated. You have an old version of cake installed, via apt get. You should remove it and install either 1.3 or 2.0 - S On 18 Jan 2012 09:06, adarsh snehajan adarshsneha...@gmail.com wrote: hi, When I giving bake command

Re: how to count downloads

2012-01-18 Thread euromark
a pretty similar question has just been asked a day before you posted this on ask.cakephp.org @ stackoverflow: http://stackoverflow.com/questions/8877842/how-to-count-the-number-of-user-downloads/ with probably the answer you are looking for On 18 Jan., 15:37, ahmed fakher spcial...@gmail.com

Re: java script detection at the time of site load

2012-01-18 Thread bujanga
https://www.google.com/search?q=javascript+version+check On Wed, Jan 18, 2012 at 6:52 AM, vaibhav pathak promatics.vaib...@gmail.com wrote: Please any one can tell me how i can detect that java script of browser is on or not in cake cake php? Thanks -- Our newest site for the community:

Re: Unable to save using model-save()

2012-01-18 Thread 24hours
Just noticed how foolish Im, the problem is: create( $model = NULL, $options = array ( ) ) first field should be model and i used create('Post') on Art model of course it won't work ! I thought the first field is form method without consulting the API page. Thanks for your help and the DebugKit

Re: Problems with URL

2012-01-18 Thread Florin Trifu
Hi Thad I will answer to your question without knowing the error you receive, so it might not be the solution to your problem. The link you provided in your mail, shows that you don't use the correct name for your controller. You should name your controller with the plural of the world you use.

Re: java script detection at the time of site load

2012-01-18 Thread Miles J
You can't detect if JS is enabled via PHP. On Jan 18, 7:28 am, bujanga buja...@gmail.com wrote: https://www.google.com/search?q=javascript+version+check On Wed, Jan 18, 2012 at 6:52 AM, vaibhav pathak promatics.vaib...@gmail.com wrote: Please any one can tell me how i can detect that

Re: Custom Find Type Pagination Problem - CakePHP 2.0.5

2012-01-18 Thread José Lorenzo
Check this out, this will solve your problem: https://github.com/cakephp/CakeFest-2010-Workshop/blob/master/models/event.php#L88 -- 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 others

Re: cakeDC utils csvImport - extra record

2012-01-18 Thread José Lorenzo
probably an extra line in your CSV file -- 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 others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: Starting with 1.13 or 2.0

2012-01-18 Thread José Lorenzo
2.0, no doubt! -- 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 others with their CakePHP related questions. To unsubscribe from this group, send email to

How to send variable to the custom script and run without redirect

2012-01-18 Thread kani
Controller { Action { ... $this-response-header('Location', 'http://domain/custom.php?url='. $url); $this-response-send(); // Problem is response redirecting before run below codes. / ... if ($this-Book-save($this-request-data)) { $this-Session-setFlash(__('The book has

sorting

2012-01-18 Thread Briko03
I am trying to sort my results by Result.racenum and Result.class however I've been away from php for a while and I was never very good to begin with. I have a function: function sundown($season,$race,$sex,$class,$team) { if ($season ==null){$conditions = array('Result.location' =

Re: sorting

2012-01-18 Thread Briko03
I resolved this myself: function sundown($season,$race,$sex,$class,$team) { if ($season ==null){$conditions = array('Result.location' = 'Sundown');} else if ($race ==null) {$conditions = array('Result.location' = 'Sundown','Result.season'=$season);} else if ($sex ==null)

Re: cakeDC utils csvImport - extra record

2012-01-18 Thread elogic
This is what I originally thought but I tested it with a csv file that I first opened in notepad to make sure there wasn't the extra line in there. It still generates the extra record. Any ideas? Thanks On Jan 19, 12:35 pm, José Lorenzo jose@gmail.com wrote: probably an extra line in your

Re: How to send variable to the custom script and run without redirect

2012-01-18 Thread jeremyharris
Maybe don't send the response until you're ready... Check out the api here: http://api20.cakephp.org/class/cake-response Calling send() actually sends the header, whereas header() just keeps them buffered until you're ready to send the response. -- Our newest site for the community: CakePHP