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 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

Re: webroot and htaccess

2009-08-20 Thread designvoid
%{REQUEST_URI} ^/forums/?(.*)$ The question mark after the slash makes it optional. - Jamie On Aug 19, 1:13 am, designvoid designv...@gmail.com wrote: I have tried duplicating the lines and removing the trailing slash and also removing it from the existing lines but to no avail... Any

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 bally.z...@gmail.com wrote: Just remove the trailing slash from the rule: RewriteCond %{REQUEST_URI} ^/forums(.*)$ On

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 mileswjohn...@gmail.com wrote: I

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

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

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 designv...@gmail.com wrote: Cheers for replying, I'm using counterCache for the belongsTo relationships, but this is for post count in the forum so its

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

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 and adding new variations via

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

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

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 have a shopping cart table

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
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

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

2008-01-18 Thread designvoid
% 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 already listed on the frequent discussions page

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

2008-01-18 Thread designvoid
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, 9:42 am, designvoid

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 to

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' =

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=snippetid=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

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

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 thought, and as such didn't matter what

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

2007-11-24 Thread designvoid
, like table_name, primary key, et cetera. Spark On Nov 23, 2007 9:01 PM, designvoid [EMAIL PROTECTED] wrote: I have full debug on and all the queries seem to be correct. If I change: $this-set('products', $this-Product-findAll()); to $this-set('products', $this-Variations

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

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

2007-11-23 Thread designvoid
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. You might also want to see if 1.2 has any

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

2007-11-23 Thread designvoid
scripthttp://bakery.cakephp.org/articles/view/an-improvement-to-unbindmodel...) $this-Product-Variations-expects('Options); $this-Product-expects('Variations); $this-set('products', $this-Product-findAll()); bingo On Nov 23, 12:59 pm, designvoid [EMAIL PROTECTED] wrote: Hi all, I'm

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

2007-11-23 Thread designvoid
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 setup HABTM (belongsTo, etc) relationships. CakePHP is pretty good

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

2007-11-22 Thread designvoid
value to 'jm_j_id' which is the PK. On Nov 21, 8:34 am, designvoid [EMAIL PROTECTED] wrote: 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

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