Re: Preview Data before submission into db

2011-02-21 Thread andy_the ultimate baker
when u submit the form post all data to nex form with action preview. there u will get data with respective field. then set variable for each field and then display it where u want. and submit of "preview " action save all data in db. hope this logic will work Anand (cake backer) www.oncosys.com

Re: date time calendar picker

2011-02-21 Thread andy_the ultimate baker
u cant expect all that u need will get exactly. u need to change the format in its code. have u tried the options at the right side of page ? and bellow it the possible changes and functions are given just refer them. Anand cake developer www.anshusys.com. On Feb 22, 12:01 pm, Tapan Kumar Thapa

Re: date time calendar picker

2011-02-21 Thread Tapan Kumar Thapa
I have seen this web site but i think your suggested calendar does not provide seconds in calendar. Does it? Regards Tapan Thapa India On Tue, Feb 22, 2011 at 12:25 PM, andy_the ultimate baker < anandghaywankar...@gmail.com> wrote: > hi tapan, > this is the most light weight date picker with var

Re: date time calendar picker

2011-02-21 Thread andy_the ultimate baker
hi tapan, this is the most light weight date picker with variety of option. get this link http://jqueryui.com/demos/datepicker hope this may help u. regards Anand cake developer www.anshusys.com. On Feb 22, 11:18 am, Walther wrote: > This is the one I use:http://tinyurl.com/6g2xokx > > It is

Re: adding a new link and view to a cakephp websites

2011-02-21 Thread Kid Hell
Thanks Ken! You are right, I've been given tasks to modify an open source web application which are based on cakephp framework. I know a bit about php, but still can't manage to get my head on to cakephp. I'll try the link you have given and review again the whole manual.. thanks again for the adv

Re: date time calendar picker

2011-02-21 Thread Tapan Kumar Thapa
Your are the magician Walther...:-) How did you manage to create this kind of beautiful gmail demo search?? Nice one i should admit. The suggested java script calendar will full fill my requirement...I think so but the question is how i should add in my code? Should i need to write my own ht

Re: extracting data within tags

2011-02-21 Thread Walther
Cakephp has quite a nice xml class for reading xml files. Read the book a little bit. On Feb 22, 5:02 am, johnlaw wrote: > Hi,, > > I'm a newbie in php.. > I have xml files from which i want to extract it into information > in .txt file... > can anyone show me how to convert this, > > north > sou

Re: Possible Memory Leak

2011-02-21 Thread Walther
This sounds like exactly the sort of task that PHP isn't made for. Right tool for the job and all that. On Feb 22, 5:30 am, "Dr. Tarique Sani" wrote: > Web servers are simply not designed to have such long single requests > > The best would be to use shell with short php scripts and some sort of

Re: date time calendar picker

2011-02-21 Thread Walther
This is the one I use: http://tinyurl.com/6g2xokx It is incredibly powerful! On Feb 21, 5:58 pm, Tapan Kumar Thapa wrote: > Hello Community, > > Can anyone suggest good light weight (with minimum configuration) calendar > picker which should have hour, min and seconds feature? > > Regards > Tapa

Re: Media Plugin - Newbie Questions

2011-02-21 Thread kdubya
I don't know anything about the Media plugin, however your problem may be with how you have created your inputs in the view. Have you looked at the structure of $this->data once the form has been submitted to your action (admin_add)? In order for saveAll() to work. It should look something like: a

Re: adding a new link and view to a cakephp websites

2011-02-21 Thread kdubya
Based on the (very small) snippet of code you posted, the view should be placed in the /app/views/committees directory and the file should be named setpages.ctp. The layout will have the $content_for_layout in it. Look in /app/views/ layouts. It may be a file called default.ctp (but maybe not). Wh

How to determine specific rule that was triggered on validation?

2011-02-21 Thread O.J. Tibi
Hi all, I need some ideas on this one. We all know pretty well that a model gathers messages from failing validation rules whenever it performs validations, and these messages can be retrieved using $Model- >invalidFields(). I was thinking, what if I wanted to check if a particular validation rule

Re: Possible Memory Leak

2011-02-21 Thread gremlin
Maybe write it as a console script? Or find some way to batch through the requests using multiple http requests. On Feb 21, 7:30 pm, "Dr. Tarique Sani" wrote: > Web servers are simply not designed to have such long single requests > > The best would be to use shell with short php scripts and some

Re: Possible Memory Leak

