Re: help on a textarea in edit.ctp

2009-12-11 Thread j0n4s.h4rtm...@googlemail.com
You are using MySQL? Try switching the text encoding from whatever it is to UTF-8 On Dec 11, 1:57 pm, fabio <3bi...@gmail.com> wrote: > Hello mates, just an update... > > I've partially solve the thing by substituting the form-helper comand: > > echo $form->input('description_long', array('rows'=>

Re: Running the action twice?

2009-12-11 Thread Dr. Loboto
If you see HTTP requests duplication it means actual redirect, not requestAction or something similar. And if you use there some third party code it may do this redirect. Waiting for more news. On Dec 12, 5:13 am, bujanga wrote: > This is a bit of a flaky one. Think it is mainly a problem with t

Re: Wordpress CakePHP Authorization Integration

2009-12-11 Thread Dr. Loboto
One my collegue did it from other side: let user authorize from CakePHP site part only and catch cake session in wordpress. On Dec 12, 8:47 am, jgadbois wrote: > I have a Wordpress site with a lot of content that I want to integrate > CakePHP into.  I want to required users to be logged in to be

Re: Session lost after redirect

2009-12-11 Thread engine
simply change the session.security to 'low' from 'high':handshake: Action-3 wrote: > > > I recently switched web hosts and this problem arose: > > I have a login form. If the login info is correct, it creates a > session and redirects you to an admin page. The admin page checks if > the se

Re: Session lost after redirect

2009-12-11 Thread engine
Action-3 wrote: > > > I recently switched web hosts and this problem arose: > > I have a login form. If the login info is correct, it creates a > session and redirects you to an admin page. The admin page checks if > the session is set and redirects you back to the login page if it is > not.

Re: captcha with cakephp

2009-12-11 Thread euromark
i actually use a passive captcha behaviour i once wrote + a helper that inserts the hidden inputs into the form not that hard to do actually the behaviour just needs to validate the post and even more importantly: even if the captcha fields are missing so you can't temper with the form just use

Wordpress CakePHP Authorization Integration

2009-12-11 Thread jgadbois
I have a Wordpress site with a lot of content that I want to integrate CakePHP into. I want to required users to be logged in to be able to use the application so I want to integrate the CakePHP Auth component with Wordpress. I've thought of a couple possible ways of doing this. 1. Create a WP

cakephp case insensitive controller name

2009-12-11 Thread will
I recently moved my site from a windows server to a linux server. I have an admin section to my site (under plugins). It works fine if I browse to: http://www.jamestownjobalert.com/admin/Success but this does not work: http://www.jamestownjobalert.com/admin/success('s' not capita

jQuery & ajax pagination in 1.3

2009-12-11 Thread Scronkey
Using Mark Story's guide for mootools, pagination and the new JS helper (http://mark-story.com/posts/view/creating-simple-ajax- pagination-with-cakephp-1-3-and-mootools) I have managed to get pagination somewhat working using jQuery. I say somewhat because only every second request uses ajax (clic

Re: autocomplete with id and value

2009-12-11 Thread robustsolution
the idea about autocomplete is for listing values with or without relevance not with or without ids. otherwise a hack should be done. 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 subscri

Re: Share Javascripts and CSSs in various layouts

2009-12-11 Thread Mukhamad Ikhsan
i found someone write helper for that http://bakery.cakephp.org/articles/view/asset-mapper i create some modification to support bottomscript and bottom codeblock (in case need script that load on the end of the page). also change asset rule action with regex filter. and sometimes we need to def

Re: Running the action twice?

2009-12-11 Thread bujanga
This is a bit of a flaky one. Think it is mainly a problem with the third-party application I am working with. I worked around it the other day. I have, however; seen a few duplicate HTTP requests from some very simple actions and views. These are NOT generated by any by a requestAction. My before

autocomplete with id and value

2009-12-11 Thread paulinthought
Hi, I have autocomplete working fine, it passes the value of the selected field back to the controller once I post it but I can't guarantee the values in my list will be unique so I need to identify each with an id and pas that back to the controller also. I've found some samples which involve put

Re: shared host setup

2009-12-11 Thread Piotr Kilczuk
Hello, > No such luck! > > Any ideas ? As for me, no... What I'd do is track which exact case causes that empty var. It might be some buggy component for instance. But no idea why that component works on you test environment... If you have totally no idea what is going on, feel free to drop me

Re: Share Javascripts and CSSs in various layouts

2009-12-11 Thread thomaus
The problem is that not all the pages will have the ame structure, some will call header, some not, ... but yes it's feasible. This aid, I'd like to know how to share CSS and JS. On Dec 11, 7:57 pm, pomares wrote: > How about creating a custom layout and calling it from the controller > with: $t

Re: help on a textarea in edit.ctp

2009-12-11 Thread fabio
Hello mates, just an update... I've partially solve the thing by substituting the form-helper comand: echo $form->input('description_long', array('rows'=>'10', 'cols'=>'70')); with pure HTML tag: echo ''.$this->data['Property'] ['description_long'].''; Like this, in edit.ctp i can get all the

Building a temporary table and 2 Select statements in a single SQL query

