Re: Stuck with GoogleMap vs. CakePHP

2009-11-16 Thread Deon Heunis
Hi Julia, Try using the AJAX plugin rather. Documentation here: http://code.google.com/apis/ajax/documentation/#GettingStarted Hope this helps. Lance Willett wrote: > Hi Julia, > When you are using $javascript->link you will generally want the > script to be called in the head of the document (

Re: Delete confirm

2009-11-16 Thread Jeremy Burns
I am trying to apply this to my site but whenever I access my 'delete' action (I have removed references to 'admin_' in the sample code as I am not using admin_delete yet) I get the error message "The view for XXXController::delete() was not found" (where XXX is my controller). The controller do

Re: How do I force redirect after login

2009-11-16 Thread Jules
Wait, found it. I had to set $this->Auth->autoRedirect=FALSE in UsersController::beforeFilter(). Thanks! http://book.cakephp.org/view/395/autoRedirect -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@goog

Re: How do I force redirect after login

2009-11-16 Thread Jules
Thanks Lance, I've tried this, but the login() action in the users controller doesn't appear to fire after the user logs in... On Nov 17, 3:30 pm, Lance Willett wrote: > Jules, > In order to force a specific redirect after login you'll need to > specify that redirect in the login action of your u

Re: $this->model->find() results not correct

2009-11-16 Thread Dr. Loboto
It is definitely not Apache problem. Are databases same in both environments? Wrong model key may sometimes appear when you use MySQL views instead of tables. Also there may be not enough DB access rights to get tables structure. On Nov 16, 8:20 pm, Thiago Elias wrote: > Hey guys. > > I'm experie

Re: 1.2 paginator helper and passedArgs

2009-11-16 Thread merrylin shi
I know the solution , if you have ctp file in element folder named paging.ctp ,please add a line code (options(array('url'=>$this->params['pass'])); ?> ) in this file , before your code ! 2009/11/16 Asmud > This is the solution I know, I believe there is[are] other sulution > [s]I just c

Re: How do I force redirect after login

2009-11-16 Thread Lance Willett
Jules, In order to force a specific redirect after login you'll need to specify that redirect in the login action of your users controller. By default the Auth component uses its own login action, and thus you can't override the redirect behavior after a successful login. To force your own redirect

Re: Stuck with GoogleMap vs. CakePHP

2009-11-16 Thread Lance Willett
Hi Julia, When you are using $javascript->link you will generally want the script to be called in the head of the document (not inline). Which means adding "false" as the second parameter: see http://api.cakephp.org/class/javascript-helper#method-JavascriptHelperlink. Calling the Google Maps scrip

Re: CakeFest IV - America - Help us pick a location!

2009-11-16 Thread Josh
That pitch for New Orleans definitely caught my eye. Austin and Seattle sound nice too. On Nov 13, 11:19 pm, BrendonKoz wrote: > Although I live east coast, I'd be more apt to go if it was some place > warm/tropical.  Once you're in DC, it's not bad, but getting there if > you don't fly is a pai

How do I force redirect after login

2009-11-16 Thread Jules
I need to force users to a particular url after they've successfully login. Currently if a non-logged-in user tries to access an authentication- protected page, the are sent to the login page - so far so good. However, after successful login, they are sent to the page they had previously tried to

Newbie needs assistance in how to use KoolPHP with CakePHP

2009-11-16 Thread Dave Strickler
I am just starting out with CakePHP, and need to use a library called KoolPHP for a project. While I have it in the Vendors folder, and am loading up the javascript objects, it looks like the style sheets and maybe the graphics aren’t getting loaded right. Has anyone used KoolPHP with CakePHP b

Re: 1.2 paginator helper and passedArgs

2009-11-16 Thread Asmud
This is the solution I know, I believe there is[are] other sulution [s]I just can't figure out now :) This assumse that search form using method 'POST', and search function doest not have parameter; "function search() { ". If you wanna maintain the parameter; "function search($category=

