Re: Staying DRY best practice?

2014-03-17 Thread designv...@gmail.com
Check out the CRUD plugin: https://github.com/FriendsOfCake/crud On Sunday, 16 March 2014 12:39:58 UTC, Harold Putman wrote: > > I've noticed that my controller methods and views for admin_edit, > admin_add, edit, add have a lot of overlapping code. What is the best > practice for organizing my

Complex find to generate totals

2013-10-11 Thread designv...@gmail.com
Hi All! I have a problem with a complicated find and I'm stumped... My database tables are: Products - id - name ... Orders - id - status ... OrderItems - id - order_id - product_id - quantity - line_total ... And Models are: Orders hasMany OrderItems OrderItems belongTo Products, Orders

Re: how to change a drop down based on a previously selected drop down in cakephp

2013-06-03 Thread designv...@gmail.com
I followed that tutorial recently and it worked like a charm. +1 On Saturday, 1 June 2013 19:48:13 UTC+1, Karey Powell wrote: > > I think this is what you are looking for: > http://www.willis-owen.co.uk/2011/11/dynamic-select-box-with-cakephp-2-0/ > > On Friday, 31 May 2013 09:04:42 UTC-4, sneha

checkout page via SSL empty post array?

2013-03-13 Thread designv...@gmail.com
Hi there, I have a checkout controller with the following in it: $this->Security->validatePost = false; $this->Security->csrfCheck = false; $this->Security->blackHoleCallback = 'forceSSL'; $this->Security->requireSecure('index'); $this->Security->allowedCon

debug disabled in Custom Authentication object?

2013-03-06 Thread designv...@gmail.com
Hi there, I'm trying to write my own authentication Custom Authentication object and doing the usual thing of debugging everywhere to check stuff and I have noticed that debug seems to be suppressed even tho it's set to 2 in the core? I have a results array that I can echo out serialized but c

CakeDC Comments & Users plugins together - issues?

2013-01-10 Thread designv...@gmail.com
I am running 2.1 and trying to use the CakeDC Users plugin alongside their Comments plugin but am running into an issue... *Error: * Call to a member function user() on a non-object > *File: > *C:\wamp\www\xxx\Plugin\Comments\Controller\Component\CommentsComponent.php > *Line: * 239 > I can

Counts, distincts and hasManys...

2012-09-04 Thread designv...@gmail.com
Hi there, I've been away from Cake for a bit and am coming back to a project and am scratching my head with this one... I have the following set up: Alumni -> hasMany -> Courses The alumni rows have a 'checked' field and courses have a 'year' field. I need to get the distinct years from cours

Re: Crreate invoice form

2012-08-07 Thread designv...@gmail.com
http://slash7.com/2006/12/22/vampires/ On Tuesday, August 7, 2012 3:22:48 AM UTC+1, Mr. Manager wrote: > > Dear Sir, > > I am thanks a lots for useful help; however, I cannot understand, may you > help me with this form and I will send the whole application to you to be > easy for you to check.

Re: HABTM example for CakeDC Search plugin

2011-12-20 Thread designv...@gmail.com
ta['filter']), 'fields' => array('news_post_id'), 'contain' => array('NewsTag') )); return $query; } But I'm now getting: Warning (512): Model "

Re: HABTM example for CakeDC Search plugin

2011-12-20 Thread designv...@gmail.com
Yep! Sure did! I was fairly sure I had followed everything correctly, but I kept getting "Operand should contain 1 column" error? I looked at debug and the 'tags' portion of the query was returning all the fields not just the id's? I think it's something to do with containable, but I couldn't fi

HABTM example for CakeDC Search plugin

2011-12-20 Thread designv...@gmail.com
Hi there, Has anyone got an example of how to use the CakeDC plugin to query a related habtm relationship? I have a standard posts/tags setup and want to query the tags as well as the posts. TIA d//t -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check o

Re: create Ticketing

2011-12-13 Thread designv...@gmail.com
Absolutely brilliant. Made my day! On Dec 13, 10:23 am, AD7six wrote: > On Dec 13, 10:29 am, Mamdoohi wrote: > > > hi. > > I want create ticketing plugin. > > can you give a database structure for ticketing. > > > > > Her

Re: CakePHP 2.0 bake all plugin views - fail?

2011-10-27 Thread designv...@gmail.com
Yeah the plugin works fine in browser everything is aok in that regard, I can even bake single controller views for the plugin, I just can't seem to bake them all. d//t On Oct 26, 4:21 pm, zuha wrote: > Do you have this in your bootstrap.php file ? > >  CakePlugin::loadAll(); // Loads all plugin

Re: CakepHP 2.0 plugins no longer have a default controller?

2011-10-26 Thread designv...@gmail.com
I have an 'Accommodation' plugin with AccommodationController.php and it works fine..? d//t. On Oct 26, 3:52 pm, "Richard@Home" wrote: > In CakePHP 1.3 you can have a default controller for your plugins. > > e.g. if you had a Users plugin, you could create a users_controller so > that urls suc

CakePHP 2.0 bake all plugin views - fail?

2011-10-26 Thread designv...@gmail.com
Hi there, I'm trying to bake all the views for a plugin in 2.0 and am having no luck whatsoever... I have tried: cake bake view all Accommodation.Campuses cake bake view all -plugin Accommodation cake bake view all -p Accommodation And none of them seem to work... :( Any advice? TIA d//t -

Re: using components inside custom authorize object (CakePHP 2)

2011-10-26 Thread designv...@gmail.com
I used: CakeSession::write('Auth.Plugins', $user_plugins); Should I be using: $session = $this->_Collection->load('Session'); $session->write('Auth.Plugins', $user_plugins); ? TIA d//t On Oct 25, 10:23 pm, José Lorenzo wrote: > In any method of your custom object you ca do something like th

Re: Baking Plugin controllers/models interactively in 2.0

2011-09-23 Thread designv...@gmail.com
7; => 'view', $hall['id'])); It doesn't seem to handle the plugin notation... d//t On Sep 23, 3:23 pm, "designv...@gmail.com" wrote: > It also seems to just create empty controllers - am I missing > something? I'd like it to create the default act

Re: Baking Plugin controllers/models interactively in 2.0

2011-09-23 Thread designv...@gmail.com
It also seems to just create empty controllers - am I missing something? I'd like it to create the default actions like for non- plugin controllers... d//t On Sep 23, 12:27 pm, "designv...@gmail.com" wrote: > Hi all, > > Can someone advise me how to bake controllers and

Baking Plugin controllers/models interactively in 2.0

2011-09-23 Thread designv...@gmail.com
Hi all, Can someone advise me how to bake controllers and models for a plugin in 2.0 so that it's interactive (ie like the normal bake process setting validation rules and relationships etc...) I'm currently doing: cake bake model Accommodation --plugin Accommodation But this just whizzes throu

Re: Pre CakeFest meetup in Manchester?

2011-08-31 Thread designv...@gmail.com
p from London tonight and will be around if anyone fancies > meeting up. > > Jeremy Burns > Class Outfit > > Tel: +44 (0) 208 123 3822 > Mob: +44 (0) 7973 481949 > Skype: jeremy_burnshttp://www.classoutfit.com > > On 31 Aug 2011, at 09:08, designv...@gmail.com wrote: > &

Re: Pre CakeFest meetup in Manchester?

