Re: Creating custom report

2010-05-24 Thread WebbedIT
What have you tried and where have you got stuck? 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 subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake

Re: Header element not refreshing!!!

2010-05-24 Thread WebbedIT
> If I change the URL from the addressbar and directly land to the page > information that are sending to the header element through the session are > not updating I'm confused what you mean by the above. Are you caching data and having problems or is this a user updating their profile and their

Re: Find all Posts WITHOUT Tags (habtm)

2010-05-24 Thread WebbedIT
Whenever it comes to wanting to order data by a count value or in your case search for things without a count value I always think it is best to store that value in the table and use counterCache. And thanks to the below you can also counter cache HABTM relationships: http://bakery.cakephp.org/art

Re: Ajax problem ???

2010-05-24 Thread Ed Propsner
just wondering, I'm still on RC4 and working on switching over now. On Tue, May 25, 2010 at 12:50 AM, Jeremy Burns wrote: > Yes. > > > Jeremy Burns > jeremybu...@me.com > > > On 25 May 2010, at 05:49, Ed Propsner wrote: > > @Jeremy: Are you on 1.3 stable ? > > > On Tue, May 25, 2010 at 12:40 A

Re: Ajax problem ???

2010-05-24 Thread Jeremy Burns
Yes. Jeremy Burns jeremybu...@me.com On 25 May 2010, at 05:49, Ed Propsner wrote: > @Jeremy: Are you on 1.3 stable ? > > > On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns wrote: > Interesting Ed - I find the display of error messages a bit hap-hazard too > and thought it was just me. I can'

Re: Ajax problem ???

2010-05-24 Thread Ed Propsner
@Jeremy: Are you on 1.3 stable ? On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns wrote: > Interesting Ed - I find the display of error messages a bit hap-hazard too > and thought it was just me. I can't add anything to this post yet, but I am > watching with interest. > > Jeremy Burns > jeremybu

Re: Ajax problem ???

2010-05-24 Thread Jeremy Burns
Interesting Ed - I find the display of error messages a bit hap-hazard too and thought it was just me. I can't add anything to this post yet, but I am watching with interest. Jeremy Burns jeremybu...@me.com On 25 May 2010, at 04:18, Ed Propsner wrote: > I might be going out on a limb with thi

Re: Find all Posts WITHOUT Tags (habtm)

2010-05-24 Thread Zaky Katalan-Ezra
SELECT po.*, tg.* FROM `posts` po left join`tags_posts` tg on po.id = tg.post_id where tg.tag_id is null; Make a view(db view not MVC) out of it and call it from cake Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received th

Plugins i18n trouble

2010-05-24 Thread CoDe
Hi mates, I have an problem with i18n I have an plugins called project inside has locale folder with eng and spa languages in my user view I write the following input('username', array('label' => __d('project','Username',true))); ?> in my before filter from ProjectAppController: $locale="es"

Re: Ajax problem ???

2010-05-24 Thread Ed Propsner
I might be going out on a limb with this one but ... I recently started to experience the problem where my validation errors stopped displaying. I *may* know the cause but I haven't tested it out yet. When the form was validated $this->validationErrors array was loaded (with all appropriate error

Re: Find all Posts WITHOUT Tags (habtm)

2010-05-24 Thread Renato de Freitas Freire
I alredy asked it here. Never find an answer. Im doing same way you do. 2 querys. Not even with pure sql i count do it in 1 query... still wonder if its some way to do it in a cake way. -- Renato de Freitas Freire ren...@morfer.org On Mon, May 24, 2010 at 11:55 AM, designv...@gmail.com wrote:

Re: How do I save a field on my User without breaking the ACL?

2010-05-24 Thread Jon Chin
I tried that and have the same result. Do I need to unbind a relationship or something? On Mon, May 24, 2010 at 2:06 PM, Filipe Teles Rodrigues < filipe.t2...@gmail.com> wrote: > I use $this->User->save($this->data) instead of saveField. > > 2010/5/24 Jon Chin > >> I'm using Auth and db ACL, bu

Re: Ajax problem ???

2010-05-24 Thread Ed Propsner
Just for the record I set up a test case in a different controller/action/view and it didn't work there either, It does the same thing. I've tried a lot of different things to no avail I'm fresh out of ideas. On Mon, May 24, 2010 at 2:28 PM, Ed Propsner wrote: > I'm not quite sure how this