2011-02-21 Thread gremlin
Oops - Tarique beat me to it. On Feb 21, 7:30 pm, "Dr. Tarique Sani" wrote: > Web servers are simply not designed to have such long single requests > > The best would be to use shell with short php scripts and some sort of a > queue system, which allows you to stop and resume your task, you shoul

Re: Preview Data before submission into db

2011-02-21 Thread Dr. Tarique Sani
http://lmgtfy.com/?q=cakephp+preview+page Enjoy :-) Tarique On Mon, Feb 21, 2011 at 12:40 PM, JPM wrote: > I have this registration form (user/add/) that allow users to add > username, contact info and info about themselves. It works well and > all when I want to submit it directly to the dat

Re: extracting data within tags

2011-02-21 Thread Dr. Tarique Sani
http://php.net/manual/en/simplexml.examples-basic.php Read this - if you still have problems ask on a general PHP programming list. Cheers Tarique On Tue, Feb 22, 2011 at 8:32 AM, johnlaw wrote: > Hi,, > > I'm a newbie in php.. > I have xml files from which i want to extract it into informati

Re: extracting data within tags

2011-02-21 Thread gremlin
You should ask that question somewhere *NOT SPECIFIC TO CAKEPHP* On Feb 21, 7:02 pm, johnlaw wrote: > Hi,, > > I'm a newbie in php.. > I have xml files from which i want to extract it into information > in .txt file... > can anyone show me how to convert this, > > north > south > west > east >

Re: Possible Memory Leak

2011-02-21 Thread Dr. Tarique Sani
Web servers are simply not designed to have such long single requests The best would be to use shell with short php scripts and some sort of a queue system, which allows you to stop and resume your task, you should also look at parallelizing the task Being a bit presumptive here your simulation l

extracting data within tags

2011-02-21 Thread johnlaw
Hi,, I'm a newbie in php.. I have xml files from which i want to extract it into information in .txt file... can anyone show me how to convert this, north south west east whatever How do i able to convert that into such info below, sample1:north sample2:south sample3:west sample4:east sample7

Change the Database at Login by user choice

2011-02-21 Thread andreguerreiro85
Hi there, i'm using cake 1.2.5 and i need to switch database at login on user choice, i have two Databases already defined : var $default = array( 'driver' => 'mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'root', 'password' => '',

Preview Data before submission into db

2011-02-21 Thread JPM
I have this registration form (user/add/) that allow users to add username, contact info and info about themselves. It works well and all when I want to submit it directly to the database, but now I want to add another step in there, a Preview. Here's the flow: 1. User is presented with a form (sa

adding a new link and view to a cakephp websites

2011-02-21 Thread Kid
hello there.. I've been having troubles modifying a website which uses cakephp framework. I'm trying to add new link button that will show a new view in the content div.. I've made the link in the nav bar, but i'm out of ideas where to create the new view. I made a new .ctp files in the view folder

Re: Possible Memory Leak

2011-02-21 Thread ProFire
I use a single http request. On Feb 21, 11:32 pm, Maurits van der Schee wrote: > Hi, > > Do you use a single http request or multiple invoked by a javascript timer? > > Regards, > > Maurits > > On 02/21/2011 02:49 PM, ProFire wrote: > > > > > > > > > Hi fellowcakephpers, > > > I've been a long ti

Re: Auth component question

2011-02-21 Thread Ryan Schmidt
On Feb 21, 2011, at 02:07, Tapan Kumar Thapa wrote: > Point noted: I am using cakephp 2.0 (cakephp-8cbd9fc) development version on > QA and also using cakephp 2.0 (cakephp-'Not know') development version on > development machine. I see 8cbd9fc is recent (from 2011-02-19) but if you don't kno

Re: Redirecting from admin to front page

