How to extract arrays in controller?

2009-08-17 Thread keanoppy
as an example, in my View, i put this: ?php echo pr($phase['Stage']); ? then the output will be : Array ( [0] = Array ( [status] = 0 [duration] = [p_date] = [a_date] = [id] = 4584 [remarks] =

Authentication error

2009-08-17 Thread Veoempleo
Hello, I'm implementing a very simple authentication using Auth component. In my login.ctp view I have the two essential fields at the form: - user - password But when log the data from the view, I always get the password field in blank. Any sugestion? Thank you in advantage

Re: question: file not found or missing controller error?

2009-08-17 Thread Martin Westin
Configure::write('debug', n ); Setting debug to 0 will make make respond with a 404. Anytime debug is on (more than 0), Cake expects you to be building or testing the application. Cake does not try to make a difference between the missing file /posts/edit/1 and /files/images/ not_here.jpg. It

get form fields value in Model

2009-08-17 Thread persianshadow
hi i want get my form fields values in Model with name of each fields , i need this for writing custom validation function , i don't ind good solution for this . anybody have idea ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Authentication error

2009-08-17 Thread Martin Westin
Auth does that to ensure the password is never shown in plain text... in a log, in an unexpected debug output or some similar situation. By the time you get the data Auth has already done it's authentication and the password should be more or less unimportant. On Aug 17, 9:38 am, Veoempleo

Acl auth can't be use.

2009-08-17 Thread Rimoe
hi, I have done a site by cakephp, and I have used the example of Simple Acl controlled Applicationhttp://book.cakephp.org/view/641/Simple-Acl-controlled-Application . the site can run very good. now I copied the source and all the table (no data), and imported these tables's data of

Re: Save HABTM, Undefined index: id

2009-08-17 Thread Martin Westin
Which model doesn't have an id field? If it has an pk or uid or some other name you should just let Cake know via the attribute $primaryKey. The join-table can manage without any primary key as long as you don't store any extra data in it. But this is not encouraged, it seems to be considered as

Re: question: file not found or missing controller error?

2009-08-17 Thread WebbedIT
Thanks Martin, so the real answer to my question was .. yes, you are just being daft :o) Just goes to show I have not put a CakePHP project into production. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

foreach loop problem in view

2009-08-17 Thread keanoppy
?php //echo pr($phase['Stage'][0]['id']); ? at this line,the echo came out nicely ?php $i=0; foreach ($phase['Stage'] as $stage): echo $stage[$i]['id']; $i++; echo $i; ? ?php endforeach; ? but after trying the loop,it says undefined offset,from 0 to the end of the loop index...anyone help me

Re: Allowed memory size exhausted - on clean cakephp install

2009-08-17 Thread rich...@home
You can find out the location of the php.ini file your setup is using by creating a php page somewhere with the following line: ?php phpinfo(); View the page in a browser and look for the string Loaded Configuration File On Aug 15, 8:43 am, Walther waltherl...@gmail.com wrote: If you had no

Re: foreach loop problem in view

2009-08-17 Thread Robert P
In a foreach loop you don't need to reference the arrays index ($i). Just use $stage['id']. Examining $stage would have lead you to this answer. This isn't a Learning PHP thread, so please think for yourself... On Aug 17, 4:08 pm, keanoppy keano0...@gmail.com wrote: ?php //echo

Re: foreach loop problem in view

2009-08-17 Thread keanoppy
in that case,how can i play around within the loop? i.e. a[i+1]-a[i] without the index,how may i do so? On Aug 17, 5:36 pm, Robert P shiftyrobs...@gmail.com wrote: In a foreach loop you don't need to reference the arrays index ($i). Just use $stage['id']. Examining $stage would have lead you

Re: foreach loop problem in view

2009-08-17 Thread keanoppy
or is there a way to make a loop using the index? On Aug 17, 5:42 pm, keanoppy keano0...@gmail.com wrote: in that case,how can i play around within the loop? i.e. a[i+1]-a[i] without the index,how may i do so? On Aug 17, 5:36 pm, Robert P shiftyrobs...@gmail.com wrote: In a foreach loop

Re: ACL: Filter out results based on permissions

2009-08-17 Thread Adrian
Thanks for replying :). I have just read through and digested what your behaviour does and it seems to be just what I need. I'll have a go at implementing it in to my application. On Aug 16, 8:33 am, jmcneese jmcne...@gmail.com wrote: this might work for

Re: foreach loop problem in view

2009-08-17 Thread majna
foreach ($phase['Stage'] as $index=$stage): echo $stage['id']; echo index; ... On Aug 17, 11:43 am, keanoppy keano0...@gmail.com wrote: or is there a way to make a loop using the index? On Aug 17, 5:42 pm, keanoppy keano0...@gmail.com wrote: in that case,how can i play around within the

Re: foreach loop problem in view

2009-08-17 Thread Robert P
Again: these are PHP basics. Use the PHP manual, not the CakePHP mailing list. On Aug 17, 6:17 pm, majna majna...@gmail.com wrote: foreach ($phase['Stage'] as $index=$stage): echo $stage['id']; echo index; ... On Aug 17, 11:43 am, keanoppy keano0...@gmail.com wrote: or is there a way to

Re: foreach loop problem in view

2009-08-17 Thread keanoppy
meaning there is no way to manipulate using the view? On Aug 17, 7:22 pm, Robert P shiftyrobs...@gmail.com wrote: Again: these are PHP basics. Use the PHP manual, not the CakePHP mailing list. On Aug 17, 6:17 pm, majna majna...@gmail.com wrote: foreach ($phase['Stage'] as $index=$stage):

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread foldiman
The original post about problem strings and TinyMCE reminds me of a problem I recently had. Search for 500.shtml error? What is this? Help!? in this group. But I had built a basic CMS that allowed an admin to change text in specific views. Whenever the text contained from or other specific

Displaying special characters on a URL

