Filter Records on Distant Association

2012-11-13 Thread double07
Hi All, So I'm a bit stuck on the above and I keep getting an sql server error. Yes I'm using mssql server :| - not my database. A little background, my relationships concerned look like this: AssetMaintenanceRecord->(belongs to)->Asset->(belongs to)->Project->(has one)->ProjectManager (note Pr

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-05-14 Thread double07
Just thought I'd post my slightly cleaner solution to this which makes use of a modified version of the attachments element in the media plugin. This allows you to use the attachment multiple times in a form for when you have different groups of attachments i.e. photos, files, videos etc. I'm no pr

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-05-09 Thread double07
;re receiving one file (like the media plugin examples) and you > should be good. This method is preferred, because when javascript is > disabled the logic in the controller doesn't need to change will still work > (i.e., old school single upload). > > 1:https://github.com/valums/

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-30 Thread double07
Hi Jeremy, Not having much luck with the saving manually option, do you having any working examples of drag and drop (jquery) I can look at? Thanks, -Brett On Apr 17, 7:44 am, jeremyharris wrote: > > Or, instead of using the multiple option, you can try processing them each > as a single reque

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-23 Thread double07
; but rather just how the view presents it. I've used drag and drop jQuery > plugins and the like to help with this. It's by far my favorite solution, > because it doesn't rely on browser specific features (such as HTML5 > multiple upload). > > > > > > >

CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-15 Thread double07
Hi All, I'm using the cakephp media plugin in my project using the monolithic style attachments table, i.e. all the attachments go in the one table with foreign_key, model, group etc. saved with the file details. So my model looks like: class ProjectProfile extends AppModel { var $name = 'Projec

Re: HABTM pagination issue

2009-10-12 Thread double07
aginate('News', array ('NewsVenue.venue_id' => 1; Hope that helps somebody. On Oct 12, 10:35 am, double07 wrote: > Thanks for pointing me in the right direction. > > For some reason $this->paginate('RolesUser'); didn't work by itself, > but

Custom Route + Param breaks Pagination

2009-10-11 Thread double07
Hi All, I've got a custom route which points to a sub-controller: Router::connect('/happyvalley/news/:action/*', array('controller' => 'happyvalley_news', 'prefix' => 'happyvalley', 'happyvalley' => true)); It all works fairly well except for when I add a custom parameter, in this case 'q' (whic

Re: HABTM pagination issue

2009-10-11 Thread double07
Thanks for pointing me in the right direction. For some reason $this->paginate('RolesUser'); didn't work by itself, but after having the same issue later in the project the solution was: (where News hasandbelongstomany Venue) $this->News->NewsVenue->bindModel(array('belongsTo' => array('News', '

HABTM pagination issue

2009-09-01 Thread double07
Hi All, I'm having an issue with using HABTM with pagination... My app has a users and roles table - users HABTM roles, roles have many users. In my users index controller I'm trying to limit the pagination results so that only users with certain roles are displayed. At the moment I have: $thi

Re: Multiple prefixes and reverse prefix routing

2009-07-01 Thread double07
I'm nearly there folks. My solution has been to modify the 'controller' part of my links in my views to include /venue/controller and /admin/venue/controller. This works fine in the non admin links i.e. /venue/controller/action/id - and partially works for admin i.e. / admin/venue/controller - but

Multiple prefixes and reverse prefix routing

2009-06-25 Thread double07
Hi all, I'm having trouble with getting my routes setup for a project I'm working on. See this thread for a little more background on the project: http://groups.google.com/group/cake-php/browse_thread/thread/33544e08936fba4e/069109e06b3fca09?lnk=gst&q=a+better+way#069109e06b3fca09 Basically it h

Re: A better way? Grouping controllers and views

2009-06-13 Thread double07
Hi again. I just need some more clarification on this issue. I like the idea of setting up named parameters for the venues in the routes. However, I'm using an ACL system where users can be restricted by controllers and actions. If I understand correctly the named parameters would allow me to do s

Re: A better way? Grouping controllers and views

2009-06-03 Thread double07
Thnaks for the feedback Mark & Martin, I'll have a look at these options over the next couple of days and see how they work out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

A better way? Grouping controllers and views

2009-06-02 Thread double07
Hi All, I'm working on a project at the moment which has a main site then sub sites for venue franchises. The venue sub sites are effectively the same as the main site but the news items etc are filtered to be only for that particular venue. The way I have this setup at the moment is as follows

Re: $ajax->editor help

2009-05-24 Thread double07
Works like a charm, thank you for suggesting that link. I might put a comment in the manual as it doesn't seem to mention: $this->params['form']['value'] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" grou

Re: How much to donate to CakePHP???

2009-05-21 Thread double07
I generally donate $10 everytime I download cakephp from the website. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

$ajax->editor help

2009-05-21 Thread double07
Hi All, I'm currently working on a comments section of my site and I'm trying to allow the comments to be edited via an ajax edit-in-place field. I can't work out how the data is passed to the controller though and also how to access that data in the controller... In my controller I have: funct

Re: Pagination of search results

2008-10-01 Thread double07
paginator will play nice with and redirects you to ourresults. > > Example: > function lookup() > { >     if ( !empty($this->params['url']['q']) ) >     { >         $param = $this->params['url']['q']; >         $this->redirect(&#

Pagination of search results

2008-09-18 Thread double07
Hi all, I know there's a lot of info around on this already but I haven't been able to solve this issue myself. I'm just setting up a simple search which will trawl through the titles and bodies of news items. I borrowed some code from the bakery here: http://bakery.cakephp.org/articles/view/pa

Re: Echo Fields of Article Ceator/Modifer in View

2008-07-15 Thread double07
'foreignKey' => 'creator_id', ), 'Modifier' => array( 'className' => 'User', 'foreignKey' => 'modifier_id', )

Re: Echo Fields of Article Ceator/Modifer in View

2008-07-10 Thread double07
x27;ll also want to look in the manual for more information on the new > containable behaviour built into the release candidates of CakePHP 1.2 > for how to narrow down what fields/models you want returned (http:// > book.cakephp.org/view/474/containable) > > Good luck, > > -

Echo Fields of Article Ceator/Modifer in View

2008-07-08 Thread double07
Hi All, This seems like a real n00b question, but here goes. I'm working on an app which has articles - in my case news - and users who create/modify the news articles. Now I found this nifty little behaviour - http://blog.loadsys.com/2008/05/02/automagically-setting-user-id-of-record-creator-and

Re: Ajax form won't submit

2008-04-18 Thread double07
I should also add to this that the ajax link doesn't seem to work in IE7 either. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To uns

Re: Ajax form won't submit

2008-04-18 Thread double07
Woh, what happened there! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTE

Ajax form won't submit

2008-04-15 Thread double07
Hi all, This is doing my head in so I'm posting here as a last resort. I'm reasonably new to cakephp, I've written a simple CMS app last year but I'm working on a new v1.2.0.6311 project now with user management/acl built in. Basically I'm working on the user management area at the moment specifi

Re: Kae's filemanager - FCKeditor - $_SERVER['DOCUMENT_ROOT'] problem

2007-08-21 Thread double07
Nevermind, got this sorted out. On Aug 21, 9:02 am, double07 <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm trying to configure Kae's filemanager (http://kfm.verens.com/) for > FCKeditor and I'm having a problem with cake. You can see my post over > at the KFM

Kae's filemanager - FCKeditor - $_SERVER['DOCUMENT_ROOT'] problem

2007-08-20 Thread double07
Hi all, I'm trying to configure Kae's filemanager (http://kfm.verens.com/) for FCKeditor and I'm having a problem with cake. You can see my post over at the KFM forums (http://kfm.verens.com/phpBB3/viewtopic.php? f=2&t=152) that the developer is saying $_SERVER['DOCUMENT_ROOT'] is not returning a

Re: Global css navigation menu from DB

2007-04-21 Thread double07
So I'm having a crack at using a component. My component (nav.php) looks like this: class NavComponent extends Object { var $menu = null; function doNav() { $this->menu = "testing"; //just for testing purposes } } In my app_controller.php I have: class AppControll

Re: Global css navigation menu from DB

2007-04-21 Thread double07
7;t "Nodes" so remove that > > line... > > > Try replacing it with: > > > var $uses = array('Node'); > > > This should tell AppController to use your Node model, making the > > findAllThreaded function available. > > > On 18 A

Re: Global css navigation menu from DB

2007-04-19 Thread double07
ng it with: > > var $uses = array('Node'); > > This should tell AppController to use your Node model, making the > findAllThreaded function available. > > On 18 Apr, 06:17, double07 <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > I'm tryi

Global css navigation menu from DB

2007-04-17 Thread double07
Hi All, I'm trying to setup a global css navigation menu. Basically All my pages for the site are in a table called 'nodes'. Each page has a parent_id so I can use findAllThreaded() to generate an unordered list using a 'tree' helper (http://bakery.cakephp.org/articles/view/64) I found in the bak

Re: CMS: How to set pages to have 'parents'?

2007-03-27 Thread double07
$this->Session->setFlash('Please correct errors below.'); $this->set('nodeTypes', $this->Node->NodeType->generateList()); } } } --And in my view I've got: labelTag(&

Re: CMS: How to set pages to have 'parents'?

2007-03-12 Thread double07
ot;Eric C Blount" <[EMAIL PROTECTED]> wrote: > $this->set('category_tree', $category_tree); //in the controller, so the > view can use the variable... > > HTH, > Eric > > On 3/11/07, double07 <[EMAIL PROTECTED]> wrote: > > > > >

Re: CMS: How to set pages to have 'parents'?

2007-03-11 Thread double07
Hi all, I just wanted to re-visit this again. I've come back after a couple of weeks break to attempt to finish this project, in particular the 'parent' select list which needs to be indented (for ease of use). Now I found what I thought was the perfect bit of code by 'Othy' here: http://othy.wor

Re: CMS: How to set pages to have 'parents'?

2007-02-27 Thread double07
e: > Um...should be a method of the model > class:http://api.cakephp.org/class_model.html#181aefe1bf7efe1504692c485c83caa8http://api.cakephp.org/1.2/classModel.html#181aefe1bf7efe1504692c485c... > > Are you calling it as $this->Node->findAllThreaded(...), as in the example >

Re: How to set pages to have 'parents'?

2007-02-26 Thread double07
Thanks Mariano, I'll have a look at that component once I get the array Eric mentioned up and running. Cheers. On Feb 24, 1:34 pm, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > Sounds like findAllThreaded() is the answer you are looking for: > > http://bakery.cakephp.org/articles/view/63 > > A

Re: CMS: How to set pages to have 'parents'?

2007-02-26 Thread double07
Firstly, thanks for your feedback, but I'm getting this error? Fatal error: Call to undefined method stdClass::findAllThreaded() in C: \wamp\www\cake\app\controllers\nodes_controller.php on line 45 Am I missing something here? Cheers. On Feb 24, 1:30 pm, "Eric C Blount" <[EMAIL PROTECTED]> wro

CMS: How to set pages to have 'parents'?

2007-02-23 Thread double07
Ok, this is doing my head in. Basically I'm trying to setup a simple CMS. So the part I'm wrestling with here is the pages or what I've called 'Nodes' Now my nodes basically have fairly simple fields; id, parent_id, title, summary, body, node_type_id, link, members and publish. It's all pretty mu

obAuth Errors

2007-02-08 Thread double07
Hi all, I'm new to Cake and I come more from a design background... so be gentle :) I trying to setup the obAuth component - http://bakery.cakephp.org/ articles/view/121 Whenever I try to secure certain actions in my controllers ($this- >obAuth->lock(array(2));), I get an error similar to this: