Including CakePHP apps in other PHP applications

2009-05-19 Thread Arne-Kolja Bachstein
Hi there, I am wondering which way one could integrate an CakePHP application into another application like a CMS. My idea is to leave away all surroundings like header, footer and html head in my CakePHP view templates, so I have a content only area. This way I could just php- include Cake's boo

Re: CakePHP / MIT License - Cake free for bundling with my application?

2009-01-28 Thread Arne-Kolja Bachstein
n (the stuff in the cake > directory). > > Gwoo or phpnut might be able to provide further insight. > > -Erik > > On Jan 27, 10:36 am, Arne-Kolja Bachstein wrote: > > > Hi, > > > I really appreciate that CakePHP is licensed under the MIT license, as > >

CakePHP / MIT License - Cake free for bundling with my application?

2009-01-27 Thread Arne-Kolja Bachstein
Hi, I really appreciate that CakePHP is licensed under the MIT license, as it offers a wide range of freedom. But nevertheless, before using it for commercial use, I would like to clear out one big question for me: Is it allowed, regarding to this license, to deliver a copy of CakePHP with my com

Checking if the parent model/item belongs to the current user

2008-09-03 Thread Arne-Kolja Bachstein
Hi there, well, this is a very basic question and I hope someone is able to help me with this. Given is a three level association like User -> hasOne Profile -> hasMany ProfileAttachment My problem with this is to make sure a user does not save foreign ProfileAttachments. Saving the profile is

Unbind a model, but auto-receive its count

2008-04-08 Thread Arne-Kolja Bachstein
Hi, I have the following structure: Article belongsTo Cat Cat hasMany Article Now the problem is the size of my articles table (its got 180,000 entries). So to not auto-load 180,000 entries when doing a $this->Cat- >find(something) I had to disable recursion on my Cat (well, I actually unbound

Re: Cake 1.2 Auth component redirecting to a weird path

2008-02-05 Thread Arne-Kolja Bachstein
rk you'll have me stumped, someone with more than 2 > days experience with auth might have to help! > > On Feb 6, 10:48 am, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: > > > Hi Tim, > > > here it is: > > > --- > >         function beforeFi

Re: Cake 1.2 Auth component redirecting to a weird path

2008-02-05 Thread Arne-Kolja Bachstein
27;user'); $this->Session->delete('authenticated'); $this->Session->delete('profiles_menuitems'); } } --- Best regards Arne On 5 Feb., 22:07, Tim W <[EMAIL PROTECTED]> wrote: > Can y

Cake 1.2 Auth component redirecting to a weird path

2008-02-05 Thread Arne-Kolja Bachstein
Hi there, I've got a slight problem with my Auth component atm. It always redirects me to a specific but really weird URL when successfully logging in. The URL is the path to one of the images used by Thickbox (a jQuery script), so it results in the following: --- Missing Method in UsersControll

Re: Paginate an array thats not from a model

2008-01-18 Thread Arne-Kolja Bachstein
@rtconner: Thanks, I'll take a look at this. @Michael: The project is much bigger, that's just one tricky part of it. On 18 Jan., 19:54, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jan 18, 12:38 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: >

Paginate an array thats not from a model

2008-01-18 Thread Arne-Kolja Bachstein
Hi there, does anyone know if there is a chance to paginate data thats not fetched from the database/a model using the paginator component or something? The situation: I have a search form that fetches its hits from an XML file. That's done by first fetching the XML file, saving it to the tmp fo

Re: One form with two submit buttons

2007-12-09 Thread Arne-Kolja Bachstein
hField = 'field_a'; > }elseif(isset($this->params['form']['sb'])){ > $searchField = 'field_b'; > } > > ... do search > > } > > or something similar. > > There of course a many of ways

One form with two submit buttons

2007-12-08 Thread Arne-Kolja Bachstein
Hi, I have to implement a search form like How could I do this the cake way, is there any option? I cannot imagine atm how to do this at all, but maybe someone out there has a clue... Thanks in advance Arne --~--~-~--~~~---~--~~ You received this message b

How to trigger a cake controller function from CLI?

2007-12-08 Thread Arne-Kolja Bachstein
Hi there, I am writing a nice app atm that needs a function to be triggered via cron few times a day. Do you have an idea how to do this? I mean is there a problem with triggering it because of the url scheme or something? And what if I need this function to go through Auth component? Thanks in

