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
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 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/
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
; 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).
>
>
>
>
>
>
>
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
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
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
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',
'
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
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
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
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
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,
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
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
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
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
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(
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
'foreignKey' => 'creator_id',
),
'Modifier' => array(
'className' => 'User',
'foreignKey' => 'modifier_id',
)
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,
>
> -
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
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
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
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
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
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
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
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
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
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
$this->Session->setFlash('Please correct errors
below.');
$this->set('nodeTypes',
$this->Node->NodeType->generateList());
}
}
}
--And in my view I've got:
labelTag(&
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:
>
>
>
> >
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
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
>
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
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
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
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:
40 matches
Mail list logo