Re: Cakephp 1.3 - Detect if Ajax if session expired

2012-08-31 Thread Florin Trifu
Thank you! This is how I have tried in the first place but it is not working. $this-RequestHandler-isAjax() is null or false, so it will never execute the conditional code. Best regards! -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to

Cakephp 1.3 - Detect if Ajax if session expired

2012-08-30 Thread Florin Trifu
Hi everyone! I have the following problem: in my application I have a button that makes an ajax request. If the session expired, the lightbox will load the default login page. I want to detect if the original request came from Ajax but I don't know exactly how to do it, because in

Re: Cakephp 1.3 - Detect if Ajax if session expired

2012-08-30 Thread Florin Trifu
'); } } ? /View/Tests/ajax_view.ctp ?php if(isset($return)){ echo json_encode($return); } ? Greetings 2012/8/30 Florin Trifu florin.catalin.tr...@gmail.com Hi everyone! I have the following problem: in my application I have a button that makes an ajax request. If the session expired

Best practices for AJAX forms

2012-06-25 Thread Florin Trifu
Hi On my page, I have a table with the information of a company and a button to edit the information. On click, through jQuery and AJAX, I want to transform that table into a form, and I can do that either by adding the form with javascript (hard coding it in javascript and requesting from the

Pretty URLs

2012-06-04 Thread Florin Trifu
Hi In my application, if I want to access a link, the url in the browser will be something like http://application/controller/action/parameter:value. However, browsing on cakephp.org the urls are something like (and I will give you an example):

RE: Table 'cakehr.cake_errors' doesn't exists

2012-05-24 Thread Florin Trifu
! From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of AD7six Sent: Monday, May 21, 2012 2:13 AM To: cake-php@googlegroups.com Subject: Re: Table 'cakehr.cake_errors' doesn't exists On Saturday, 19 May 2012 21:09:13 UTC+2, Florin Trifu wrote: Hi I have sent

Re: Table 'cakehr.cake_errors' doesn't exists

2012-05-20 Thread Florin Trifu
) and cake version On Saturday, May 19, 2012 9:39:43 PM UTC+2, Florin Trifu wrote: Excuse me. I think I didn't understand what you wanted to say. You imply that the error is generated because the table test.cake_errors doesn't exists? I don't even think it should. I am not using it, and if you

RE: Table 'cakehr.cake_errors' doesn't exists

2012-05-20 Thread Florin Trifu
: Re: Table 'cakehr.cake_errors' doesn't exists Instead of: echo $this-Form-create(array('id'='search')); try: echo $this-Form-create(false, array('id'='search')); On Sunday, May 20, 2012 1:04:14 PM UTC+2, Florin Trifu wrote: Hi Majna The entire content of menu.ctp is this: div id=menu-wrapper

RE: Table 'cakehr.cake_errors' doesn't exists

2012-05-20 Thread Florin Trifu
] On Behalf Of majna Sent: Sunday, May 20, 2012 10:07 PM To: cake-php@googlegroups.com Subject: Re: Table 'cakehr.cake_errors' doesn't exists Can you explain why there should be an err? On Sunday, May 20, 2012 8:59:10 PM UTC+2, Florin Trifu wrote: With this line of code I don't receive errors

Re: Table 'cakehr.cake_errors' doesn't exists