Re: Do you hardcode your menu links?

2007-12-05 Thread Arne-Kolja Bachstein
Hi, many thanks for your answers so far. I think I'll implement a mix of elements and a generic model for this, to configure the links from within the backend. I think that's a nicer way than putting it into a config file or something. I had this in mind earlier, but have been in doubt if it wou

Do you hardcode your menu links?

2007-12-04 Thread Arne-Kolja Bachstein
Hi there, I've got a quite generic question... do you usually hardcode your menu links [in your views] when developing something with cake, or do you implement something like link management models or something? What's the usual way here in your opinion? Greetings Arne --~--~-~--~~-

Giving multiple objects in a view

2007-11-11 Thread Arne-Kolja Bachstein
Hi there, atm I am trying to implement a feature to upload multiple images with an article. Apart from the few tutorials I found covering this topic, I have a much more basic question about that: When I'm associating the Images model to my Article model (hasMany), I can simply use something like

Re: Simplest usage of the new Auth component?

2007-11-10 Thread Arne-Kolja Bachstein
ure you're using Auth > in app_controller.php > > Sean > > On Nov 9, 8:12 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: > > > Hi Sean, > > > thanks for pasting it, but there's only one single issue that doesn't > > match your config

Auth->allow not working at all?

2007-11-09 Thread Arne-Kolja Bachstein
Hi, regarding to my auth problem again (got it working now) just a quick question: Is the allow() method not working at all or do i misunderstand something? When using $this->Auth->allow() it seems to disallow something within my login handler even when allowing login, logout and such explicitely

Re: Simplest usage of the new Auth component?

2007-11-09 Thread Arne-Kolja Bachstein
Hi again, and sorry, I didnt answer your questions at all. Yes, I made sure I had configured the right fields and salt is nulled ('') too. Best regards Arne On Nov 9, 4:25 pm, SeanW <[EMAIL PROTECTED]> wrote: > On Nov 8, 6:33 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]&

Re: Simplest usage of the new Auth component?

2007-11-09 Thread Arne-Kolja Bachstein
at seems to be the point. Did I forget something? Best regards Arne On Nov 9, 4:25 pm, SeanW <[EMAIL PROTECTED]> wrote: > On Nov 8, 6:33 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: > > > But when submitting the form, it redirects me back to the login, pre- > &g

Re: Manipulate $this->data before saving?

2007-11-08 Thread Arne-Kolja Bachstein
ED]> wrote: > just add it to $this->data > > i.e. (haven't tested but along these lines) > > $this->data['myvar'] = 'myval'; > $this->data->save(); > > On Nov 9, 2:38 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: &

Manipulate $this->data before saving?

2007-11-08 Thread Arne-Kolja Bachstein
Hi there, how could I add a variable to $this->data before saving, that shouldn't be generated throughout the form it is associated to? :-) Thanks in advance Arne --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

Re: Simplest usage of the new Auth component?

2007-11-08 Thread Arne-Kolja Bachstein
- filling the password field with 32 chars (assume it's the md5 hash, but why?). Thanks in advance, Arne On Nov 8, 9:04 pm, SeanW <[EMAIL PROTECTED]> wrote: > On Nov 7, 9:07 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: > > > > > My goal is to implement

Simplest usage of the new Auth component?

2007-11-07 Thread Arne-Kolja Bachstein
Hi there, I tried to implement a simple authentication using the new Auth component from CakePHP 1.2, but did not succeed. Maybe there's someone who can give me quick and dirty assistance with this? My goal is to implement the authentication basics directly into /app/ app_controller.php rather t

Re: Embedded cake apps?

2007-10-19 Thread Arne-Kolja Bachstein
't think this would work out of the box, it's just an idea, so if you know what I mean and have some tips... you're very welcome :-) Best regards Arne On 19 Okt., 17:49, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: > Hi there, > > is it possible to use Cake fo

Embedded cake apps?

2007-10-19 Thread Arne-Kolja Bachstein
Hi there, is it possible to use Cake for an embeddable web application? I have to write a small application that will get embedded into an existing web site, e.g. by including the bootstrap file at some point of the original web sites source. Of course I know I can do this, but what about passin