2009-08-17 Thread M.Mahgoub
Hi everyone I am integrating cakePHP and phpBB3 to display latest forum topics on the main page, phpBB3 requires special characters on the url such as () tried to use something like this: ?php echo $html-link($item['Topic']['topic_title'],

Re: Displaying special characters on a URL

2009-08-17 Thread M.Mahgoub
Hey guys, its solved now... I just got rid of $html-url() and used plain text: ?php echo $html-link($item['Topic']['topic_title'], '/forum/viewtopic.php?f='.$item['Topic']['forum_id'].'t='.$item['Topic']['topic_id']); ? I was hoping i could display absolute url using the $html-url('/', true) but

Re: question: file not found or missing controller error?

2009-08-17 Thread Martin Westin
If you don't deal with the webserver config much it would be easy to overlook that the whole Cake app more or less acts as an error page for missing files. Any real file is sent directly and any missing file results in php and Cake getting the url to try to make sense of it. On Aug 17, 10:08 

Re: ACL: Filter out results based on permissions

2009-08-17 Thread Adrian
Unfortunately the Permissionable behaviour is not adequate for my needs as some users need to be allowed to view certain tickets that they do not own and are not a member of a group with permission to view them. I need a way to get a list of all the records in a certain model the current logged

Re: Pagination

2009-08-17 Thread Gianluca Pasqualini
Hi Dave, it seems you have simply forgot to reference correctly the paginator helper, you used: $paginator-prev() instead of $this-paginator-prev() /// Gianluca On Aug 15, 2:59 am, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: [...] Now the search index shows up with

CakePHP multiple hasone relations issue

2009-08-17 Thread fightinggeek
I'm trying to create a page for organizing comic books. One table needs to have multiple hasone relations and I can't figure out how to do it. Any help would be appreciated. Here's what I have so far: ? class Comic extends AppModel { var $name = 'Comic'; var $belongsTo = array('User'); var

actual CakePHP books

2009-08-17 Thread anders als
hi there, i like cake but my problem is finding ressources from which i can learn. The cake manual does not provide every data i need, and often i have to test something 1000 times after shutting down my computer going outside and yelling ** it does not work. The problem is not the amount

Problems with .htaccess

2009-08-17 Thread Cristiano Barros
I placed my webroot outside the app directory. Actual structure is: /app /cake /www - contains web files (previously in /app/webroot) Everything works fine when Apache docroot points to /www, but when docroot points to /, some weird things start occurring: it doesn´t find appropriately CSS and

need a planner - calendar to integrate, please suggest

2009-08-17 Thread adilraufk...@gmail.com
I urgently need a weekly/monthly/daily planner similar to google calender to be integrated in my current project, please suggest that uses prototype etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Loosing SESSION When Transitioning from https to http Using Session Component

2009-08-17 Thread vb13
I have a User Edit page that submits data over https /user/edit. The controller saves data and redirects via http to /user/view. In the process I use php session to read/write some data. If I access session data using Cake Session component, I loose my session. As a result I get redirected to a

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread Brendon Kozlowski (Realm)
If AD7six says not to upgrade a Cake 1.1 app to Cake 1.2, then I apologize. I didn't think there'd be that many upgrade changes from 1.1 to 1.2 (my memory must be getting bad - oops). Anyway, as far as baking from a different table, I did not mean to create an entirely different app. You can

localization

2009-08-17 Thread rez...@gmail.com
Hi, I hope find help here . I just need a tutorial to make my cakePHP application multilingual I read this http://book.cakephp.org/view/162/Internationalizing-Your-Application but it do nothing and I don't know where's the Error I need a simple tutorial to do that plz

Can't work out tricky errors on my CakePHP powered photo host

2009-08-17 Thread Photie
Hi there, I run a photo hosting site and we're having some problems. photie(dot) com, please have a look and if you think you know how to help us out drop me an email photie@gmail.com, all help appreciated... Cheers --~--~-~--~~~---~--~~ You received this

Re: Access non CakePHP session from within CakePHP

2009-08-17 Thread Brendon Kozlowski (Realm)
The Session Helper and Component are wrapper classes that allow you to access values stored in PHP's $_SESSION superglobal. You can access anything in it from the Helper and Component just as easily as the superglobal as well. On Aug 16, 6:26 am, Fabs lord.f...@gmail.com wrote: Ahh, I see

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread AD7six
On Aug 17, 4:26 pm, Brendon Kozlowski (Realm) brendon...@hotmail.com wrote: If AD7six says not to upgrade a Cake 1.1 app to Cake 1.2, then I apologize.  I didn't think there'd be that many upgrade changes from 1.1 to 1.2 (my memory must be getting bad - oops). It's not that it's a bad idea

$form-input() help

2009-08-17 Thread hymen breaker
ok..so its my first time here..past few days ive been reading and coding with cakephp for my school_enrollment system project..now im stuck with this simple problem that i cant solve.4 hours of reading and rereading about some cakephp articles but still no luck.. so i think, you guys can be a

Re: need a planner - calendar to integrate, please suggest

2009-08-17 Thread AD7six
On Aug 17, 10:35 am, adilraufk...@gmail.com adilraufk...@gmail.com wrote: I urgently need a weekly/monthly/daily planner similar to google calender to be integrated in my current project, please suggest that uses prototype etc. What did urgently googling yield ;) ?

$form-input() how to

2009-08-17 Thread hymen breaker
ok..so its my first time here..past few days ive been reading and coding with cakephp for my school_enrollment system project..now im stuck with this simple problem that i cant solve.4 hours of reading and rereading about some cakephp articles but still no luck.. so i think, you guys can be a

Re: Can't work out tricky errors on my CakePHP powered photo host