2012-05-19 Thread Florin Trifu
{main} [*CORE\Cake\Error\ErrorHandler.php*, line *136*] Thank you in advance! On Sat, May 5, 2012 at 7:20 PM, Florin Trifu florin.catalin.tr...@gmail.com wrote: Did anyone encountered this error: [PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cakehr.cake_errors

Re: Table 'cakehr.cake_errors' doesn't exists

2012-05-19 Thread Florin Trifu
is missing. On Sat, May 19, 2012 at 10:20 PM, Tilen Majerle tilen.maje...@gmail.comwrote: Table 'test.cake_errors' doesn't exist -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/5/19 Florin Trifu florin.catalin.tr...@gmail.com Table 'test.cake_errors' doesn't exist -- Our newest

Table 'cakehr.cake_errors' doesn't exists

2012-05-05 Thread Florin Trifu
Did anyone encountered this error: [PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cakehr.cake_errors' doesn't exist ? I have no idea why this is happening. The problem is that I can't see the errors because they are nested inside a div having the

Re: Using HABTM

2012-02-16 Thread Florin Trifu
looking for. Thanks, Sean On Feb 15, 5:33 pm, Florin Trifu florin.catalin.tr...@gmail.com wrote: Hi I don't know if my understanding is correct, but Auction hasMany AuctionImages and not HABTM. You should try to change that hasAndBelongsTo from the Auction model, of which I've never

Re: Using HABTM

2012-02-15 Thread Florin Trifu
Hi I don't know if my understanding is correct, but Auction hasMany AuctionImages and not HABTM. You should try to change that hasAndBelongsTo from the Auction model, of which I've never heard by the way, into hasMany. As by the error following the pattern model_name_X is not associated with

Re: validates() in controller doesn't work

2012-01-23 Thread Florin Trifu
Hi What do you mean when you say it doesn't work? Do you have an error message? Best regards On Mon, Jan 23, 2012 at 8:26 AM, Ivo Wolgensinger wolgensin...@gmail.comwrote: Dear all I have some difficulties to set up a proper validates()-function in the Controller. Everything in the

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: Lightbox form CakePHP 2.0

2011-12-22 Thread Florin Trifu
. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Florin Trifu Mobile: +40 728 300 750 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Lightbox form CakePHP 2.0

2011-12-19 Thread Florin Trifu
Thank you Stefanski That's one of the things I don't know how to do it, but it's not the only one. I honestly don't know where to start, I have the code from the example Geoff gave me but I'm starring at it not knowing what to do with it. But probably Geoff is right and I need to see the

Re: Lightbox form CakePHP 2.0

2011-12-17 Thread Florin Trifu
So... no one doesn't have any other tip? Nobody didn't use this kind of functionality? On Fri, Dec 16, 2011 at 8:54 PM, Geoff Douglas drdouglas...@gmail.comwrote: Take a look at the http://jqueryui.com/demos/dialog/#modal-form Modal Form demo. There is a function that fires when a user

Lightbox form CakePHP 2.0

2011-12-16 Thread Florin Trifu
Hi all Environment example: - Countries controller --- add action --- add.ctp view - Cities controller --- add action --- add.ctp view Goal: - in cities controller, inside the add action, I want to put a link next to the select element containing all the countries from the database,

Re: Lightbox form CakePHP 2.0

2011-12-16 Thread Florin Trifu
Thank you Geoff! Indeed, it's exactly what I want, but I hope it's also what I need. In case you've used this, could you please give a small example of how to implement it? One more thing, I don't understand exactly what a callback is and what exactly does it do. Could you please give a short

Re: Lightbox form CakePHP 2.0

2011-12-16 Thread Florin Trifu
with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Florin Trifu Mobile: +40 728 300 750 -- Our newest site for the community: CakePHP Video

Date picker for CakePHP 2.0.3

2011-11-29 Thread Florin Trifu
Hi I need to implement a date picker into my application. I have found this tutorial: http://bakery.cakephp.org/articles/agusti/2010/02/02/transparent-datepicker-with-jquery but unfortunately is not working with my version. Did someone succeeded to implement it or can someone guide me to another

Re: Date picker for CakePHP 2.0.3

2011-11-29 Thread Florin Trifu
I have tried this but it doesn't work for me. I have downloaded the jquery-ui, put the js inside /app/webroot/js, included inside my layout, and then create an input like this: $this-Form-input('expire', array('id'='datepicker')) Nothing happens when I click inside the text box... -- Our

Re: Date picker for CakePHP 2.0.3

2011-11-29 Thread Florin Trifu
I forgot to tell you but jquery is also included. In the javascript console there is no error because the date-picker is not triggered. Can you please tell me where should I put the script you told wrote me? This one: script $(function() { $(#datepicker).datepicker(); }); /script Thank

Re: Date picker for CakePHP 2.0.3

2011-11-29 Thread Florin Trifu
Thank you very much! Indeed it worked. Just to let the other users know in case they will have the same problem: 1. Download jquery (http://docs.jquery.com/Downloading_jQuery) and put the file in $project/app/webroot/js (e.q: *$project/app/webroot/js/jquery.js*) 2. Download jquery-ui