Re: Problem creating a function in CakePHP

2009-11-16 Thread Asmud
Do you set-up the 'Employee' model, to have 'hasMany' association to "Mistake" ...? If not, just set-up first then you won't need the 'getMistakes' mistake. And this to retrieve the mistake data by employee : $mistakes = $this- >Employee->Mistake->find('count'), just add array condition if you woul

Stuck with GoogleMap vs. CakePHP

2009-11-16 Thread Julia
Hi, I have been fighting with GoogleMap vs. CakePHP for a few hours. I have a layout in which I call:- $url = 'http://maps.google.com/maps?file=api&v=2&key=MYKEY'; echo $javascript->link($url); when I attempt to display a page using this layout, the brower hangs displaying "Read maps.gstatic.com

Failed to initialize storage module: user for a custom session handler

2009-11-16 Thread Jakanapes
Hi all, I'm having an issue with the custom session handler in cake. I define my handler to use memcache and mysql and it works like a treat, until I need to destroy the session or the session times out. I fixed the session destroy error by using session_destroy instead of this->Session->destroy

Re: Hiding an element based on data returned in Ajax request

2009-11-16 Thread lauraw
Well, I don't know how I ever got along without Firebug! Thanks for that Dave!! The good news is I found a workaround (at the very bottom here). The not so good news is that it looks like if you're updating multiple elements as part of an ajax request and you're complete callback depends on the va

Re: Is this the right cake for me?

2009-11-16 Thread bigbakedbean
Haha I guess I got a little ahead of myself there... You can use helpers to output suggested posts, similarly tagged posts, tag clouds, etc. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegroups.c

Re: Is this the right cake for me?

2009-11-16 Thread bigbakedbean
To be more specific: Layouts are all of the HTML that the view file's html gets wrapped with. A single theme can have as many (or few) of these as necessary. Elements are shared view files which contain content that can be used anywhere. In your context, these will most likely be non-interactive

Re: Is this the right cake for me?

2009-11-16 Thread bigbakedbean
Themes are collections of all of the various files that you can put in the views/ folder. A theme can have many layouts, helpers, elements, and pages. You can expand upon the example I gave earlier to share top-level (app) layouts, helpers, elements, and pages throughout all themes. -- You recei

Re: Containable autoFields Problem

2009-11-16 Thread emptywalls
Sorry, I meant Genre HasMany Song, not Song HasMany Genre. On Nov 16, 12:09 pm, emptywalls wrote: > I'm new to CakePHP and I'm trying to use the Containable behavior. My > model is pretty complex, with a HasAndBelongsToMany and some other > joins. > > I've got my Artist Model, which HasAndBelongs

Containable autoFields Problem

2009-11-16 Thread emptywalls
I'm new to CakePHP and I'm trying to use the Containable behavior. My model is pretty complex, with a HasAndBelongsToMany and some other joins. I've got my Artist Model, which HasAndBelongsToMany Song (join table artists_songs). Song HasAndBelongsToMany Artist, and HasMany Genre. With an Artist,

Re: CakeFest IV - America - Help us pick a location!

2009-11-16 Thread LunarDraco
I vote for the West Coast, or even Las Vegas. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. For mo

New line char in ctp's breaking blob images

2009-11-16 Thread Celso
I dont know if this is a bug, but is very stranger: controller: function verBlob($id){ Configure::write('debug',0) ; $this->layout = 'blob'; } blob.ctp (in layouts): view: A char, i believe #13 (select for see): is included in sourc

Re: Is this the right cake for me?

2009-11-16 Thread Gabbsmo
I've been reading a little about views in the docs. Is Layouts and Themes the same except for how they are used? -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this

file upload progress

2009-11-16 Thread [ ramesh ]
i am trying file upload progress found here, this is working outside cakephp my implementation in cakephp is as follows after submiting the form i am calling the ajax file upload progress method, but i the request isn't reaching the server until upload is done which returns "null" value in fireb