2009-12-11 Thread pomares
I have clients and a list of various stages in our business process which I call advancements in the database. Each time a client progresses, I make a note of it in the advancement_histories table. I want a client list, with the 'advancement_id' of the latest advancement. Each advancement belongs

Share Javascripts and CSSs in various layouts

2009-12-11 Thread thomaus
Hi there, I have to share the same Javascripts and CSSs for various layouts so I created an element called "css_js.ctp" and I call it in each layout this way : charset(); ?> element("css_js"); ?> The problem is that I now get

Re: Problem with AJAX submission

2009-12-11 Thread thomaus
No request with Firebug. I don't get it, really... On Dec 11, 11:04 am, Mukhamad Ikhsan wrote: > do you have a firebug? you can see what the response for XHR request > > > > On Fri, Dec 11, 2009 at 4:57 PM, thomaus wrote: > > Nobody no clue? > > > On Dec 10, 10:04 am, thomaus wrote: > > > Hi Jo

Re: Guide on creating first application

2009-12-11 Thread Délsio Cabá
Hi Bernardo, Working with the command it's easy to figure that out. I realized that I had to create a View for all the related tables of utilizadores in order to see the form for adding new record on utilizadores. Where can I get a complete application made with cakephp, really complete, custom

Test suite deleting tables then complaining that they're missing!

2009-12-11 Thread ianmcn
I'm just trying to get into TDD with Cake. I admit, I'm totally new to TDD so am probably doing something totally wrong! I have setup all the fixtures with default records defined (rather than importing data - I don't want to import data because A: there's too much of it, and B: there are some enu

Re: help on a textarea in edit.ctp

2009-12-11 Thread fabio
Hi sphereweb, i had it initially as TEXT then i change it to LONGTEXT (as stated in my previous post), but lately i realized that the problem was not solved completely with changing to LONGTEXT... pheraphs the problem is not the character lenght of texts (average lenght is 2000-3000 char that shoul

[as] captcha with cakephp

2009-12-11 Thread d1ve blu3
Hello,,, Does anyone have reference how to implement captcha with cake php? With jquery if possible,, thanks before -- This transmission may contain confidential or privileged material. Any use of this information by anyone other than the intended recipient is prohibited. If you have received th

pagination and routes

2009-12-11 Thread arek
hello, I have a problem with my custom routes used with pagination. I have method class News { ... function viewall($group_id) {...} } I defined two routes as below with meaning: 1. url .../articles should by default all method News.viewall(1) 2. url .../events should by default all method N

Re: Running the action twice?

2009-12-11 Thread bujanga
I will dig into this error today, busy yesterday. I intend to monitor the server logs and build the actions up until I see the reload behavior. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you a

Re: Internationalization in Cakephp help( for a newbie)

2009-12-11 Thread Jayanand Bhushi
Hi, Ur mail helped me alot Thanx a lot I have to do like this IM implementing German Language msgid "Delete" msgstr "Löschen" msgid "Add New Post" msgstr "Fügen Sie Neuen Posten hinzu" Both words missing But when I tried with Below one It worked msgid "Delete" msgstr "

Re: Get natural SQL built by Model methods like find, save

2009-12-11 Thread Manish Pithwa
Hi all, I don't want all queries to print just which I want in my code. Thanks Manish Pithwa On Dec 8, 5:46 pm, Pablo Viojo wrote: > If you change debug to 2 in core.php you can see all the queries made. > > Regards > > Pablo Viojo > pvi...@gmail.comhttp://pviojo.net > > ¿Que necesitas?http://

Aggregate function on hasMany model field

2009-12-11 Thread Manish Pithwa
Hi All I have Model Project (id,name) hasMany Task (id, project_id, estimated_hours). How to retrieve all projects with calculated column estimated_hours= sum of estimated_hours of all tasks of that project ? I have done this with following custom query but I want find method's $params array : S

Media Plugin Warnings on upload for specific MIME-Types

2009-12-11 Thread Marco
Hi guys, i'm using Marius Wilms aka David Persson CakePHP Media Plugin. Works fine in a certain way. I modified it a little bit to be able to set database column names in configuration part. I doesn't changed any Media filter settings. As I tried to upload a TIFF image the plugin throws the follow

Re: Testing for Ajax

2009-12-11 Thread Mukhamad Ikhsan
on your action controller you can put this conditional if ($this->RequestHandler->isAjax()) {} in view you need consider this, on ajax development you still need consider about graceful degradation, so in every link there must consider if the javascript is not working. http://www.xxx.com"; onCl

Re: Problem with AJAX submission

2009-12-11 Thread Mukhamad Ikhsan
do you have a firebug? you can see what the response for XHR request On Fri, Dec 11, 2009 at 4:57 PM, thomaus wrote: > Nobody no clue? > > On Dec 10, 10:04 am, thomaus wrote: > > Hi John, > > > > I just did and... still nothing at all when clicking! > > > > Thanks, > > > > On Dec 10, 7:20 am, J

Re: Problem with AJAX submission

2009-12-11 Thread thomaus
Nobody no clue? On Dec 10, 10:04 am, thomaus wrote: > Hi John, > > I just did and... still nothing at all when clicking! > > Thanks, > > On Dec 10, 7:20 am, John Andersen wrote: > > > Have you added the javascript libraries? > > - prototype > > - scriptaculous > > > Enjoy, > >    John > > > On D