Method from controller is not mapped

2012-07-03 Thread Cosmin Paul
Hi, I set-up cake and I have a problem that google can't answer, I am stuck on this and I can't find an answer. For http://mysite/users/ It works For http://mysite/users/add `Create the class AddController below in file: app/Controller/AddController.php` But this is a method from Users

Method from controller is not mapped

2012-07-03 Thread Cosmin Paul
Hi, I set-up cake and I have a problem that google can't answer: http://mysite/users/add on this URL: http://mysite/users/ -- -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: Login problem

2012-07-03 Thread Cosmin Paul
Make sure you call parent class, If you over-right the `isAuthorized` method. return parent::isAuthorized($user); Maybe this helps you, Cheers Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Method from controller is not mapped

2012-07-03 Thread Cosmin Paul
/app/webroot/ Options FollowSymLinks AllowOverride All /Directory /VirtualHost And mod_rewrite.c is included. Cheers On Tue, Jul 3, 2012 at 8:02 PM, Cosmin Paul cosmin.p...@gmail.com wrote: Hi, I set-up cake and I have a problem that google can't answer: http://mysite

problems with debug in cake v.1.3.7

2011-03-07 Thread Cosmin Paul
Hi, Did anyone have some problems with debug in cake v.1.3.7 ? Set: Configure::write('debug', 2); No debug at all... copy paste cake (v.1.2.6), activated at the next refresh. I've search the change-log but didn't find something relevant and I don't have time to debug the framework. Cheers,

Re: problems with debug in cake v.1.3.7

2011-03-07 Thread Cosmin Paul
Yap, this is it. Thank you Cheers, Cosmin On Mon, Mar 7, 2011 at 10:46 PM, Sam Bernard sambern...@gmail.com wrote: Are you referring to the sql log that used to appear at the bottom of the page? According to

Re: controller setup - pagination

2009-09-16 Thread Cosmin Paul
This is correct : $this-paginate('Product'); On Wed, Sep 16, 2009 at 7:10 AM, borcho boris.nenc...@gmail.com wrote: Hi, I am new to CakaPHP and I cannot figure out how to paginate products listed under a category (many to many relationship) and also use category table fields in the same

Re: Hi CakePhp fans, paginator with a alias field.

2009-09-11 Thread Cosmin Paul
') {                                                $query['order'][$i] = 'RAND()';                                        }                                }                        }                        return $query;                }  } } hth grigri On Sep 10, 2:36 pm, Cosmin Paul cosmin.p

Re: Hi, $paginator-sort, I need a ID in the a tag.

2009-09-10 Thread Cosmin Paul
I like this, Thanks you ! On Thu, Sep 10, 2009 at 11:47 AM, WebbedIT p...@webbedit.co.uk wrote: If you are showing a select list then it seems overkill to also hide a load of links and add a javascript behaviour to then click on one of those hidden links. Just add an observer to the

Hi CakePhp fans, paginator with a alias field.

2009-09-10 Thread Cosmin Paul
Because I use the query to mysql for some math. CakePhp dose't let me use $paginator-sort('Initial Monthly repayments','initial_monthly_payment'); CODE php $initial_monthly_payment = MATH FORMULAS; /php. SQL FIELDS QUERY . . $initial_monthly_payment.'` as

Hi, $paginator-sort, I need a ID in the a tag.

2009-09-09 Thread Cosmin Paul
My employer wants a drop down for sorting the results instead of links. I want to do this by launching a js function that make a click on the appropriate link that is hidden. It is this the right way to do it ? And if so, haw can I insert a ID in the a href that $paginator-sort set on the

Re: helping in pagination with relationship

2009-09-04 Thread Cosmin Paul
For pagination with relationships I use this: CODE function ReturnMyArrayForPagination(){ . . /* conditional code */ . return array( 'MortgageDetail' = array( 'limit'= 10,

Hi, $paginator-sort, I need the URL for my buttons.

2009-09-03 Thread Cosmin Paul
I have buttons that are a little complicated, like this : CODE foreach( arr with buttons ){ p id=mortgage_filter_p_?php echo $name; ? span class=checkbox chk_unselected id=mortgagesSort_span_?php echo $name;?/span input type=checkbox name=morning_dep

Re: Hi, my server admin in not loving changes.

2009-08-28 Thread Cosmin Paul
Right :), my bad English. I red the change logs, I will try to talk to him and get some arguments for his decisions. Thanks c05min. On Fri, Aug 28, 2009 at 3:30 AM, Alexandru Ciobanuics.cake...@gmail.com wrote: On 8/26/2009 1:27 PM, Cosmin Paul wrote: Hi, I am a programmer from a 7 gays

Re: Flash

2009-08-28 Thread Cosmin Paul
Export from Flash a html page with Flash in it, then paste your code in other page. Hope this helps you, Chears On Fri, Aug 28, 2009 at 9:45 AM, Matias_castromattias.cas...@gmail.com wrote: Does anyone know hoy to embed a flash animation (.swf) into a layout?? I can't get html object to

Re: CakePHP for online examination application?

2009-08-28 Thread Cosmin Paul
yes, we work with cake for a medium to big size app, and it is OK. CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over

Re: Multiple pagination same view

2009-08-28 Thread Cosmin Paul
Check if you call the right model for pagination, or you can have some vars that takes other values. On Thu, Aug 27, 2009 at 10:36 PM, MLmlaut...@gmail.com wrote: Does anyone know how to have multiple blocks (multiple tables for example) of paginated data on the same page? There seems to be 2

Re: Custom query pagination

2009-08-28 Thread Cosmin Paul
Hi, This is haw I paginate and it works OK, I have 3 join tables ( I can set different type of joins ), Did you understand what is happening ? PHP CODE function MyFunctionThatReturnPaginateArrayInfo { code code code ... return array( 'MortgageDetail' =

Hi, my server admin in not loving changes.

2009-08-26 Thread Cosmin Paul
Hi, I am a programmer from a 7 gays team, and I have recently finisher my module. When I uploaded my work to stage one server, I have a bug in sql query generated by cake: It appends the model name to an alias code MortgageDetail`.(`interest_only_rate + 0 `) as interest_only_rate, /code. This is

Re: how to implement comentaries?

2009-08-26 Thread Cosmin Paul
Make your db schema, and use cake command line tool for a first draft and admin part, and after that make the front end. On Wed, Aug 26, 2009 at 3:21 PM, Persivo Cunharicky...@gmail.com wrote: Hi, people i wanna show commentaries in my site and i would like be possible answers them. What i