Re: SQL Log in plugins/vendors css

2009-11-16 Thread David Roda
Are you saying that cake is appending debug info to your css and js files? I've never had this happen but I often run into a similar issue with Ajax calls when debugging is turned on. This is the solutions to turn off debugging if it is an Ajax request, hopefully you can modify it to fit your situ

Re: Missing Database Table

2009-11-16 Thread David Roda
Also: when you navigate to the homepage: http://localhost/Cake_Application/ does everything appear ok? (with styles, etc.) Does it say it is able to connect to the database? Do all of the values appear correctly in Cake_Application/config/database.php ? On Mon, Nov 16, 2009 at 8:18 AM, jburns

Re: Problem creating a function in CakePHP

2009-11-16 Thread David Roda
This ought to do it function index(){ $employees = $this->paginate('Employee'); foreach ($employees as $employee) { $employee['Employee']['total_mistakes'] = $this->Employee->getMistakes($employee['Employee']['id']; } $this->set('employees', $employees); } I'm not exactly

Re: CakeFest IV - America - Help us pick a location!

2009-11-16 Thread teknoid
I have to pick Miami, as we'd be willing to help sponsor it here ;) On Nov 15, 8:23 am, WidgetMan wrote: > When looking to organize a successful IT conference, I tend to create > a matrix that would rank each suggested location into decisive > categories. The categories I use are 'City Accessibil

1.2 paginator helper and passedArgs

2009-11-16 Thread Sunchaser
Problem: when i have a search resultset with pagination, the links next, prev and numbers do not keep the search parameters. I searched everywhere, and at last i found that i should put this statement in the view $paginator->options(array('url' => $this->passedArgs)); However, i can't make it w

Problem creating a function in CakePHP

2009-11-16 Thread genji
Hey guys I have somewhat of a sticky situation here that I can't seem to wrap my hands around. Here's the situation: At my job we've created a point of sale system that the employees of the shops keep making mistakes at. I am trying to create a a very simple application where we keep track of the

Re: Is this the right cake for me?

2009-11-16 Thread bigbakedbean
Hi Gabbsmo, I've written something very similar to what you are describing for an otherwise unrelated app, so I'll point you in the direction that I went. Copy pages_controller.php from cake/libs/controller/ to app/ controllers/ and make your modifications there. The trickiest part of leveraging

Re: Partial transaction rollback when performing multiple saveAll() calls within a single transaction

2009-11-16 Thread bigbakedbean
This looks an awful lot like this: https://trac.cakephp.org/ticket/4372 Anyone? -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+

Re: Vendor [aurigma image uploader] not displaying

2009-11-16 Thread Octavian
Anyone? Or does my code seem OK? -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. For more options, v

$this->model->find() results not correct

2009-11-16 Thread Thiago Elias
Hey guys. I'm experiencing an strange problem these days: I have 3 environments for cakePHP: - Development (my machine and the other programmers machines) (Windows XP/SP3 Apache 2 via xammp) - Test Environment (Debian Linux 5 Lenny Apache 2) - Production Environment (Debian Linux 4 Etch Apache

Re: Missing Database Table

2009-11-16 Thread jburns
Just a quick knee jerk reply. What happens if you access this link: http://localhost/Cake_Application/posts (in other words with index.php)? On Nov 16, 7:04 am, SugarCRM Geek wrote: > hi all, >     Am new to Cake. i started by trying to create an application using > Command Line Interface. > My d

SQL Log in plugins/vendors css

2009-11-16 Thread hlidotbe
Hi, I'm trying to use the "magic" feature of cakephp for plugins css, js and images. It works fine for images but the debug log is not turned off in css and js files. For now I've modified the dispatcher to disable log in these cases but I'd rather keep the core cake untouched. Is there a way to k

Is this the right cake for me?

2009-11-16 Thread Gabbsmo
Hi! I recently got inspired to start working with PHP again. I want to make some kind of CMS, mainly for bloging. The one thing I've been missing in other systems is a SUPER EASY way to make templates. Many mix php with html i the templates. For not-so-geeky users this is very frightening and inst

multiple database

2009-11-16 Thread Carachi
Hi, I want copy data from a database to the another database. how can i do? Can you post me a example of codes? I have try the code in the other posts but don't work! Thank you very much! -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to thi

form field

2009-11-16 Thread Smi
I have two date fields in my form. One is set as engagement date and the other one is wedding date. I want the wedding date to be set as a date after the engagement date. Can anybody help me with this? -- You received this message because you are subscribed to the Google Groups "CakePHP" group.

Acl doubt - Implementing it to other resources than actions

2009-11-16 Thread jgonca
Hi, I'm developing a project with CakePHP and after read some tutorials about Acl and Auth, I still have a doubt. In all the tutorials I've read, the Acl system is based on allowing or denying access to actions. I will need this too, but I'll also need to allow or deny access to some group of devi

Missing Database Table

2009-11-16 Thread SugarCRM Geek
hi all, Am new to Cake. i started by trying to create an application using Command Line Interface. My datasource configuration looks like this: Name: default Driver: mysql Persistent: false Host: 127.0.0.1 Port: 3306 User: root Pass: Database: cake_db

Re: cookie data corrupted

2009-11-16 Thread Quess
I should write it in my first post -> I'm using cake in version 1.2.5 On Nov 14, 10:18 am, David Roda wrote: > Are you using the stable 1.2.5 version of the core or the 1.3 alpha? > > If you are using git to get the core you can make sure you are using 1.2 by > executing the following commands in

Re: Handling Exceptions & Cake's Custom Error Handling

2009-11-16 Thread majna
Cake custom error handler works nice with exceptions. To disable cake error handler type define('DISABLE_DEFAULT_ERROR_HANDLING' , true); in webroot/index.php On Nov 14, 10:15 pm, Tyler Rooney wrote: > I'm having trouble integrating SwiftMailer, specifically handling > exceptions. After toying ar

Re: $form->input('') when database-field contains special characters

2009-11-16 Thread fabio
Hi Melanie, I have a problem with the same effect that you described but I've noted a different thing: the text I insert on edit is correctly saved on database, but if it's a long text it doesn't appear in the textarea when i re-open edit.ctp; instead if it's a short text (let's say one single row)

Re: send or save javascript array to controller as expected data object

2009-11-16 Thread Amit Rawat
use this in your javascript after you get your array :- $.ajax( { type: "POST", url: "path to controller/"+array, data:' ', success:function(msg) { var response =eval("("+msg+")"); } }); If yo

Re: send or save javascript array to controller as expected data object

2009-11-16 Thread Jas
Thanks Amit, thats exactly where I'm upto. I've got an array of the options from the select box. but I dont know how to send this by ajax. On Nov 16, 6:45 pm, Amit Rawat wrote: > You can create an array in javascript. In that array place all the values of > the select box. > >  var t= document.g

Re: send or save javascript array to controller as expected data object

2009-11-16 Thread David Roda
Make sure you've properly included the Ajax helper, the RequestHandler component, and the prototype and scriptaculous libraries as the documentation explains. You then need to setup your form to submit via Ajax. To do this replace your $form->create tag with $ajax->form as described: http://book

Re: send or save javascript array to controller as expected data object

2009-11-16 Thread Amit Rawat
$.ajax( { type: "POST", url: "path to controller/"+array, data:'', success:function(msg) { var response =eval("("+msg+")"); } }); -- You received this message because you are subscribed to the

Re: send or save javascript array to controller as expected data object

2009-11-16 Thread Jas
Thanks Amit, thats exactly where I'm upto. I've got an array of the options from the select box. but I dont know how to send this by ajax. On Nov 16, 6:45 pm, Amit Rawat wrote: > You can create an array in javascript. In that array place all the values of > the select box. > >  var t= document.g