Re: app attempting to insert records rather than update

2009-06-19 Thread Mauricio Morales
What get you printed out doing a print_r($data) just before the: if ($this->Merit->save($this->data)) {return true;} ? What if you save the ID manually into $this->data ? $this->data['Application']['id'] = yourIDFromYourSession(); --~--~-~--~~~---~--~~ You receiv

Re: Question about building a forum

2009-04-20 Thread Mauricio Morales
Sure you can, If you want to do that you need to read all the params (func_get_args) and make your custom logic. I took this code from the bakery in order to do this example. Hope this helps: function display() { if (!func_num_args()) { $this->r

Re: strange 404

2009-03-26 Thread Mauricio Morales
> ok, disabling the security component it works! Good news! =) --~--~-~--~~~---~--~~ 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 thi

Re: strange 404

2009-03-25 Thread Mauricio Morales
This problem is really strange. Try putting this at the top: $this->autoRender = false; I've had problems like this but in my case were by inexistent view calls. Are you using the last stable version ? Have you got access to the HTTP Access Log ? Try debugging with die('something'). On Mar

Re: strange 404

2009-03-25 Thread Mauricio Morales
As I can see you are using views from a different directory. This might be the problem. Please put this line at the end of the controller method: $this->render('edit', 'default', '/materiali/edit'); I think that CakePHP is trying to render a view that doesn't exist. Tell us if it works for you.

Re: Paginator links in 1.2.2

2009-03-24 Thread Mauricio Morales
t; prefer:https://trac.cakephp.org/changeset/8125 > > /Martin > > On Mar 23, 10:41 am, Mauricio Morales wrote: > > > Hey, > > > I haven't tested it yet.  But you can see here the last changes in > > Paginator Helper: > > >https://trac.cakephp.org/changeset?new=br

Re: Paginator links in 1.2.2

2009-03-23 Thread Mauricio Morales
Hey, I haven't tested it yet. But you can see here the last changes in Paginator Helper: https://trac.cakephp.org/changeset?new=branches%2F1.2.x.x%2Fcake%2Flibs%2Fview%2Fhelpers%2Fpaginator.php%408092&old=branches%2F1.2.x.x%2Fcake%2Flibs%2Fview%2Fhelpers%2Fpaginator.php%407847 https://trac.cak

Re: when I have set the Configure::write('debug', 0), how can I let a new model can be use.

2009-03-10 Thread Mauricio Morales
You can manually delete the tmp/cache/models/* data. Are you sure that your table was created with the same DB user that Cake's App uses?... It could be a permission problem. On Mar 9, 4:36 pm, Rimoe wrote: > Thank you for your answer, > so I have use the (Cache::clear()) in my controller, > bu

Re: plz help! May i use varchar as primary key

2009-03-09 Thread Mauricio Morales
I've used the field "id" with varchar type as PrimaryKey. I only specified the ID as notEmpty in the $validate array. Model::getLastInsertID() will not work but as you know that the ID is varchar type you will be careful in your app. logic. Try it, an let us know if you have problems. And obvio

Re: Tree misbehaviour

2009-03-01 Thread Mauricio Morales
Damn, It was a 8 OSI-Layer error. :=) . There is no errors. On Feb 28, 10:54 pm, Mauricio Morales wrote: > Hi folks, > > I've got the same problem.. It's really strange because all of my code > was working in the last Beta version. > > This is my DB table: >

Re: What do you develop in (ide, text editor, etc.)?

2009-02-28 Thread Mauricio Morales
I just downloaded Netbeans for PHP 6.5 and it's great. I've been using Eclipse for a long but I think you can enjoy Netbeans (open source and works in linux, mac, windows). http://www.netbeans.org/features/php/ --~--~-~--~~~---~--~~ You received this message beca

Re: Tree misbehaviour

2009-02-28 Thread Mauricio Morales
Hi folks, I've got the same problem.. It's really strange because all of my code was working in the last Beta version. This is my DB table: CREATE TABLE intracategories ( id SERIAL PRIMARY KEY, parent_id INT, lft INT, rght INT, name VARCHAR(255), tags VARCHAR(255), i

Re: CakePHP In A Subdirectory?

2009-01-27 Thread Mauricio Morales
I've gotten the same problem when I put the entire application into a directory that contain the words: "app" or "cake" If your directory's real name is "myapp" try changing it for "mysoftware" and reload again, there is no necessary to alter .htaccess files. Hope help. On Jan 26, 5:05 am, i

Re: Which editor for Mac OS X?

2009-01-25 Thread Mauricio Morales
I've got Coda and Eclipse PDT, with no doubts I recommend Eclipse PDT and I think I will do it for all life. Although Coda is thin and pretty, isn't as robust as Eclipse, with Eclipse you can install a big quantity of plugins to manage databases, UML graph, FTP integration, SVN integration, and s

Re: Website hosting for CakePHP

2009-01-25 Thread Mauricio Morales
I recommend A2Hosting, that Company has a great support and good servers. (http://www.a2hosting.com) On Jan 24, 9:49 pm, Petorama wrote: > Hi all, > > My site was done with CakePHP (Petorama.com) and I love the way it > came out, but my hosting company serves it very slowly. I use > GoDaddy.c

Re: HABTM on multiple DB---Please help me

2008-12-09 Thread Mauricio Morales
What kind of DB are using ? On 8 dic, 20:47, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > How can I do it? > > On 6 Dic, 10:35, Mauricio Morales <[EMAIL PROTECTED]> wrote: > > > Hi Marco, > > > I think that you can't do it wit

Re: HABTM on multiple DB---Please help me

2008-12-06 Thread Mauricio Morales
Hi Marco, I think that you can't do it with official methods, however you can implement this functionality. On Dec 5, 11:27 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have this question that I can't resolve. > I hope that someone can help me. > How can I set a HABTM relation between

Re: content-based ACL

2008-06-23 Thread Mauricio Morales
Hey, I have Hosting with an excellent hosting company called A2Hosting, http://www.a2hosting.com/, this company maintains the PHP Version Up 2 Date, and allow shell access for resellers. Hope this help you. On Jun 23, 10:19 am, leo <[EMAIL PROTECTED]> wrote: > I'm in Europe and I've never yet

Re: Should I learn cake 1.1 or 1.2?

2008-06-02 Thread Mauricio Morales
Hey Jonah, You have chosen an excellent Framework, and Cake 1.2 is so much powerful than 1.1. Enjoy the features, and browse into the Bakery (http:// bakery.cakephp.org) where you can find good tutorials, and a lot of code. Greetings, On May 31, 10:46 am, "Turnquist, Jonah" <[EMAIL PROTECTED

Re: reset Session variables without any visible cause

2008-03-30 Thread Mauricio Morales
I have the same strange problem... I'm working with CakePHP 1.2B and sessions saved into a PostgreSQL Database. On Mar 16, 7:58 am, jano <[EMAIL PROTECTED]> wrote: > I'm sorry to bother you with this strange problem, but I don't know > really how manage it. > Permorfing some action in my cake