2009-08-17 Thread Robert P
It's exactly as it says: Too many levels of symbolic links. This is a Linux issue which will probably require the attention of your web servers administrator to solve. On Aug 17, 9:40 pm, Photie photie@googlemail.com wrote: Hi there, I run a photo hosting site and we're having some

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread technicaltitch
App was built Oct 2007 but it's taken the organization this long to find funding for someone to test and work on it, (hence I'm struggling to get my head round stuff again). I will have a go at creating a test subdirectory and adding that debug code- fantastic fantastic ideas thanks - probably

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread archF6
I experienced a very similar problem, but with textile, not TinyMCE. Basically in certain circumstances, upon submission of a textarea field, I received a 500 internal server error (I also had issues with the word 'from'). This only happened on production, which, per foldiman's post, suggests it

Re: $form-input() how to

2009-08-17 Thread brian
Does your mother know you use that name? On Mon, Aug 17, 2009 at 10:42 AM, hymen breakerlunaro...@gmail.com wrote: ok..so its my first time here..past few days ive been reading and coding with cakephp for my school_enrollment system project..now im stuck with this simple problem that i cant

Re: actual CakePHP books

2009-08-17 Thread thatsgreat2345
Read the API, don't like the docs? Right some of your own stuff if you believe you can present it clearer. But the API and Book are very nice and show everything that is needed. On Aug 17, 6:29 am, anders als andersa...@googlemail.com wrote: hi there, i like cake but my problem is finding

Re: How to extract arrays in controller?

2009-08-17 Thread brian
foreach($phase['Stage'] as $foo) { echo $foo['Stagesname']['name']; } // PSC TC Endorsement // CTC Endorsement // etc. On Mon, Aug 17, 2009 at 3:37 AM, keanoppykeano0...@gmail.com wrote: as an example, in my View, i put this: ?php echo pr($phase['Stage']); ? then the output will be :

Re: Loosing SESSION When Transitioning from https to http Using Session Component

2009-08-17 Thread brian
Use https for the redirect, also. Either that, or redesign your app so you don't require the session vars in the other view. Are you doing this to save doing a find() in the view view? On Mon, Aug 17, 2009 at 10:22 AM, vb13val.brod...@gmail.com wrote: I have a User Edit page that submits data

Paginate variable

2009-08-17 Thread Dave Maharaj :: WidePixels.com
Is it possible to paginate with a variable in the link? Instead of /index/page:2 I need /index/[my_variable]/page:2 How would I add that into the standard code? ?php echo $paginator-prev(' '.__('previous', true), array(), null, array('class'='disabled'));? Dave

Re: CakePHP multiple hasone relations issue

