Re: Recursive some only some associations?

2010-05-30 Thread John Andersen
Take a look at the Containable behaviour in the CakePHP manual at: http://book.cakephp.org/view/1323/Containable The Containable behaviour allows you to specify which related models are to be included in the find you are making, thus speeding up the find. Enjoy, John On May 29, 3:07 pm,

Re: helper naming convention

2010-05-30 Thread John Andersen
In your first example, the TimeLineHelper should be named TimeLine in your helpers array in the controller! Enjoy, John On May 30, 5:58 am, Bryan Lim ytbr...@gmail.com wrote: Hi all, Can someone please tell me what did I do wrong with the naming convention? I named my helper

Re: Recursive some only some associations?

2010-05-30 Thread Jeremy Burns
Here is your silver bullet: http://book.cakephp.org/view/1323/Containable Jeremy Burns jeremybu...@me.com On 29 May 2010, at 13:07, Antony wrote: Hi all, I have my models setup so: Person Item Images I want to be able to display a list of People and their images. I can

Re: user manager system(help me)

2010-05-30 Thread John Andersen
Have a look at the CakePHP manual at: http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application Is that not what you want? Or at least something with which you can expand on! Enjoy, John On May 30, 7:38 am, hoss7 hoss...@gmail.com wrote: hi i am new in cakephp i want some user

Re: ACL users permission settings

2010-05-30 Thread John Andersen
Have a look at the sample application in the CakePHP manual at: http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application Maybe that you can use as a beginning and then expand on it? Enjoy, John On May 28, 8:28 am, ET3 earthtechnolo...@gmail.com wrote: I am developing a system

Re: Deep associations

2010-05-30 Thread John Andersen
I suggest you take a look at the Containable behaviour in the CakePHP manual at: http://book.cakephp.org/view/1323/Containable as well as how to join models at: http://book.cakephp.org/view/1039/Associations-Linking-Models-Together#Joining-tables-1047 and last but maybe more important, how to

Re: custom formhelper

2010-05-30 Thread euromark
its App::Import('Helper', 'Html'); etc On 30 Mai, 02:15, luca capra luca.ca...@gmail.com wrote: Hi all, Using 1.3 stable I'm trying to override some function in a custom helper overriding a core helper (form+html) An example: dojo_html.php App::Import('Html'); class DojoHtmlHelper

helper to do a sliding animation

2010-05-30 Thread Bryan Lim
Hi all, I am looking for a helper to do a sliding animation. It is found in http://www.worldwildlife.org/ under the year of tiger animation where you can go forward or backward accordingly. if you use firebug, it's under div class=whatsInside What do we call this kinda of widget? Thanks!

Re: Release: CakePHP 1.3.1

2010-05-30 Thread Elte Hupkes
I get the exact same unserialize errors on a project previously running fine on Cake 1.3 after updating to 1.3.1. Disabling cache makes the error go away, but that's not really desirable of course.. On 30 mei, 02:48, Sergei yatse...@gmail.com wrote: Hi, just tried 1.3.1 with one of my project

Re: custom formhelper

2010-05-30 Thread luca capra
Thank for the response. I stil have a doubt about this way of proceding dojo_form.php App::Import('Form'); class DojoFormHelper extends FormHelper { var $helpers = array('DojoHtml','Js'); } In my case, I need to fork the whole FormHelper subtituting the Html occurences with DojoHtml or

Re: helper to do a sliding animation

2010-05-30 Thread mike karthauser
On 30 May 2010, at 12:08, Bryan Lim wrote: I am looking for a helper to do a sliding animation. It is found in http://www.worldwildlife.org/ under the year of tiger animation where you can go forward or backward accordingly. if you use firebug, it's under div class=whatsInside What do

Re: Release: CakePHP 1.3.1

2010-05-30 Thread Alex Seim
According to this: http://cakephp.lighthouseapp.com/projects/42648/tickets/769-unserialize-error-cakephp-131-unusable-on-windows You have to edit file.php in order to fix it (which in not desirable too) On 30 Μάϊος, 14:41, Elte Hupkes ell...@gmail.com wrote: I get the exact same unserialize

DEFAULT_LANGUAGE always used in 1.3

2010-05-30 Thread Steve Love
Hi everyone. I'm upgrading an app from Cake 1.2.5 to 1.3.1. Previously (with Cake 1.2.5) we were defining DEFAULT_LANGUAGE as a fallback like so: define('DEFAULT_LANGUAGE', 'en_US'); And then allowing a switcher in the App Controller like so: $this-Session-write('Config.language', 'xx_XX'); //

Re: helper naming convention

2010-05-30 Thread Steve Love
The error message gives you a subtle hint. With a file named time_line.php, try defining it in the controller as: var $helpers = array('TimeLine'); Steve On May 29, 8:58 pm, Bryan Lim ytbr...@gmail.com wrote: Hi all, Can someone please tell me what did I do wrong with the naming convention?

Re: Custom Session handler with DB issue