2011-02-21 Thread lirc201
Thanks K! On Feb 21, 2:29 pm, "Krissy Masters" wrote: > Add 'admin' => false > > echo $this->Html->link(__('ORDER - New', true), array('controller' => > 'events', 'action' => 'index', 'admin' => false)); > > K > > -Original Message- > From: cake-php@googlegroups.com [mailto:cake-php@googl

RE: Redirecting from admin to front page

2011-02-21 Thread Krissy Masters
Add 'admin' => false echo $this->Html->link(__('ORDER - New', true), array('controller' => 'events', 'action' => 'index', 'admin' => false)); K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of lirc201 Sent: Monday, February 21, 2011 3:51

Re: Redirecting from admin to front page

2011-02-21 Thread Tilen Majerle
in link array add "admin" => false so like this: {{{ echo $this->Html->link(__('ORDER - New', true), array('controller' => 'events', 'action' => 'index', 'admin' => false)); }}} -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/2/21 lirc201 > Hello All, > > I've been struggling with lin

RE: date time calendar picker

2011-02-21 Thread Krissy Masters
Define minimum. I think asking such a lazy question is as miminum as it gets. I suggest google “best date picker” Odds are its js based ☺ So maybe tell people what js your using? K From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Tapan Kumar Thapa Sent: Monday,

Redirecting from admin to front page

2011-02-21 Thread lirc201
Hello All, I've been struggling with links in my admin area to allow for redirecting to my front page. I have some admin functions that I do not want to have in the admin section. Mainly I want admins to be able to enter orders for customers using the same screens as a regular web user would (wi

Re: Undefined variable in view

2011-02-21 Thread John Andersen
You have to understand that the Pages controller is special! The Pages controller uses the display method to show your "showscore" view, which means that your "showscore" method in the Pages controller will never be invoked. You can see why the Pages controller uses the display method, as that is

Re: Translate Behaviour and deleteAll() problem (cakephp 1.3.7)

2011-02-21 Thread Dedo
Thank you very much! On 19 Feb, 17:00, John Andersen wrote: > The deleteAll method does not automatically invoke the afterDelete > method in which the TranslateBehaviour deletes all the related > translations, as shown in the CakePHP book > at:http://book.cakephp.org/#deleteAll-1038 > > Observe

Media Plugin - Newbie Questions

2011-02-21 Thread mjhnlca
I'm trying to set up the Media plugin, but am having problems. I have a PressRelease model, and while adding an entry I would like to choose and upload a PDF file to associate with it. But when adding an entry, the press_releases table receives an entry, and the attachment table does not. *If I us

FCK editor filling textarea with home page

2011-02-21 Thread WhyNotSmile
I'm using fck with CakePHP, on some admin pages. I thought I'd done what I've always done, but this time around, instead of seeing a blank textarea in the admin form, I see a textarea which has the home page in it - the full html. I looked around, and found someone with a similar solution - they

Undefined variable in view

2011-02-21 Thread Slim
Hello everybody, I'm using the default cakephp controller (pagesController) I created some form (form->create(null);) because it's not related to a specific model. When i try accessing the data sent via the form when 'index' action is called everything is OK; I put then on my index.ctp " Form->

date time calendar picker

2011-02-21 Thread Tapan Kumar Thapa
Hello Community, Can anyone suggest good light weight (with minimum configuration) calendar picker which should have hour, min and seconds feature? Regards Tapan Thapa India -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: Possible Memory Leak

2011-02-21 Thread Maurits van der Schee
Hi, Do you use a single http request or multiple invoked by a javascript timer? Regards, Maurits On 02/21/2011 02:49 PM, ProFire wrote: Hi fellow cakephpers, I've been a long time user of CakePHP and I've been satisfied since I first tried it. In fact, there's no more turning back for me eve

Re: Help with names

2011-02-21 Thread John Andersen
Ps. a good example of the naming that applies, is in the CakePHP book at: http://book.cakephp.org/view/1650/hasMany-through-The-Join-Model Enjoy, John On Feb 21, 3:06 pm, John Andersen wrote: > My guess is the naming of your model filename and class - the model > filename should be "category_

Re: newb question auth login as element

2011-02-21 Thread John Andersen
You don't need to use a view for the login method. What you need to do, is to redirect back to the page with the login element, when the login fails! Likewise you redirect to the resulting page (may be the same), when the login succeeds! If you do that, then you will never end up staying in the log

Re: Help with names

2011-02-21 Thread John Andersen
My guess is the naming of your model filename and class - the model filename should be "category_post" and the class name should be "CategoryPost". The reason that it works when you move the table to the "default" schema, is that then your application is using AppModel for reading your table. Sho

Possible Memory Leak

2011-02-21 Thread ProFire
Hi fellow cakephpers, I've been a long time user of CakePHP and I've been satisfied since I first tried it. In fact, there's no more turning back for me ever since I started it. No framework matches CakePHP when it comes to ease of development. However, very recently, I've encountered a problem I

Re: Help with names

2011-02-21 Thread Almudena Garcia
What's the config of your databases.php file? 2011/1/26 Dave Maharaj > No matter what table is missing. > > > > Database has table categories_posts > > > > I have a categories_post.php > > > > > > > public $name = 'CategoriesPost'; > > > > public $useDbConfig =

Re: Auth component question

2011-02-21 Thread Tapan Kumar Thapa
Please find my complete code of controller fyi: 20, 'fields' => array('date', 'time', 'msisdn', 'shortcode', 'operator', 'circle', 'keyword', 'answer', 'age', 'gender', 'status'), 'order' => array('Incoming.id' => 'desc') ); function beforeFilter() { $this->Auth->

Re: Using containable to limit my query

2011-02-21 Thread mikek
> HI Guys, > > I need your help guys.,, I'm getting confuse about using containable > behavior, my problem is, I want to limit the output of [parseditem] > have you seen below there are 3 feeds items I want to display only > one.. what are the possible solution to achieve this. > > Here is my Contr

Re: Auth component question

2011-02-21 Thread Tapan Kumar Thapa
i am writing startdate and enddate to the session but i don't know if i am writing in Auth session or not. Please find my view vode for reading first_name from session. View: Session->read('Auth.User.first_name'); ?> My controller code which writes startdate and enddate in session: $this->Sessi

Re: Auth component question

2011-02-21 Thread Jeremy Burns | Class Outfit
If your code and data is identical (the data isn't actually identical, but I guess the differences are not important) then can you show your code? What is your log in method? Are you writing anything to the Auth session key anywhere else? Jeremy Burns Class Outfit jeremybu...@classoutfit.com h

Re: Auth component question

2011-02-21 Thread Tapan Kumar Thapa
Hello Community, Can you please suggest something? Regards Tapan Thapa India On Mon, Feb 21, 2011 at 1:37 PM, Tapan Kumar Thapa < tapan.th...@hindustantimes.com> wrote: > Yes > > QA: > > "id""username""password""email""first_name" > "last_name""created""modified" > "1"

Using containable to limit my query

2011-02-21 Thread Joseph Buarao
HI Guys, I need you help guys.,, I'm getting confuse about using containable behavior, my problem is, I want to limit the output of [parseditem] have seen there are 3 feeds item I want to display only one.. what are the possible solution to achieve this. Here is my Controller code: $this->Feed->B

Using containable to limit my query

2011-02-21 Thread Joseph Buarao
HI Guys, I need your help guys.,, I'm getting confuse about using containable behavior, my problem is, I want to limit the output of [parseditem] have you seen below there are 3 feeds items I want to display only one.. what are the possible solution to achieve this. Here is my Controller code: $

Relations between models

2011-02-21 Thread Axel
Hello, I'm still a bit stuck in the MVC architecture. I've two models A and B which are not logically linked (let's imagine model A is a racing car and model B is a spectator of a race), so I haven't built any association between them. How can I use both models in a function in model A, I mean wha

Re: CakePHP 1.3, JSHelper and Autocomplete, Missing method?

2011-02-21 Thread Nic
Sent from my iPhone On Feb 21, 2011, at 1:42 AM, "Nic [via CakePHP]" < ml-node+3393716-227172156-150...@n5.nabble.com> wrote: You will also need to add this as part of the $_callbackArguments : 'autocomplete' => array( 'search' => 'event, ui',

Re: CakePHP 1.3, JSHelper and Autocomplete, Missing method?

2011-02-21 Thread Nic
You will also need to add this as part of the $_callbackArguments : 'autocomplete' => array( 'search' => 'event, ui', 'open' => 'event, ui', 'focus' => 'event, ui', 'select' => 'event,

Re: CakePHP 1.3, JSHelper and Autocomplete, Missing method?

2011-02-21 Thread nic
How did you get autocomplete to work with jQuery? I can only find it separate with jQuery UI and nothing as to how they work together ... or am I missing something and way off from the start here? -- View this message in context: http://cakephp.1045679.n5.nabble.com/CakePHP-1-3-JSHelper-and-Auto

newb question auth login as element

2011-02-21 Thread Bryan
Hi, new to cake. I'm building a little thing, I want the login to be as a login box, rather than a dedicated view. I created an element, virtually a copy of the login.ctp required by Auth, and it looks OK, but cake/Auth stll insists that there be a login.ctp in my users views, which I don't want.

Re: Urgent Help--Please

2011-02-21 Thread Tapan Kumar Thapa
My find fields array is already having my new date In first parameter however it still comes in last. Pls suggest if you have something else in your mind. Regards Tapan Thapa India Sent from my iPhone On Feb 20, 2011, at 9:21 PM, John Andersen wrote: > This is speculation only, but maybe de

Re: Auth component question

2011-02-21 Thread Tapan Kumar Thapa
Yes QA: "id""username""password""email""first_name" "last_name""created""modified" "1""admin""fb1d00be1616be244194b049468f6c571c56d927"" ad...@hindustantimes.com""Administrator""Admin"\N\N Development: "id""username""password""emai