Cake using ODBC drivers

2011-01-16 Thread luigi7up
I'm building an application that will use some stored Semantic data and Virtuoso server is a Web/DB server and RDF data storage. To connect from php to Virtuoso's SQL I should use odbc_connect(). Guys, is there any chance that Cake can use Virtuoso SQL storage as its native storage through

Keep associations after they're deleted / Track associations over time

2011-01-16 Thread Ryan Schmidt
The subject of this message isn't quite right but maybe it gets the idea across. Consider a system modeling a library. There are users who can check out books. Logically we want to be able to create an association between a user and a book when they check that book out. And of course a book

ajax form

2011-01-16 Thread p r
I see that the ajax helper is deprecated. Is there an tutorial or something like that, where can i see the right use of Js helper and the JqueryEngineHelper? Or can anybody explane the steps to solve validation and requests? Should i write js functions to set the validationErrors from model to

Re: Passing url (prefix) parameters from Router to Session

2011-01-16 Thread Ryan Schmidt
On Jan 13, 2011, at 08:11, Matthias wrote: I am working on a conference management tool and want it to be able to manage multiple conferences. The URLs should look like this: http://mydomain.com/abc_conf_2011/workshops/index When this URL is called, I want the router to extract the first

how to set numerous trees on the same table

2011-01-16 Thread gilsilas
hey, I have comments table : [ id , post_id, parent_id, lft, rght ] when I want to select data I select with threaded option limit by post_id, and indeed I can see the tree for the certain post but in the comments table it seems like I have one tree for all comments, so every time I do

Ratings plugin (undefined variables)

2011-01-16 Thread John Maxim
Hi, Ok here's the deal. I installed the ratings plugin from CakeDC: https://github.com/CakeDC/ratings After doing all the steps as stated, It was fine until including this form in my view: ?php echo $this-Rating-display(array( 'item' = $post['Post']['id'], == line 3 'type' = 'radio',

Re: Keep associations after they're deleted / Track associations over time

2011-01-16 Thread John Andersen
I will assume that your requirement specify the following with regards to books and users of a library. Book may be realized by one or more Copy User may be borrower of one or more Copy Copy may be borrowed by none or one User User may be requester of one or more Reservation Book may be reserved

Is there is function to clean all records in aros_acos table?

2011-01-16 Thread roy
I am writing a function to rehresh permission table in database. See if there is a function that can clean the records in aros_acos table. 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

Re: App:import not working on hosting providers

2011-01-16 Thread cricket
On Sat, Jan 15, 2011 at 2:56 AM, roman_coder clayton.b...@gmail.com wrote: I'm working on Cakephp 1.3.6 and leveraging JonBradley's S3 plugin (https://github.com/jonbradley/CakePHP-S3-Upload).  It works great on my local dev box but once I put it on a hosting provider I get the class not found

Re: Is there is function to clean all records in aros_acos table?

2011-01-16 Thread nurvzy
Seems obvious, but: $this-ArosAcos-deleteAll(1); Treat the join table as an adhoc model and run deleteAll on it. Nick On Jan 15, 8:20 pm, roy roy...@gmail.com wrote: I am writing a function to rehresh permission table in database. See if there is a function that can clean the records in

Re: Passing url (prefix) parameters from Router to Session

2011-01-16 Thread cricket
On Sun, Jan 16, 2011 at 7:25 AM, Ryan Schmidt google-2...@ryandesign.com wrote: On Jan 13, 2011, at 08:11, Matthias wrote: I am working on a conference management tool and want it to be able to manage multiple conferences. The URLs should look like this:

Re: how to set numerous trees on the same table

2011-01-16 Thread cricket
On Sun, Jan 16, 2011 at 8:23 AM, gilsilas gilsi...@gmail.com wrote: hey, I have comments table : [ id , post_id, parent_id, lft, rght ] when I want to select data I select with threaded option limit by post_id, and indeed I can see the tree for the certain post but in the comments table

MSIE ajax submit problem

2011-01-16 Thread calzone
I have a small search form that pops up in a modal layer with is=ajax, very simple stuff: echo $this-Form-create(false,array('default'=false)); echo $this-Form-input('searchfield',array('label'='')); echo

display page views

2011-01-16 Thread chris...@yahoo.com
Hi Guys, ... How you all doi... Have a ??? How can I display page views,... I have a table and a field called views and I want it to increment by 1 (one) every time is specific page accessed. Here is my videos table: id int(11) UNSIGNEDNo auto_increment

Re: error ??

2011-01-16 Thread chris...@yahoo.com
Thanks Rayan,... On Jan 15, 7:39 am, Ryan Schmidt google-2...@ryandesign.com wrote: On Jan 14, 2011, at 23:28, chris...@yahoo.com wrote: getting error on first attempt to access the user page,... after all,... refresh,... it getting thru and working... why...? Did anyone know why...?

Re: Video Points, Cost

2011-01-16 Thread chris...@yahoo.com
Thanks Amit, I manage to do that... On Jan 5, 8:37 pm, Amit Badkas amit.sanis...@gmail.com wrote: Hi, The code in action uses $id but from where does it come/initialize? Amit Badkas PHP Applications for E-Biz:http://www.sanisoft.com On Thu, Jan 6, 2011 at 1:55 AM, chris...@yahoo.com

Re: display page views

2011-01-16 Thread Andras Kende
Something like this should work... public function view($id = null) { $video = $this-Video-find('first', array( 'recursive' = -1, 'conditions' = array('Video.id' = $id) ));

How create a AjaxInPlaceEditor with the new JSHelper?

2011-01-16 Thread Celso
Hi, like http://bit.ly/e8eJqg, i need using AjaxInPlaceEditor with the new JSHelper 1.3/2.0. A generic (prototype, jquery, mootools) InPlaceEditor Is possible ??? Thanks, Celso. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: App:import not working on hosting providers

2011-01-16 Thread roman_coder
I updated the path to be relative to the plugin/vendor directory and it worked! App::import('Vendor', 'Upload.S3', array('file'='S3/S3.php')); I'm not sure why this plugin wasn't getting found automatically but it looks like using the file option fixed it. Thanks for the help! Check out the

Re: Server Preference?

2011-01-16 Thread jodator
I've noticed that output code formatting could depends on the ?php ? tags and it's line up with other html tags. If you want to make your output code cleaner and more compressed you can use mod_pagespeed from google or write an after_render action in app_controller to remove unnecessary spaces