2010-05-30 Thread cricket
On May 29, 11:17 pm, jerikschaeffer jerikschaef...@gmail.com wrote: Unfortunately, everytime the session starts, meaning on every page, I'm seeing the following debug messages: Warning (2): mysqli_real_escape_string() [function.mysqli-real-escape- string]: Couldn't fetch mysqli

Re: helper to do a sliding animation

2010-05-30 Thread calvin
On our site (rottenrecords.com, the new releases and featured videos panels on the homepage) we use the jQuery Scrollable plugin. I made a helper for it, but it's not really necessary. Oh, and that WWF interface is done in flash--that's why it's all pixelated and blurry-looking. On May 30, 4:08 

Select options after validate are not displayed

2010-05-30 Thread Ziki
I have that problem that after validation, when it is again diplayed my form with error messages, there are no options in select fields. It is because options in select filds are variables declared and defined in controller action, so after validation thoose variables aren't declared and defined.

Re: Select options after validate are not displayed

2010-05-30 Thread Ed Propsner
Are you submitting the form to a different controller or action other than the one where you are setting your select values? - Ed On Sun, May 30, 2010 at 2:22 PM, Ziki zixw...@gmail.com wrote: I have that problem that after validation, when it is again diplayed my form with error messages,

Re: Select options after validate are not displayed

2010-05-30 Thread Ziki
No, same controller, same action. On 30 svi, 21:27, Ed Propsner crotchf...@gmail.com wrote: Are you submitting the form to a different controller or action other than the one where you are setting your select values? - Ed On Sun, May 30, 2010 at 2:22 PM, Ziki zixw...@gmail.com wrote: I

Re: Select options after validate are not displayed

2010-05-30 Thread Ed Propsner
And you say they are not re-populating after validation? Check to be sure that your queries are not not nested in something like this: if(empty($this-data)) { // your queries here } -Ed On Sun, May 30, 2010 at 3:20 PM, Ziki zixw...@gmail.com wrote: No, same controller, same action. On

Re: helper naming convention

2010-05-30 Thread Miles J
Yeah Cakes naming conventions can be confusing: Class: TimeLineHelper File: time_line.php Include: $helpers = array('TimeLine') On May 29, 8:03 pm, Steve Love stevel...@gmail.com wrote: The error message gives you a subtle hint. With a file named time_line.php, try defining it in the

Re: Select options after validate are not displayed

2010-05-30 Thread Ziki
Yeah, it was problem in something like that. Big thanks!! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: Prefix routing problem

2010-05-30 Thread cronet
no, i use the authsome component from debuggable... On 28 Mai, 10:18, Bogdan Bursuc bogdanbursu...@gmail.com wrote: Do you use the Auth component ? On Fri, May 28, 2010 at 9:07 AM, cronet cro...@gmx.de wrote: hm...  i solved my problem with the following route configuration:

Testing controllers - no param is set

2010-05-30 Thread cronet
Hey, i try testing controllers as described by mark story (http://mark- story.com/posts/view/testing-cakephp-controllers-the-hard-way).. The Problem - i call the method with one param but the view mehtod recognize it, even it is in $this-params... In the Test:

no flash messages in the login page using cake 1.3

2010-05-30 Thread dtemes
Hi All, I am testing cake 1.3 in a new application I am building and I have a weird behaviour: No flash messages are shown in the login page. I am using Auth and ACL, and the session component and helpers are already in my app_controller. Seems like a new session is created everytime the user

HtmlHelper within Helper causes sql_dump.ctp to fail.

2010-05-30 Thread Brian Jones
Hello, I have a quirky problem which I just noticed while preparing to optimize the application my team is building. I haven't set the debug value within config/core.php to 2 in a couple weeks to look at the SQL output, and noticed today that it was completely broken. After tinkering around a

Re: helper naming convention

2010-05-30 Thread Bryan Lim
Hi all, I used what Miles suggested. But don't work. Right now, I am using this: Class: TimeLineHelper File:timeline.php include: $helpers=array('timeline'); which is working fine. am still curious why the suggested namiing don't work ? /b On May 31, 4:46 am, Miles J mileswjohn...@gmail.com

another timeline helper question

2010-05-30 Thread Bryan Lim
Hi all, how do I get $data from http://bakery.cakephp.org/leafs/view/81 cakephp is complaining undefined variable data. I am new to both php and cakephp. need help! /b Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: The page isn't redirecting properly

2010-05-30 Thread karuppu
Thank you very much for your kind reply. I'm using xamp so i have installed that script in the location htdocs/karuppu/test but when i try to load the home page i getting that error (The page isn't redirecting properly). My default controller is 'actions' and an action (method) is 'home'. That is

CakeFest 2010 Website Launched

2010-05-30 Thread Graham Weldon
The website for CakeFest 2010 has just been launched. http://cakefest.org You can now signup if you are interested in attending. Tickets will be on sale soon. People interested in speaking at cakefest can submit a talk proposal via the dashboard, once you are logged in. Check out the new