2011-08-31 Thread designv...@gmail.com
M, WebbedIT wrote: > > >> Awww, no Jeremy, was really hoping I was going to meet you there :( > > > >> On Aug 29, 11:08 am, Jeremy Burns | Class Outfit > > >> wrote: > > >> > So tickets have sold out, and I now realise I can come. Any late > > >> >

Re: Pre CakeFest meetup in Manchester?

2011-08-28 Thread designv...@gmail.com
I doing the 4 days, so will be around for all of it. d//t. On Aug 28, 8:18 am, WebbedIT wrote: > @WebbedIT Are you doing the full 4 days or just the conference? > > On Aug 27, 11:55 pm, "designv...@gmail.com" > wrote: > > > > > > > > > Pro

Re: Pre CakeFest meetup in Manchester?

2011-08-27 Thread designv...@gmail.com
> -Mark > > On Aug 25, 6:04 pm, "designv...@gmail.com" > wrote: > > > > > Hi all, > > > I actually live in Manchester and am obviously going to CakeFest, so I > > thought I would see if anyone travelling from abroad and gets in a day > > or 2

Pre CakeFest meetup in Manchester?

2011-08-25 Thread designv...@gmail.com
Hi all, I actually live in Manchester and am obviously going to CakeFest, so I thought I would see if anyone travelling from abroad and gets in a day or 2 early would like a pre-fest meetup? I am around in Manchester and free every evening until the start of CakeFest, so if anyone fancies it, ple

Miles J - Uploader plugin - issues with habtm?

2011-05-25 Thread designv...@gmail.com
Hi there, Has anyone noticed any issues with the Miles J Uploader pluign (http:// milesj.me/code/cakephp/uploader) when used in forms that have HABTM elements? If I comment out the the habtm field the uploader works like a charm, as soon is its present though it fails to upload the files return a

Re: Function 'log in as' user

2011-05-16 Thread designv...@gmail.com
this->redirect(array('action' => 'view', 'admin' => false)); >         endif; > endif; > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 16 May 2011, at 10:22, designv...@gmail.com wrote:

Re: CakeFest 2011 - The CakePHP Conference

2011-05-16 Thread designv...@gmail.com
Yeah I realised that it was in $ and thus removed my half awake, un- caffinated, comments! So, yep, for UK people its fine! On May 16, 12:39 pm, mi...@brightstorm.co.uk wrote: > > $950.00 for all 4 days? > > > Holy crap. I assume that is as the price includes a hotel room? What > > about people

Re: Function 'log in as' user

2011-05-16 Thread designv...@gmail.com
If you are using roles then you could just have an option to pick a different role when you login and save that into the session instead of the one stored with your default admin record. On May 16, 10:19 am, heohni wrote: > Hi, > > I would like tow rite a function which allows me as admin to lo

Re: CakeFest 2011 - The CakePHP Conference

2011-05-16 Thread designv...@gmail.com
$950.00 for all 4 days? Holy crap. I assume that is as the price includes a hotel room? What about people that live 5 minutes away from Venue? Is there any education discount, or just an entrance only price? t. On May 16, 2:44 am, Graham Weldon wrote: > Hey all, > > I'm thrilled to announce

Re: CakeFest 2011 - The CakePHP Conference

2011-05-16 Thread designv...@gmail.com
BEST NEWS...EVER!! Thrilled!! On May 16, 2:44 am, Graham Weldon wrote: > Hey all, > > I'm thrilled to announce that CakeFest 2011 will be held on September > 1st through 4th in Manchester, UK! > > We've got a dual-stream planned for both the Conference and the > Workshops, and we've got some i

Re: Get a project work locally

2011-05-13 Thread designv...@gmail.com
Have you got modrewite turned on? On May 12, 5:28 pm, marcopais wrote: > Hi there, > > I was asked to make some changes to a CakePHP site that is already running > online. I have downloaded all the CakePHP files, installed database and > configureed database.php. > > Online, the site is running o

Re: Are its a Good format to write find query in app_helper especially in cakephp?

2011-05-13 Thread designv...@gmail.com
Wow. Just wow. http://book.cakephp.org/ On May 13, 8:05 am, "CakePHP.Saint" wrote: > Hi I plan to display images in view files through out the site so can > i import the model and write the query in app_helper file??? > > Are its a Good format to write find query in app_helper especially in > ca

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-28 Thread designv...@gmail.com
As to be expected, work's like a charm! Many thanks David for the fix and the plugin. d//t On Apr 27, 11:55 pm, David Persson wrote: > Hey, > > I think this commit will fix the issues with the mapping between MIME-type > and > name.https://github.com/davidpersson/mm/commit/707ab2cd6b9452403cd5

Re: user defined table fields

2011-04-27 Thread designv...@gmail.com
This may be useful? http://debuggable.com/posts/unlimited-model-fields-expandable-behavior:48428c2e-9a88-47ec-ae8e-77a64834cda3 On Apr 27, 4:08 am, turbo2ltr wrote: > Thanks, This is precisely the schema I was going to use. I guess I'm > not quite sure what I'm askingor maybe it's that I a

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-27 Thread designv...@gmail.com
t these files and > > their MIME? How might the solutions you find online be used with Cake? > > > On Tue, Apr 26, 2011 at 9:23 AM, designv...@gmail.com > > wrote: > > > Anyone? > > > > On Mar 22, 12:13 pm, "designv...@gmail.com" > > > w

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-26 Thread designv...@gmail.com
Anyone? On Mar 22, 12:13 pm, "designv...@gmail.com" wrote: > Hi there, > > Has anyone got any idea how to get the Media Plugin to recognise > Office 2007 files correctly? > > I can upload old .doc files fine and they get put in the 'doc' folder, > and do

Re: Place action where?

2011-04-04 Thread designv...@gmail.com
Could just pass a variable into the register action and then switch the view based on the variable... users/register/buyer ... $this->render('register_buyer'); On Apr 4, 4:47 am, "Krissy Masters" wrote: > How should this be set up? > User can register as a Buyer or Seller each with different

Re: PHP_EOL bug in cake 1.2

2011-03-25 Thread designv...@gmail.com
Thanks for clearing that up! I am in the unfortunate situation where I have ZERO control over the server, so I am at the mercy of php 4.3 :-( On Mar 24, 4:32 pm, mark_story wrote: > CakePHP maintains compatibility with PHP 4.4, nothing earlier. > > -Mark > > On Mar 23, 6:

Re: PHP_EOL bug in cake 1.2

2011-03-23 Thread designv...@gmail.com
P 4.3.10 and PHP 5.0.2 It's so that it generates the > correct newline for the correct OS. > > Have anymore information on your issue? > > On 23 March 2011 10:23, designv...@gmail.com wrote: > > > > > I have just updated one of my apps to latest 1.2 version and found >

PHP_EOL bug in cake 1.2

2011-03-23 Thread designv...@gmail.com
I have just updated one of my apps to latest 1.2 version and found that emails being sent by the app were broken due to cake using PHP_EOL. My server is php4 and PHP_EOL is a php5 constant I think? I thought 1.2 was fully compatible with php4? If it's not then I will rollback to the last working

David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-03-22 Thread designv...@gmail.com
Hi there, Has anyone got any idea how to get the Media Plugin to recognise Office 2007 files correctly? I can upload old .doc files fine and they get put in the 'doc' folder, and don't fail the mime validation rule, but it really doesn't like .docx files.. Any suggestions? d//t -- Our newest

Re: CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread designv...@gmail.com
Scratch that. While that seemed like a solution it doesn't make use of the admin route... Anyone else got any ideas? d//t On Mar 4, 9:55 pm, "designv...@gmail.com" wrote: > I LIKEY! > > Cheers, that will do it just fine! > > d//t > > On Mar 4, 9:19 pm, Sam

Re: CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread designv...@gmail.com
I LIKEY! Cheers, that will do it just fine! d//t On Mar 4, 9:19 pm, Sam Bernard wrote: > One simple way is just to have a generic "dashboard" action that chooses > what to display based on user role. You'll want to make sure to manually > call $this->render() in your _dashboard actions. > > fun

CakeDC Users Plugin - redirect based on role?

2011-03-04 Thread designv...@gmail.com
Hi there, I have the CakeDC USers Plugin working fine and dandy, but I want to have separate 'users' and 'admins' dashboards... Anyone know how to modify the loginRedirect based on the user role? Cheers! d//t -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: caching with pages and '/' route

2011-02-22 Thread designv...@gmail.com
ersions. The Dispatcher uses "/home" whenever the "/" is > specified. > > Enjoy, >    John > > On 22 Feb., 15:22, "designv...@gmail.com" > wrote:> I have used caching before on controllers I have created and it's not > > been a probl

Re: caching with pages and '/' route

2011-02-22 Thread designv...@gmail.com
sibilities for caching your information. I > would not turn on caching, unless I understand what is being cached > and for how long :) > Enjoy, >    John > > On 22 Feb., 14:39, "designv...@gmail.com" > wrote:> Haven't got anything apart from > > > Co

Re: caching with pages and '/' route

2011-02-22 Thread designv...@gmail.com
ache configuration! > Enjoy, >    John > > On 22 Feb., 13:49, "designv...@gmail.com" > wrote: > > > Hi there, > > > I have the following routes defined: > > > Router::connect('/', array('controller' => 'splashe

caching with pages and '/' route

2011-02-22 Thread designv...@gmail.com
Hi there, I have the following routes defined: Router::connect('/', array('controller' => 'splashes', 'action' => 'index')); Router::connect('/home', array('controller' => 'pages', 'action' => 'display', 'home')); And when I enable caching I get 1 cache file created when I hit the site index cal

Re: Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-17 Thread designv...@gmail.com
'between' => '','error' => array('wrap' => 'span', 'class' => 'bzzz'),'format' =>array('before', 'label', 'error', 'between', 'input', 'after';

Re: Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-17 Thread designv...@gmail.com
So that seems to be the issue lord alone knows why Does anyone know how to change the div to a span for the validation errors? ;-) d//t On Feb 17, 4:32 pm, "designv...@gmail.com" wrote: > Ahh wierd... i was viewing the HTML in Firebug and it was messed up, > actually view s

Re: Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-17 Thread designv...@gmail.com
e p is a block level element? > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 17 Feb 2011, at 16:20, designv...@gmail.com wrote: > > > Hi there, > > > When using the 'inputDefaults' option in Form->cre

Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-17 Thread designv...@gmail.com
Hi there, When using the 'inputDefaults' option in Form->create and doing the following: Form->create('Enquiry', array('inputDefaults' => array('div' => array('tag' => 'p'),'between' => '','format' => array('before', 'label', 'error', 'between', 'input', 'after'; ?> Cake seems to close the

CakeDC Users plugin - routes issue

2011-02-17 Thread designv...@gmail.com
Hi there there, I have integrated the CakeDC Users plugin fine and it all works out of the box, however I want to uses some neater routes for the login,register,dashboard actions but adding the following route: Router::connect('/login', array('plugin' => 'users','controller' => 'users', 'action'

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-15 Thread designv...@gmail.com
in now? :) > > In all seriousness, I understand it is hard sometimes to want to help folks > that fit the above list.  I typically ask for more input and 9 times out of > 10 you never hear from them again. > > On Mon, Feb 14, 2011 at 9:51 AM, designv...@gmail.com > wrote: > >

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-14 Thread designv...@gmail.com
Damn well said. I find myself checking this place less and less because of all the posts matching that list. It drives me nuts seeing so called programmers asking for people to basically do their work for them or asking questions that prove they havent bothered to read the book at all... It's li

Re: David Persson Media Plugin - regenerate image versions

2011-01-28 Thread designv...@gmail.com
Ahhh! Brilliant! Now I just have to work out how to run that on the server - I can run the shell stuff locally, but no idea how to do it on my Media Temple server... but awesome news, thanks! d. On Jan 28, 9:47 am, David Persson wrote: > Hi, > > Have a look at the Media shell. It comes with the

David Persson Media Plugin - regenerate image versions

2011-01-26 Thread designv...@gmail.com
Hi there, I have very successfully got the Media/Attachments plugin working on my new site, and I'm really impressed, but have run into a slight problem... The site is a rebuild of an existing site and has around 2000 images attached to news stories (the app folder weighs in at around 900mb!), no

Re: Use CakePHP in NetBeans IDE 6.8

2010-12-03 Thread designv...@gmail.com
http://slash7.com/2006/12/22/vampires/ ;-) On Dec 3, 9:31 am, Jeremy Burns | Class Outfit wrote: > I feel a little bad for being harsh with him now... > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 3 Dec 2010, at 09:30, keymaster wrote: > > > Sey

Re: mod_rewrite doesn't seem to work (OSX 10.5)

2010-09-09 Thread designv...@gmail.com
If you're on OSX have you made sure you actually copied over the htaccess files? OSX hides files with filenames starting with a dot (.) d. On Sep 9, 10:25 am, psybear83 wrote: > Hi everybody > > I'm trying to get my clean cakephp installation to work. when opening > the root directory, i'm getti

Re: some problem with layout

2010-08-23 Thread designv...@gmail.com
You're not including the relevant helpers somewhere, either in the admin layout or the controller you're calling that gives the error. On Aug 23, 1:42 pm, hoss7 wrote: > hi > > i have some problem with layout. > > i have some user login plugin and i want when admin login > > layout ='admin' > >

Re: Login using Auth component

2010-07-20 Thread designv...@gmail.com
Put the caching logic in the login action in your controller, and use the autoRedirect variable, as described here: http://book.cakephp.org/view/395/autoRedirect d. On Jul 19, 4:13 pm, Petter Andreas Strøm wrote: > Hi, > > Im modifying an existing login function which uses the Auth component.

Re: Slightly complex routing issue

2010-06-30 Thread designv...@gmail.com
Thanks for such a comprehensive reply! Just trying things out, and the first part doesnt seem to work, I'm trying to get www.domain.com/slug to actually be www.domain.com/artists/view/slug Any ideas? d. On 30 June, 19:17, cricket wrote: > On Wed, Jun 30, 2010 at 6:02 AM,

Re: Slightly complex routing issue

2010-06-30 Thread designv...@gmail.com
Thanks for such a comprehensive reply! Just trying things out, and the first part doesnt seem to work, I'm trying to get www.domain.com/slug to actually be www.domain.com/artists/view/slug Any ideas? d. On 30 June, 19:17, cricket wrote: > On Wed, Jun 30, 2010 at 6:02 AM,

Re: Slightly complex routing issue

2010-06-30 Thread designv...@gmail.com
I should've said - i'm using 1.2 On Jun 30, 11:02 am, "designv...@gmail.com" wrote: > hi there, > > I have (imo) a slightly tricky routing issue. > > I have a store setup with various artists and the artists have their > own mini stores with custom lay

Slightly complex routing issue

2010-06-30 Thread designv...@gmail.com
hi there, I have (imo) a slightly tricky routing issue. I have a store setup with various artists and the artists have their own mini stores with custom layout etc... Now I want to route the following; www.domain.com/artist_slug -> /artists/view/artist_slug and also: www.domain.com/artist_s

Re: Cookies from CAKE and other branding

2010-06-30 Thread designv...@gmail.com
> I'm a bit sick of wingy .. people complaining about something they > obtained for free as if they're owed something. Is it really too much > to ask for users to think a bit, do functional tests on their code and > read the ample documentation? (que attempted witty retort regarding > well that's o

Re: serious problem with cakephp about CakePHP Auth Component & Permissions

2010-06-17 Thread designv...@gmail.com
Oh and Calvin - do you actually work for Rotten Records? That's awesome, I love Acid Bath! I actually work for a few US metal labels too in my freelance capacity! On Jun 17, 3:04 am, calvin wrote: > No one is going to do your work for you (no matter how "easy" you > claim it is). And you can't be

Re: serious problem with cakephp about CakePHP Auth Component & Permissions

2010-06-17 Thread designv...@gmail.com
Well said. There seems to be a growing trend of people posting in this group that seem have little to no idea about working with CakePHP and seem to just want people to do their work for them. Personally I just don't get it, but maybe that 'cos I actually enjoy programming and solving problems...

Re: Problem with using XML with CAKEPHP

2010-06-07 Thread designv...@gmail.com
Well you have wrote: > Hi > I would use XML in my application. > I define my default layout in xml like : > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT\n"); > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" ); > header("Cache-Control: no-cache, must-revalidate" ); > header("Prag

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

Re: Cakephp Feasibility for a project

2010-05-18 Thread designv...@gmail.com
I would say Cake is perfectly adequate for a job like this, there is nothing there that I could forsee being a problem. Similar applications? I think you have a fairly bespoke job there. Payment gateways shouldn't be too tricky, there are a couple of good PayPal examples around for Cake. Paypal h

Re: Model::saveAll wont save associated data

2010-05-14 Thread designv...@gmail.com
IIRC I dont think you can do saveAll past 2 levels. d. On May 14, 2:52 pm, antte wrote: > I have Registrations which hasMany Invoices which hasMany Items and so > im trying to saveAll (from the registration model) this data: > > Array ( >   [Registration] => Array( >     [event_id] => 7 >     [n

Re: application accidentally logs out

2010-05-14 Thread designv...@gmail.com
Check your security settings in 'core.php' And read this: http://book.cakephp.org/view/42/The-Configuration-Class#CakePHP-Core-Configuration-Variables-44 Note: "CakePHP session IDs are also regenerated between requests if 'Security.level' is set to 'high'. " d. On May 14, 9:09 am, snicky wro

Re: Auth->user and SSL

2010-05-06 Thread designv...@gmail.com
I may be wrong but IIRC there is some issue with secure/insecure cookies when switching between http and https. I found the article a while back that discussed it, I'm sure a quick google will turn it up. Also, I remebered there was a 'fix' that involved a slight change in the core (ouch) or an a

Re: sql like 's%' error

2010-03-10 Thread designv...@gmail.com
'conditions' => array('Book.title LIKE' => 'S%'), NOT: 'conditions' => array('Book.title' => 'LIKE S%'), On Mar 10, 4:11 pm, Glikis wrote: > Everything is explained in the link. > > http://bin.cakephp.org/view/1645372860 > > can anyone tell me my mistake ? thank you for you time! > > ---

requestHandler swf/flash

2009-12-22 Thread designv...@gmail.com
Hi all, Is there a way to check if an action being called via flash with the requestHandler like the is for Ajax? Cheers, t. 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

rendering and returning

2009-12-15 Thread designv...@gmail.com
HI all, I have a controller that has 1 method that renders a view and all the other methods return values (its used to handle responses from a flash movie). My question is that if i set autoRender to false the 'return' value is echoed to the screen if I go to the method via the browser, and witho

Re: Converting SQL query into CakePHP using self join

2009-12-03 Thread designv...@gmail.com
Oh I should mention I need to paginate the results too! :( On Dec 3, 2:55 pm, "designv...@gmail.com" wrote: > Hi there, > > I need to convert the following: > > SELECT * > FROM `laps` > WHERE `id` = ( > SELECT `id` > FROM `laps` AS `alt` > WHERE `alt`

Converting SQL query into CakePHP using self join

2009-12-03 Thread designv...@gmail.com
Hi there, I need to convert the following: SELECT * FROM `laps` WHERE `id` = ( SELECT `id` FROM `laps` AS `alt` WHERE `alt`.`user_id` = `laps`.`user_id` ORDER BY `lap_time` ASC LIMIT 1 ) ORDER BY `lap_time` ASC LIMIT 10 into an on the fly binding and cake 'find all' and I'm having no luck : ( c

Security component woes

2009-12-01 Thread designv...@gmail.com
Hi all, I have the Security component enabled in my users controller and its adding the tokens into my register form and I am viewing it via HTTPS, however the form never submits, it just reloads the page, no save or no validation errors... I am sure I am missing something. I'm using Auth also a

SSL and hosting setup

2009-10-05 Thread designv...@gmail.com
Hi there, Can anyone answer this quick query for me, my hosting has a separate 'httpsdocs' folder for SSL stuff, if I wanted to use SSL within my cake app, using 'requireSecure' how would I go about it? I have it working so it redirects to the 'httpsdocs' directory if I go to an action that is s

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

2009-09-29 Thread designv...@gmail.com
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 communicating between Flash and CakePHP). Has anyone had any experience if this sort of project? I have got CPAMF all set up and have some dummy controller methods in

webroot and htaccess

2009-08-18 Thread designv...@gmail.com
Hi there, I have some forums in my webroot and have added the following to my htaccess: RewriteCond %{REQUEST_URI} ^/forums/(.*)$ RewriteRule ^.*$ - [L] And this is fine if I type: www.mydomain.com/forums/ However if I dont put the trailing slash (www.mydomain.com/forums) I get redirec

afterSave best practice - feedback wanted!

2009-03-26 Thread designv...@gmail.com
I have written this: function afterSave($created) { if($created == true) { $forum_id = $this->Topic->field('forum_id', array('Topic.id' => $this->data['Post']['topic_id'])); $forum_posts = $this->Topic->Forum->field('post_count', array ('Forum.i

Re: Unable to get Bake working again (1.2)

2009-01-22 Thread designv...@gmail.com
FIXXED!! YAY! Ok, I have to navigate to 'D:/Server/cake/' then type 'cake bake -app ../www/app1' and it works!!! Hope this helps someone else! d. On Jan 22, 11:21 am, "designv...@gmail.com" wrote: > No worries! Thanks anyways! > > Is there anyo

Re: Unable to get Bake working again (1.2)

2009-01-22 Thread designv...@gmail.com
Ok, so I have figured one thing out - i wasnt using the CLI version of PHP ?? Anyways, I have bake coming up now, but it wont recognise existing apps, tries to create new ones everytime... Any ideas anyone? TIA d. On Jan 22, 11:21 am, "designv...@gmail.com" wrote: > No wo

Re: Unable to get Bake working again (1.2)

2009-01-22 Thread designv...@gmail.com
ms quicker that way. > > On Jan 20, 5:00 pm, "designv...@gmail.com" > wrote: > > > Nah its not that, everything is aok with server and cake etc, all the > > apps run fine etc... > > > I'm thinking its needing the path to an app set, but everything I h

Re: Unable to get Bake working again (1.2)

2009-01-22 Thread designv...@gmail.com
ms quicker that way. > > On Jan 20, 5:00 pm, "designv...@gmail.com" > wrote: > > > Nah its not that, everything is aok with server and cake etc, all the > > apps run fine etc... > > > I'm thinking its needing the path to an app set, but everything I h

Re: Unable to get Bake working again (1.2)

2009-01-20 Thread designv...@gmail.com
with the location of htdocs? It looks like > the WAMP server is on C and your htdocs is on D, so it may be an > Apache DocumentRoot issue. > > On Jan 20, 3:54 pm, "designv...@gmail.com" > wrote: > > > Hi again, > > > Yeah I've tried all that, to no avai

Re: Unable to get Bake working again (1.2)

2009-01-20 Thread designv...@gmail.com
Hi again, Yeah I've tried all that, to no avail... I'm sure I must just be missing something but I can't figure it out for love nor money... Its a shame cos I have the server set up great and can just update the main cake file etc, but its all kinda redundant if I can't bake... :( d. On Jan 20

Re: Unable to get Bake working again (1.2)

2009-01-20 Thread designv...@gmail.com
and what is your current > directory when you do that? > > On Jan 20, 12:42 pm, "designv...@gmail.com" > wrote: > > > Hi there, > > > I have recently changed my WAMP setup locally and now have the > > following setup: > > > Server > > -cake

Re: Unable to get Bake working again (1.2)

2009-01-20 Thread designv...@gmail.com
: > What is the rest of your path? The whole system path, that is. > What are you typing on the command line, and what is your current > directory when you do that? > > On Jan 20, 12:42 pm, "designv...@gmail.com" > wrote: > > > Hi there, > > > I have

Unable to get Bake working again (1.2)

2009-01-20 Thread designv...@gmail.com
Hi there, I have recently changed my WAMP setup locally and now have the following setup: Server -cake --cake --vendors -www --app1 --app2 All my apps are working fine after I changed the values in the the webroot index.php However, I cannot for the life of me get Bake to work again, I had it

Re: dynamic content from infinite 'tree' categories

2009-01-09 Thread designv...@gmail.com
dropdown appears and so on. Not sure if I'm expaining to well! haha! d. On Jan 9, 11:51 am, Adam Royle wrote: > Maybe you could try a real tree component? > > http://blogs.bigfish.tv/adam/2008/02/12/drag-and-drop-using-ext-js-wi... > > Cheers, > Adam > > On Jan 9, 8:

Re: dynamic content from infinite 'tree' categories

2009-01-09 Thread designv...@gmail.com
dropdown appears and so on. Not sure if I'm expaining to well! haha! d. On Jan 9, 11:51 am, Adam Royle wrote: > Maybe you could try a real tree component? > > http://blogs.bigfish.tv/adam/2008/02/12/drag-and-drop-using-ext-js-wi... > > Cheers, > Adam > > On Jan 9, 8:

dynamic content from infinite 'tree' categories

2009-01-09 Thread designv...@gmail.com
Has anyone done aything along the lines of dynamically adding divs/ select boxes as a user drills down through tree data? ie select box with top level categories, then they make a choice and another select appears etc etc until they reach the lowest level? I have down updating select boxes befor