paginator on multipled HABTM relations ?

2008-06-04 Thread Knud Soerensen
paginator on a sigle HABTM relation can be seen on http://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-relationship/ But Imagine that users can subscribe to categories so: Product HABTM Category HABTM User If we would like to paginate through the products in the users categories

Re: is this a bug ?

2008-05-23 Thread Knud Soerensen
Adam Royle wrote: > I think this is fixed in more recent versions. > > Adam > > > > I am using 1.2.0.6311 beta. > On May 24, 2:39 am, Knud Soerensen <[EMAIL PROTECTED]> wrote: > >> I have a local cake site running onhttp://10.0.0.161/ >&g

is this a bug ?

2008-05-23 Thread Knud Soerensen
I have a local cake site running on http://10.0.0.161/ if I access http://10.0.0.161/ everything is fine if I access http://10.0.0.161/users/login?test everything is fine but if I access http://10.0.0.161/?test cake says *Warning* (2) : strpos() [function.strpos

Re: Problem calling user controler from app controler.

2008-05-20 Thread Knud Soerensen
Filip Camerman wrote: > Hi, > The bit of code you pasted does give the impression that you have some > things mixed up. For an example of simple user login, read > http://book.cakephp.org/view/327/simple-user-authentication . > > The problem with the example is that it is to simple ! First I d

Re: Problem calling user controler from app controler.

2008-05-20 Thread Knud Soerensen
this is not the way to > do whatever you are trying to do. > I trying to let the user login from every page. So, would you suggest that i move the user model into the app model ? > On May 19, 6:16 pm, Knud Soerensen <[EMAIL PROTECTED]> wrote: > >> In app_control

Problem calling user controler from app controler.

2008-05-19 Thread Knud Soerensen
In app_controler.php i have class appControler extends Controler { function beforeFilter() { App::Import('Model','User'); $this->User=&new User(); $this->User->login(); } } But I get 2 simmilar looking warnings: warning (2): pg_query() [function.pg-query] Query failed: ERROR: synta

Re: 1.2 Documentation has made amazing progress

2008-05-09 Thread Knud Soerensen
Yes. The cookbook have added a lot of pages. But there is still 4 issues which should be addressed. 1) It is just too slow. Waiting 45s for a page to load is not good. Someone need to take a look why this is happing. 2) Also I wish the structure was more cookbook like with recipes which is sma

Re: Custom Login for Auth Component?

2008-04-29 Thread Knud Soerensen
BrendonKoz wrote: > I'd really like to take advantage of CakePHP v1.2's Auth and ACL > features, but our user authentication is not stored in a database that > I have access to, it is only accessible via a SSL webservice call. > This means that users will not initially have any related model data

forum plugin

2008-04-05 Thread Knud Soerensen
Do there exist a forum plugin for cakephp ?? I need a forum plugin which is easy to modify. Does anyone know if there is on written with cakephp ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

cake says Query failed: ERROR: invalid input syntax for integer: ""

2008-03-29 Thread Knud Soerensen
hi I am a cakephp newbie writing my first cake controller. I am using cakephp 1.2.0.6311 and postgresql. I get the error *Warning* (2) : pg_query() [function.pg-query ]: Query failed: ERROR: invalid input syntax for integer: "" [*CORE/cake1.2/libs/model/d