Re: How do I save a field on my User without breaking the ACL?

2010-05-24 Thread Filipe Teles Rodrigues
I use $this->User->save($this->data) instead of saveField. 2010/5/24 Jon Chin > I'm using Auth and db ACL, but I have an action that screws up my ACL > records every time. I have ACL set up just like the Book instructs. I'm > building a "change password" page where I want to just update the pa

Re: Header element not refreshing!!!

2010-05-24 Thread sherzo
Any body please? I turn of the cache as well but still needs to reload the page to see the correct data!!! sherzo wrote: > > Hi All > > I have a strange problem with refreshing the sessions inside my header > which is an element loaded in my page! > > If I change the URL from the addressb

Ajax problem ???

2010-05-24 Thread Ed Propsner
I'm not quite sure how this problem came about (that seems to be the common theme these days). I use $ajax->observeField to update an element in one of my forms. The form is was one of my originals and was working perfectly when i called it "completed." I came back to it to give everything a dry

How do I save a field on my User without breaking the ACL?

2010-05-24 Thread Jon Chin
I'm using Auth and db ACL, but I have an action that screws up my ACL records every time. I have ACL set up just like the Book instructs. I'm building a "change password" page where I want to just update the password. I run the following commands: $this->User->id = $this->Session->read('Auth.Us

Find all Posts WITHOUT Tags (habtm)

2010-05-24 Thread designv...@gmail.com
Hi All, I'm currently finding all Posts without Tags by querying the join table and getting the unique Post id's then using them in a second query on the Posts table to find all Posts with an id NOT in the first array. What I was wondering is if there was a neater/caker way of doing this? d. Ch

Creating custom report

2010-05-24 Thread jerry
I am new to cakephp and the mvc architecture,i want to create a simple reporting form which allows me to query a table of users to know how many users were created at a specific time frame sample table below. CREATE TABLE IF NOT EXISTS `authake_users` ( `id` int(10) unsigned NOT NULL auto_incr

Routes

2010-05-24 Thread emanuele
Hello pals, I can't really figure out one thing about Routes.. My url is something like localhost/acme/mycontroller/myaction.. my question is how can I remap the previous url in something like localhost/mycontroller/myaction using route? I ve added the following line in routes.php Router::connec

Re: Pagination ordered by a field that is not in the table

2010-05-24 Thread Filipe Teles Rodrigues
I like these ideas, but the solution should be simpler than this. If I had written: }else{ //line 1021 $options['order'][$field] = $value; } the ordering in pagination should work correctly. The only objective of that code in the other email is to avoid sql injections, because $value will

Re: Session Problem with Auth

2010-05-24 Thread Hussain
I am able to log in. the problem is solved by changing following setting in core.php Configure::write('Session.checkAgent', false); thanks for your response. On May 24, 4:00 pm, John Andersen wrote: > Can you log in? > Enjoy, >    John > > On May 24, 1:49 pm, Hussain wrote: > > > > > > > I am d

Re: Session Problem with Auth

2010-05-24 Thread John Andersen
Can you log in? Enjoy, John On May 24, 1:49 pm, Hussain wrote: > I am developing application cakephp 1.2.7. For that there are > different user level. > for different users I have added code in users controller >  $users = $this->Session->read('Auth.User'); > //print_r($users); > $user_type =

Session Problem with Auth

2010-05-24 Thread Hussain
I am developing application cakephp 1.2.7. For that there are different user level. for different users I have added code in users controller $users = $this->Session->read('Auth.User'); //print_r($users); $user_type = $users['group_id']; $group =$user_type;

How to use fileupload component to replace a file with a newer version

2010-05-24 Thread mattyh88
Hi, I'm using this fileupload component (http://bakery.cakephp.org/ articles/view/file-upload-component-w-automagic-model-optional) on my site to manage my PDF files. I can upload and remove PDF files. But now I'm wondering how I could replace an already uploaded PDF with a newer version. What I

Re: puzzle over activity

2010-05-24 Thread Iqbal Santyaswardan
I commented out $this->Auth->authorize = 'controller'; in the app_controller.php, and it suddenly works? Why is this, when i have $this->Auth->allow('*'); ? i.s. On Mon, May 24, 2010 at 3:29 PM, Iqbal Santyaswardan wrote: > I set the debug to 2, and removed the ajax stuff (really not that many)

Re: Find('list') and setting option values

2010-05-24 Thread WebbedIT
Try the following: $states = $this->Location->find('list', array( 'fields' =>array('Location.state', 'Location.state'), 'group' => array('Location.state') )); Paul Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received t

Re: Action, called by an Ajax request, running twice.

2010-05-24 Thread WebbedIT
I had weird problems with ajax calls happening twice (when deleting a record in a modalbox). I'm pretty certain it came down to using FireBug for me which sometimes, but not all the time, reloads the request to get some extra information. Paul. Check out the new CakePHP Questions site http://cak

Re: puzzle over activity

2010-05-24 Thread Iqbal Santyaswardan
I set the debug to 2, and removed the ajax stuff (really not that many). It gives "Failed to load source for: http://localhost/myapp/activities"; i.s. On Mon, May 24, 2010 at 3:16 PM, Jeremy Burns wrote: > Do you have debug set to 2? If it's at 0 you often won't see an error, just a > blank pag

Re: puzzle over activity

2010-05-24 Thread Jeremy Burns
Do you have debug set to 2? If it's at 0 you often won't see an error, just a blank page. Jeremy Burns jeremybu...@me.com On 24 May 2010, at 09:12, Iqbal Santyaswardan wrote: > Hi there, > > First of all, sorry about the subject line, I couldn't think of one > more appropriate. > > My situat

Re: Multi-client application

2010-05-24 Thread Zaky Katalan-Ezra
The performance issue regarding the data volume should be solved within the database. For example use partitioning to speed your queries even if you have table with 1Milion records. Although I prefer separated database for each client there is a big debate about it in the SaaS community. Branding

puzzle over activity

2010-05-24 Thread Iqbal Santyaswardan
Hi there, First of all, sorry about the subject line, I couldn't think of one more appropriate. My situation is this:  I have an app using ajax running with no (visible) errors that I wanted to add an activity record to it (for example if a user signs up).  So I baked a model: class Activity exte

Re: Database Connection from another pc by IP Address.

2010-05-24 Thread Arif
Hi Heldl Grab, Acually i want to use remote database access by this configuration...how i can configure?My remote pc id such : http://192.168.1.12/ MY Localhost config such: class DATABASE_CONFIG { var $default = array( 'driver' => 'mysql', 'persistent' =>

Re: Database Connection from another pc by IP Address.

2010-05-24 Thread Heidi Grab
Hi Arif, I may not have understood. Did you try to enter the "other pc" as host in the config file? All the best, Heidi. On Mon, May 24, 2010 at 9:13 AM, arif hossen wrote: > Dear All, > > I need cakephp database connection from another PC , Now currently i use > lampp, I need database connecti

HABTM, LEFT JOIN and cakephp

2010-05-24 Thread Heidi Grab
Hi there, that's for the cakephp professionals among you, which hopefully you all are. ;-) I have three tables: agents (keeps information of the call-center agents using the application) branches (keeps information on the branches the agent works for, which may be several or just one) agents_bra

SimpleDB and cakephp

2010-05-24 Thread Heidi Grab
Hi there, has anyone experience with writing an Amazon SimpleDB dbo driver for cakephp? Seems a bit tricky, since there are no JOINs. However, one could do several queries and paste them together in one array, I suppose. Would this work with cakephp, or does it break some concept of cakephp I may

Re: my link looks like this app/webroot/index.php/

2010-05-24 Thread John Andersen
Do you have the .htaccess files in your system and is mod_rewrite turned on? Enjoy, John On May 24, 4:57 am, Davor Ilic wrote: > Hi all, > > can anybody help me out of this issue my link loosk like this: > > > $ui_Url): ?> > >   >  link($naviName, >  array('controller'=>'clients','action'=>

Re: Multi-client application

2010-05-24 Thread Heidi Grab
Hi Zaky, I'm sorry, I'm a bit lazy of typing, so please allow me to shorten the longer e-mail I already wrote to the list about the nature of my problem (see below, the e-mail you quoted). Essentially, it is a mixture of legal issues, contract issues and a bit personal concern about the DB perform

Database Connection from another pc by IP Address.

2010-05-24 Thread arif hossen
Dear All, I need cakephp database connection from another PC , Now currently i use lampp, I need database connection from another pc. Pls help me. How i can connect database from another pc in my lampp server. -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Developme