Re: CPAMF plugin, Auth and Encryption - anyone got any experience?

2009-09-30 Thread designvoid
Guess thats a no then... LOL! If I have any success I'll try and write something for the bakery. t. On Sep 29, 12:11 pm, "designv...@gmail.com" wrote: > Hi there, > > I'm looking at starting a new project that is going to need to use the > CPAMF plugin, CakePHP Auth and Encryption (for communi

Re: webroot and htaccess

2009-08-20 Thread designvoid
ewriteCond %{REQUEST_URI} ^/forums/?(.*)$ > > The question mark after the slash makes it optional. > > - Jamie > > On Aug 19, 1:13 am, designvoid wrote: > > > I have tried duplicating the lines and removing the trailing slash and > > also removing it from the existi

Re: webroot and htaccess

2009-08-19 Thread designvoid
I have tried duplicating the lines and removing the trailing slash and also removing it from the existing lines but to no avail... Any ideas? On Aug 19, 3:55 am, brian wrote: > Just remove the trailing slash from the rule: > > RewriteCond %{REQUEST_URI} ^/forums(.*)$ > > On Tue, Aug 18, 2009

Re: Launched a new cake app

2009-05-19 Thread designvoid
Great work man! Out of interest, what are you using for the forums? Did you write them yourself? If so, would you consider giving some insight, maybe a write up for the Bakery or even release some code? ;) Ayways, top work! d//t On May 17, 6:20 am, Miles J wrote: > I redid one of my old sit

Re: afterSave best practice - feedback wanted!

2009-03-26 Thread designvoid
Actually I had made a mistake!! Forgot to add: $this->Topic->Forum->id = $forum_id; Before the Save ooops! On Mar 26, 4:45 pm, designvoid wrote: > Cheers for replying, I'm using counterCache for the belongsTo > relationships, but this is for post count in the forum so

Re: afterSave best practice - feedback wanted!

2009-03-26 Thread designvoid
Cheers for replying, I'm using counterCache for the belongsTo relationships, but this is for post count in the forum so its effectively 2 relationships away, so I kinda work my way back up to forum then increment the post count. Its basically to stop myself using counts etc... As I said, it work

Re: afterSave best practice - feedback wanted!

2009-03-26 Thread designvoid
Cheers for replying, I'm using counterCache for the belongsTo relationships, but this is for post count in the forum so its effectively 2 relationships away, so I kinda work my way back up to forum then increment the post count. Its basically to stop myself using counts etc... As I said, it work

Re: Is this a crazy phbBB3 & CakePHP idea?

2008-08-20 Thread designvoid
Yeah that was my plan, and how I have executed it. Seems to be working well, especially with Containable there to really target exactly what I want returned. Add to that the caching engine and I reckon this is gonna be a nice little bridge between my site and my forums. If by any chance anyone e

Is this a crazy phbBB3 & CakePHP idea?

2008-08-19 Thread designvoid
Hey all! Just been playing around with phpBB3 and Cake and had this crazy idea! I have a large forum and want to build a website around it, and want to use cake to build the site. Now I want to include content from the forums ie posts and topics on certain pages, so I had this thought! I could c

Re: saveAll() not inserting related id

2008-08-19 Thread designvoid
Is anyone able to shed any light on this?? I've put it aside for a while, but I need to figure this out now. So anyone able to help? TIA, d. On Aug 5, 12:43 pm, designvoid <[EMAIL PROTECTED]> wrote: > Oh and I should mention i'm using v1.2 > And... > > ...editing a

Where is the flashMessage div constructed? Trying to created multiple flashes

2008-02-18 Thread designvoid
Hi all, I'm trying to create multiple flash messages ie an error message and a success message, I have it to show the error message and the standard flash, but the standard has a div around it and my own error one just dumps the passed error... I'm using the stable release not the beta... Can an

Re: Save data from model x with model y with different fieldnames

2008-02-01 Thread designvoid
HAHA! Figured it out! Cake ignores array items that don't match when saving, so i can just add hidden fields for the different fields in the second model and then just save! Sound about right? On Feb 1, 12:29 pm, designvoid <[EMAIL PROTECTED]> wrote: > Hi there, > > I

Save data from model x with model y with different fieldnames

2008-02-01 Thread designvoid
Hi there, I have a shopping cart table with associated tables and an orders table with associated tables, I want to move the shopping cart data into the orders tables once the user clicks checkout. The cart and orders tables have 2 differently named fields but are essentially the same (im using

Looking for help working through a logic problem (shopping cart related)

2008-01-25 Thread designvoid
Hi all, I'm currently trying to complete what I thought would be a fairly simple shopping cart, however I have run into some issues with the logic side of add/updating a users cart. As it stands I have a cart table & a cart options table (to store users product variation choices), now I have it

Re: Differing Array structures with HABTM find requests? Multiple Views?

2008-01-18 Thread designvoid
I've used BAKE and everything working fine, and I've redesigned all the pages, even got LDAP and multiple checkboxes working but its just these little extra bits of functionality imposed by the interface design that are causing headaches... Again, thanks for your time! toby. On Jan 18,

Re: Differing Array structures with HABTM find requests? Multiple Views?

2008-01-18 Thread designvoid
ll not 100% with specific terminology. Anyways, thanks again for the tip!! :-) On Jan 18, 9:37 am, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 18, 10:29 am, designvoid <[EMAIL PROTECTED]> wrote: > > > Noone able to add any insight to this? > > There is a lot of insight al

Re: Differing Array structures with HABTM find requests? Multiple Views?

2008-01-18 Thread designvoid
Noone able to add any insight to this? Sorry to bump, I know its annoying, but I'm loathed push forward with this app if I'm unsure about cases like this... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

Differing Array structures with HABTM find requests? Multiple Views?

2008-01-17 Thread designvoid
Hi all, I have a page that displays a list of projects, projects can habtm teams and vice versa, when the page first loads the $projects array is populated via: $this->set('projects', $this->Project->findAll()); Which returns ALL projects. Now on the page there is a select box that posts back t

generateList - problem with conditions and multiple tables

2008-01-16 Thread designvoid
Hi all, Hoping someone can help me with this, I'm using stable cake release and trying to use generateList using conditions based on multiple models. I have a team model: class Team extends AppModel { var $name = 'Team'; var $validate = array( 'name' => VALID_NO

Frustration with FileHandler snippet and saving returned value, any advice?

2007-12-13 Thread designvoid
Hi there, I'm currently playing with the FileHandler snippet by Chris Partridge (http://cakeforge.org/snippet/detail.php?type=snippet&id=52) and I've hit a problem! I can get the file to upload correctly and saved in the correct location, but I cannot for the life of me get the filename back int

Code critique? Anyone spare 5 mins to look over something?

2007-12-03 Thread designvoid
Hi all! I'm in the process of building my first app with Cake and was wondering if someone could look over some code and let me know if what I have done is correct or waay off base... Its basically a few lines to get 3 different arrays populated with data from 2 tables via a HABTM releationship.

Re: Strange recursion problem (i think) - hopefully someone can shed some light (code inc.)

2007-11-26 Thread designvoid
Sorted! It was that plural, dropped the 's' and BINGO! d. On Nov 24, 7:15 pm, designvoid <[EMAIL PROTECTED]> wrote: > The uses array is only there to test the Variations call, I would > remove it in finished thing. > > The plurals are the names of the arrays I

Re: Strange recursion problem (i think) - hopefully someone can shed some light (code inc.)

2007-11-24 Thread designvoid
=> > array('className'=> 'Variation', > > And setting the HABTM association also on the VariationOption model > > If you area starting with cake, i'd also suggest to *really* use all > cake conventions, like db table

Re: Strange recursion problem (i think) - hopefully someone can shed some light (code inc.)

2007-11-23 Thread designvoid
seems the join between 'groups' the 2 is screwy somewhere... i can return products and vars and vars and options but not all in one go! LOL! d. On Nov 23, 9:58 pm, bingo <[EMAIL PROTECTED]> wrote: > hi designvoid > > I am 100% confident it has something to do with how

Re: Strange recursion problem (i think) - hopefully someone can shed some light (code inc.)

2007-11-23 Thread designvoid
, bingo <[EMAIL PROTECTED]> wrote: > hi designvoid, > > I would suggest you that you get that script. In my experience of > using CakePHP, I found it very useful. But I started using that script > before CakePHP 1.2 came into existence and continuing to still use it > in 1.2

Re: Strange recursion problem (i think) - hopefully someone can shed some light (code inc.)

2007-11-23 Thread designvoid
uming you are using unbindModel > scripthttp://bakery.cakephp.org/articles/view/an-improvement-to-unbindmodel...) > > $this->Product->Variations->expects('Options); > $this->Product->expects('Variations); > $this->set('products', $this->Product-&

Strange recursion problem (i think) - hopefully someone can shed some light (code inc.)

2007-11-23 Thread designvoid
Hi all, I'm having a wierd issue when trying to use 3 models together via 1 findAll()... I'll paste the code then, explain what's happening, fingers crossed one I you fine folk will be able to give a me a pointer as to what I'm missing... Basic overview: Products has multiple Variations and Var

Re: Confusing problem with insert/update via AJAX (have exhausted solutions find via search)

2007-11-22 Thread designvoid
l your set: > > var $primaryKey = 'jm_j_id'; > > ...so in your controller you are setting the passed value to 'jm_j_id' > which is the PK. > > On Nov 21, 8:34 am, designvoid <[EMAIL PROTECTED]> wrote: > > > Hi there! > > > I'm

Confusing problem with insert/update via AJAX (have exhausted solutions find via search)

2007-11-21 Thread designvoid
Hi there! I'm trying to perform an insert query via an ajax call, having searched throughout the group, I have come to the conclusion that it is something to do with Cake taking the only parameter passed as the PK and performing an update rather than an insert. I have found posts regarding this s