2009-08-17 Thread brian
Each model should just be listed as a string : var $hasOne = array( 'Artist', 'Author', 'Rating', 'Publisher' ); Also, you only need to use inner arrays if you want to be detailed. var $hasOne = array( 'Artist' = array('className' = '...'),

What do messages in Debugkit Timer mean?

2009-08-17 Thread Daniel P. Long
Hello everyone, Sorry for my noob question. Please clarify each message in Debugkit Timer. I don't understand it clearly. They are: 1. Component initialization and startup 2. Controller Action 3. Render Controller Action 4. Rendering View I think I can figure out #1 and #4 but what is the

Issues with the hasOne relationship.

2009-08-17 Thread Magua
Please note I am a very GREEN newby to MVC programing. I have 2 tables. 1. users Fields: id, user, type_id 2. types Fields: id, type Each user can have only 1 type and each type can have many users. I have created the following models. user.php ? class User extends AppModel { var $name =

Re: Issues with the hasOne relationship.

2009-08-17 Thread brian
You forgot the array part: var $hasOne = array('Type'); BUT you probably want: var $belongsTo = array('Type'); Type: var $hasMany = array('User'); If you used Group instead of Type it would make more sense. On Mon, Aug 17, 2009 at 12:52 PM, Maguamdm...@gmail.com wrote: Please note I am a

Paginate Routing

2009-08-17 Thread Dave Maharaj :: WidePixels.com
Ok I managed to get all my pagination up and running the way I needed. The only thing left is removing /page:3 to only display /3 Router::connect('/bookmarks/index/:id_key/*', array('controller' = 'bookmarks', 'action' = 'index'),array('id_key' = '[-_A-Za-z0-9]+','pass' = array('id_key')));

Re: Loosing SESSION When Transitioning from https to http Using Session Component

2009-08-17 Thread vb13
Yes, I am doing this to save a find in a view. You are good Brian :). Except that the find is not a database call, it calls Salesforce via an API so I want to save a couple of seconds of a user's time. Still do not understand why Cake does this while I can use $_SESSION directly and everything

Re: Issues with the hasOne relationship.

2009-08-17 Thread Magua
Thanks I have it working now. But i now need a another $belongs to declaration in my user.php model. How does cake handle this. For example i have now added an organizations table with the following fields id, name and i have added the following field to the users table. organization_id Each

Re: Issues with the hasOne relationship.

2009-08-17 Thread brian
Just add the model to $belongsTo array. User: var $belongsTo = array('Type', 'Organization'); Organization: var $hasMany = array('User'); On Mon, Aug 17, 2009 at 3:04 PM, Maguamdm...@gmail.com wrote: Thanks I have it working now. But i now need a another $belongs to declaration in my

Re: Issues with the hasOne relationship.

2009-08-17 Thread Magua
I am now generating the following error when i load users Warning (512): SQL Error: 1054: Unknown column 'User.organization_id' in 'on clause' [CORE/cake/libs/model/datasources/dbo_source.php, line 524] Here are my models organizaton.php ? class organization extends AppModel {

Multiple Request for 1 action

2009-08-17 Thread Dave Maharaj :: WidePixels.com
I have added an ajax sort to pagination. script type=text/javascript $(document).ready(function() { $(#bookmarks).tablesorter(); $('a[href*=/sort:]').livequery('click', function(){ $('#testLoad').load($(this).attr('href')); return false; }); } ); /script So it

Re: I18n table How to use ?

2009-08-17 Thread ros
This sample should help you http://www.palivoda.eu/2008/04/i18n-in-cakephp-12-database-content-translation/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Pagination $this-Model-query()

2009-08-17 Thread gjofum
I need to use my own sql code, because if I use your code for find it will do 2 queries and it'll take more time. But thank you for that link, it may be useful for me. On Aug 17, 2:45 am, brian bally.z...@gmail.com wrote: Use paginate(). Obviously, that's not the answer you were looking for

Re: Issues with the hasOne relationship.

2009-08-17 Thread Magua
URL http://beta.openaccessinc.com/users On Aug 17, 3:46 pm, Magua mdm...@gmail.com wrote: I am now generating the following error when i load users Warning (512): SQL Error: 1054: Unknown column 'User.organization_id' in 'on clause' [CORE/cake/libs/model/datasources/dbo_source.php, line

Re: Pagination $this-Model-query()

2009-08-17 Thread Miles J
The funny thing is, 2 queries compared to 1 doesn't make a difference. You have a problem when you are reaching 1000 queries. I honestly don't see a problem with a few extra queries as it doesn't really cause a performance problem. --~--~-~--~~~---~--~~ You

Re: Pagination $this-Model-query()

2009-08-17 Thread gjofum
Maybe you're right. But even I can't make silimar cakephp find method to my own sql code. For example: If I use brian's code above I got error: Unknown column 'ItemContent.language_id' in 'where clause'. It's because table ItemContent is just used at 2. query. And I do not know how to set

Internationalization

2009-08-17 Thread RhythmicDevil
Hi, I am trying to understand how to get internationalization to work in CakePHP. After reading the docs and searching around, looking at Teknoid and some other place this is what I am left with. CakePHP has a class I18n that handles the loading of the correct string from a .po file based upon

Re: PayPal Website Payments Pro integration

2009-08-17 Thread anders als
I am currently working on some PayPal, Auction Stuff with cake, but i did not get any results On Aug 17, 5:14 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: Has anyone integrated PayPal Pro with cake? Is there anything online that might be of help? All I found is standard

Re: Internationalization

2009-08-17 Thread Larry E. Masters aka PhpNut
It is __(); notice the double underscore. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Mon, Aug 17, 2009 at 3:52 PM, RhythmicDevil rhythmicde...@gmail.comwrote: Hi, I am trying to understand how to

Re: Internationalization

2009-08-17 Thread RhythmicDevil
Ok problem solved is that my PHP was not compiled with gettext. So thats done. The page loads but there is not message being displayed. On Aug 17, 4:52 pm, RhythmicDevil rhythmicde...@gmail.com wrote: Hi, I am trying to understand how to get internationalization to work in CakePHP. After

Re: Internationalization

2009-08-17 Thread RhythmicDevil
Hahaha I am such a dummy. Thanks. On Aug 17, 4:59 pm, Larry E. Masters aka PhpNut php...@gmail.com wrote: It is __(); notice the double underscore. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access  public */

Re: Internationalization

2009-08-17 Thread RhythmicDevil
Thanks Larry, thats the trick. On Aug 17, 4:59 pm, Larry E. Masters aka PhpNut php...@gmail.com wrote: It is __(); notice the double underscore. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access  public */ On

Problem with Pagination.

2009-08-17 Thread Jorge Horacio Cué Cantú
Hello, I am having a strange behavior using pagination with Cake 1.2.3.8166 and Cake 1.2.4.8284 I defined the $paginate variable in the controller as: var $paginate = array( 'PurchaseOrder' = array( 'limit' = 20, 'conditions' = array('PurchaseOrder.status_id'

Related drop-down list

2009-08-17 Thread albe
Hello everybody! I have to realize a form with two drop-down lists related. Let me explain: the first d.d.l. takes its data directly from the database and the data on the second d.d.l. change depending on the choice that the user performs on the first d.d.l. I'd like to do this without make any

Re: Related drop-down list

2009-08-17 Thread FrederickD
Hello there! Yes, you certainly can do what you want in Cake... but it requires the use of AJAX. It took me many hours to get this working in my application and a little frustration. So don't give up. There are many posts on this group on this topic. Distilling all that has been written, for my

Missing Database Table Error

2009-08-17 Thread fightinggeek
I get this error when I try to load the scaffold view. I have tables called artists and comics in the comic database and models call artist.php and comic.php. i have no idea what I'm doing wrong. Missing Database Table Error: Database table artists_comics for model ArtistsComic was not found.

Sort : ASC / DESC not working

2009-08-17 Thread Dave Maharaj :: WidePixels.com
I have a regular baked pagination set to test out why my sort does not work. table id=bookmarks cellpadding=0 cellspacing=0 thead tr th?php echo $paginator-sort('Title');?/th th?php echo $paginator-sort('Status');?/th th?php echo $paginator-sort('Note');?/th th?php echo

SSL for admin area

2009-08-17 Thread Dave Maharaj :: WidePixels.com
I am trying to set up the app so the admin section is in SSL. So I have the ssl.php component In my app_controller i have var $components = array('Auth', 'Acl', 'RequestHandler', 'Cookie', 'Ssl'); in my beforeFilter $admin = Configure::read('Routing.admin'); if

Re: PayPal Website Payments Pro integration

2009-08-17 Thread eusef
Dave, Just wondering, what's your interest in the PayPal Pro? Anders, what about you? On Aug 17, 4:54 pm, anders als andersa...@googlemail.com wrote: I am currently working on some PayPal, Auction Stuff with cake, but i did not get any results On Aug 17, 5:14 pm, Dave Maharaj ::

Re: Missing Database Table Error

2009-08-17 Thread brian
You have a HABTM assoc. between those two models so you need to have a join table named artists_comics. Create that with 2 columns, artist_id comic_id (note the singular). The type for the columns should match whatever you're using for artists.id comics.id (though not auto_increment/serial, of

Re: Issues with the hasOne relationship.

2009-08-17 Thread brian
Heh, normally, having the link wouldn't do much good; you'd need to provide your find() code. But: SELECT `User`.`id`, `User`.`type_id`, `User`.`organizations_id`, ... It looks to me like you created a column named 'organizations_id' rather than 'organization_id'. The latter is what you want.

Re: Problem with Pagination.

2009-08-17 Thread brian
Odd. Can you set debug = 2 and post Cake's query? You don't have any afterFind() stuff happening? 2009/8/17 Jorge Horacio Cué Cantú jorge@gmail.com: Hello, I am having a strange behavior using pagination with Cake 1.2.3.8166 and Cake 1.2.4.8284 I defined the $paginate variable in the

Possible Bug - ajax-form - update option

2009-08-17 Thread Josh
I'm just wondering if anybody has had trouble with the update index in the options array for ajax-form. According to the docs, it exists, however I was only able to get an update when I put the update setting in an options array for ajax-submit. Check out the docs for the code (I only changed

Re: Multiple Request for 1 action

2009-08-17 Thread brian
button got stuck? ;-) BTW, you shouldn't need to use livequery if you have jquery 1.3+. You can use live() instead. http://docs.jquery.com/Events/live#typefn On Mon, Aug 17, 2009 at 3:58 PM, Dave Maharaj :: WidePixels.comd...@widepixels.com wrote: I have added an ajax sort to pagination.

RE: PayPal Website Payments Pro integration

2009-08-17 Thread Dave Maharaj :: WidePixels.com
To accept credit cards and have Pay Pal process the transaction behind the scenes. Dave -Original Message- From: eusef [mailto:johns...@gmail.com] Sent: August-17-09 10:32 PM To: CakePHP Subject: Re: PayPal Website Payments Pro integration Dave, Just wondering, what's your interest

Re: Issues with the hasOne relationship.

2009-08-17 Thread Magua
Thanks. Working now except on my forms the drop-down lists display the id # instead of the field. for example the drop down for Organization displays id 3 and id 4 instead of the Organization Name. Here is all my code: organization model ? class organization extends AppModel {

Re: Issues with the hasOne relationship.

2009-08-17 Thread brian
FormHelper will do the right thing if you set a var for the view holding the Organization names. This is something I've tried--and failed-- to figure out from the source. controller: public function whatever() { if (!empty($this-data)) { // ... }

Re: Certain strings crashing CakePHP - where do I look first?

2009-08-17 Thread archF6
Also worth mentioning, if SecFilterScanPOST Off doesn't do it, or causes new 500 server errors, you can rebuild apache (easily if you have easyApache!), just be sure to not include the Security Mod module. --~--~-~--~~~---~--~~ You received this message because you

Re: Problem with Pagination.

2009-08-17 Thread Jorge Horacio Cué Cantú
Hello, Thanks problem solved! It was a problem with the PuchaseOrders hasMany Equipment configuration: 1: The PuchaseOrders hasMany Equipment was configured in the belongsTo part inside the PuchaseOrders model. 2: The foreignKey element in the PuchaseOrder hasMany Equipment was on a

Re: Loosing SESSION When Transitioning from https to http Using Session Component

2009-08-17 Thread bondo
I am having the same problem and here is the fix that I used: http://stackoverflow.com/questions/308659/session-not-saving-when-moving-from-ssl-to-non-ssl Hope that helps you. On Aug 17, 11:49 am, vb13 val.brod...@gmail.com wrote: Yes, I am doing this to save a find in a view. You are good

Admin Routing

2009-08-17 Thread Dave Maharaj :: WidePixels.com
I am trying to set up additional admin routes. I want to add 'manage' to selected controllers. So in core.php Configure::write('Routing.manage', 'manage'); in app_controller beforeFilter $manage = Configure::read('Routing.manage'); if (isset($this-params[$manage])