Re: How do you do it?

2011-04-18 Thread Eric Anderson
I've always thought about that same issue. I think there's some good JQuery / Ajax image upload and cropping plugins. On a basic level, I'd probably allow an upload then refresh the same page after the successful upload. On reload, the page would be in the "editing" state, so instead of just show

Custom Order by

2011-03-06 Thread Eric Anderson
Hi everyone, I was wondering if you could help me with this strange ordering issue. I have a list of posts and I want to order them by date created, however, I want to have "featured" posts show up in the list BEFORE the unfeatured posts. Essentially, it would be any post that is featured, ordered

Re: How to properly use "conditions" in model associations

2011-03-02 Thread Eric Anderson
om day 1 like this so also would be curious to see > > > what others are doing in regards to the other params available for > > > relations. > > > > Good question :) > > > > K > > > > -Original Message- > > > From: cake-php@googlegr

How to properly use "conditions" in model associations

2011-03-02 Thread Eric Anderson
Hi everyone, I'm wondering what is the 'proper' or 'suggested' way of using "conditions" in model associations. I'm using an Activity model to log activities performed throughout my app. I then use this table to output activity feed / notifications style sections to users. The problem I'm having i

Re: Fat Models vs. App Controller

2011-02-26 Thread Eric Anderson
t; fat models, skinny controllers and athletic > behaviourshttp://nuts-and-bolts-of-cakephp.com/tag/observable-behavior/ >  - S > > On 26 February 2011 23:46, Eric Anderson wrote: > > > > > > > > > Ya a component doesn't necessarily work because I'm in

Re: Fat Models vs. App Controller

2011-02-26 Thread Eric Anderson
n multiple controllers in > either the model (data?) or a component (logic?) > you can also use libs to "dry" your code :) > > On 27 Feb., 00:02, Eric Anderson wrote: > > > > > > > > > Hi everyone, > > > Just wondering when it comes to pe

Fat Models vs. App Controller

2011-02-26 Thread Eric Anderson
Hi everyone, Just wondering when it comes to performance and any other factors you may deem important, what's the better option for storing functions that I will use among many controllers: A function in the model that I can then access via $this->Model->Model->function() or a function inside of m

Component or Behavior?

2011-01-09 Thread Eric Anderson
Hi everyone, I'm creating an app and have a situation where after an event occurs, I need to save data in many different models. Essentially, when a competition ends, I need to save the winner, award points to everyone who entered the competition and as well as award "credits". Essentially, I end

Re: Js (Jquery) Helper Append Instead of Update

2011-01-02 Thread Eric Anderson
if (isset($options['dataExpression'])) { $callbacks[] = 'data'; unset($options['dataExpression']); } $options = $this->_prepareCallbacks('request', $options); $opti

Js (Jquery) Helper Append Instead of Update

2011-01-02 Thread Eric Anderson
Hi, Does anyone know how to position the insertion of a returned HTML from an AJAX request using the Js helper (JQuery) ? I know there is an 'update' option, however there are times when I need append, replace, etc instead of just updating a selected element. I took a look at the jquery_engine.ph

Re: Js (Jquery) Helper Confirm before Request

2010-12-30 Thread Eric Anderson
Js Helper. Thank you so much! On Dec 30, 6:28 pm, cricket wrote: > On Thu, Dec 30, 2010 at 4:35 PM, Eric Anderson > > > > > > > > > > wrote: > > Hi everyone, > > > I'm trying to use the Js Helper (JQuery) to create a request link that > &g

Js (Jquery) Helper Confirm before Request

2010-12-30 Thread Eric Anderson
Hi everyone, I'm trying to use the Js Helper (JQuery) to create a request link that when clicked, confirms before sending the request. If "cancel" in the dialog is clicked, then the request is NOT sent. This is what I have so far: *CODE* Delete Post Js->get('#post-'.$post['Post']['id'].' .

Re: CakePHP has it's own domain, but placed in a subfolder

2010-10-16 Thread Eric Anderson
/subfolder). > > > On Oct 16, 2:35 pm, Tilen Majerle wrote: > > > hmm...i think here is problem, because server doesn't support apache > > module > > > mod_rewrite > > > > check this :D > > > -- > > > Tilen Majerlehttp://majerle.

Re: CakePHP has it's own domain, but placed in a subfolder

2010-10-16 Thread Eric Anderson
er doesn't support apache module > mod_rewrite > > check this :D > -- > Tilen Majerlehttp://majerle.eu > > 2010/10/16 Eric Anderson > > > > > Hi guys, > > > I've done some searching but haven't found a direct answer to this >

CakePHP has it's own domain, but placed in a subfolder

2010-10-16 Thread Eric Anderson
Hi guys, I've done some searching but haven't found a direct answer to this question. I'm pointing a domain of mine to a subfolder on my site. I then installed a cake app in that folder, using the production style htaccess structure. I figured I don't need to change anything for a cake app in a s

Re: CakeDC Ratings Plugin

2010-09-26 Thread Eric Anderson
> 5, 'value' => $item['rating'], 'createForm' => array('url' => array($this->passedArgs, 'rate' => $item['id'], 'redirect' => true)))

CakeDC Ratings Plugin

2010-09-26 Thread Eric Anderson
Hi there, I'm currently trying to use CakeDC's ratings plugin, found here: http://github.com/CakeDC/ratings/tree/ However, after following the instructions I get the following error: Fatal error: Class 'HtmlHelper' not found in /Applications/XAMPP/ xamppfiles/htdocs/photorious/app/plugins/ratin

Re: How to handle multiple user types

2010-05-14 Thread Eric Anderson
I have a "parties" table as well. On May 14, 3:17 am, Zaky Katalan-Ezra wrote: > What is the other tables? > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google G

How to handle multiple user types

2010-05-13 Thread Eric Anderson
Hi everyone, I'm just curious how everyone else out there handles different user types when they have different data associated with them? I have a system that has guests, members and hosts. Each user type has many different fields associated with them. Currently I handle it by having a main user

AJAX Pagination for "more commments" style functionality

2010-05-02 Thread Eric Anderson
Hi everyone, I'm having a problem getting AJAX Pagination to work when adding additional content to an unordered list. So, what I want to set up is something along the lines of a Twitter "more comments" AJAX loading system. When you click "more comments" (the only pagination control element that

Re: Calling actions inside a controller

2010-04-26 Thread Eric Anderson
9 > (h) +44 208 530 7573 > > On 26 Apr 2010, at 08:00, Miles J wrote: > > > > > Or you can use $this->setAction(). > > > On Apr 25, 10:54 pm, Jeremy Burns wrote: > >> $this->functionName(); > > >> Jeremy Burns > >> jeremybu...@me.co

Calling actions inside a controller

2010-04-25 Thread Eric Anderson
Hi everyone, I was unable to find the answer to this question in the 1.2.x documentation or in this group (although I have a feeling it must have already been answered somewhere). How do I properly call another action of the controller inside another action? All within the same controller. I just