Re: How to $model->find for any controller

2009-10-01 Thread Bert Van den Brande
Glad to help. Just beware of the fact that requestAction adds some performance penalty to the rendering time, especially when used multiple times in a view ... On Fri, Oct 2, 2009 at 8:06 AM, DatacenterHellas wrote: > > First of all I like to thank all of you for your responses ! ! ! ! :) > > Fi

Re: Access Classes In Layout Help??

2009-10-01 Thread Bert Van den Brande
Well, you should test it out, but from what I can see in the source code the controller's view is rendered first and then passed on to the layout $content_for_layout. During this process it merges $this->viewVars , so I would presume that every information you made available for the controller's v

Re: How to $model->find for any controller

2009-10-01 Thread DatacenterHellas
First of all I like to thank all of you for your responses ! ! ! ! :) Finaly I used the requestAction and it is perfect for my solution :) Kind Regards Merianos Nikos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

install missing styles

2009-10-01 Thread Matias_castro
Hi, I was able to install cake with no problems in mi local machine (using wamp) fixing the "no styles" problem. The issue is that when I moved cake files (version 1.2.4.8284), right out of the box, I found my self with the same "no styles" problem, with the one difference that now I cannot edit

Re: Release: CakePHP 1.2.5

2009-10-01 Thread Larry E. Masters aka PhpNut
I do not, so that is why I no longer reply :) -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Thu, Oct 1, 2009 at 11:02 PM, Robert Popplewell wrote: > I wonder if every other member of the CakePHP developm

Re: Release: CakePHP 1.2.5

2009-10-01 Thread Robert Popplewell
I wonder if every other member of the CakePHP development team takes the time to reply to remarks made by all other end-users with such wit. 2009/10/2 mark_story > > George, > > Sorry to hear you're miffed, but I made a mistake in packaging 1.2.5 > so the version number printed when running shel

Re: Cannot figure out my $conditions array

2009-10-01 Thread FrederickD
Nope. The code is real and working. I believe I figured it out about an hour ago using an example from here: http://www.pubbs.net/cakephp/200905/101772/ Here is the working code now: switch($this->user['group_id']) { case '1':/* Admin shows all */ $conditions = array(); /* Redundant

Re: Release: CakePHP 1.2.5

2009-10-01 Thread mark_story
George, Sorry to hear you're miffed, but I made a mistake in packaging 1.2.5 so the version number printed when running shells reads 1.2.4.8284. While the VERSION.txt reads 1.2.5. So if you want to be mad at someone be mad at me. As for other things missing, there is nothing that I'm aware of.

Re: Cannot figure out my $conditions array

2009-10-01 Thread Dr. Loboto
If assume that you posted here edited code I suggest that in real one you have misspelled variables inside switch or forgotten lines that blank $conditions array before dump or something else of same type. On Oct 1, 11:18 pm, FrederickD wrote: > I am sure this is a simple error, but I am just no

Re: neighbors sort

2009-10-01 Thread mklappen
I think I'll have to write my own function as well. kind of put this on the back burner for now and will come back to it once I've finished coding the rest of the app. Thanks for the reply. On Sep 28, 10:43 am, "euromark (munich)" wrote: > i ended up writing some highly complicated function for

Re: Release: CakePHP 1.2.5

2009-10-01 Thread George H
I'm a little miffed that there's no word from any developers about the issue above -- either through here, twitter or CakePHP Bakery. My main concern is that the release notes for this version state that a change has been made (the version number for example) but the download package doesn't have

Re: Geocoding, Distance, & Paginate...

2009-10-01 Thread Andras Kende
Basically just overwrite paginate function, something like: http://book.cakephp.org/view/249/Custom-Query-Pagination On Oct 1, 2009, at 5:37 PM, Kyle Decot wrote: > > Thanks. That's exactly what I want but with pagination. I also want to > order the results by distance. Any idea how to apply

Find count help

2009-10-01 Thread dw
Can someone give me a little push in the right direction on how to set up this find? Here is the model set up: Counselor hasMany Meeting hasMany Attendee All i need is an attendee count per counselor based on a meeting date range, but something in my brain is not letting me figure this out. I've

Re: Access Classes In Layout Help??

2009-10-01 Thread Miles J
Just put in your layout file, and then Cake will render your controllers view within that variables location. On Oct 1, 3:05 pm, hahmadi82 wrote: > Correct, I want to use stuff from my cars controller in the > views/layout/default.ctp.  The only possible solution I can think is to use > ajax to

Re: shuffle(), rand(), etc always returning same number

2009-10-01 Thread Miles J
Oh wow nice find. It seems like this should be reported as a bug. They should probably wrap it in an if statement: if (PHP4) { srand(); } On Oct 1, 2:11 pm, Jamie wrote: > Well, it might be a bit of a band-aid, but I threw this just after > line 61 of the AutoLoginComponent (in startup()): > >

Re: Access Classes In Layout Help??

2009-10-01 Thread hahmadi82
Correct, I want to use stuff from my cars controller in the views/layout/default.ctp. The only possible solution I can think is to use ajax to load some of the car stuff. Basically, I'm curious how you can access your database from the layout file. Miles J wrote: > > > Im sorry but I dont

Re: Access Classes In Layout Help??

2009-10-01 Thread Bert Van den Brande
I think he means that he has written a controller+view that generates some output. Now he wants to render the same output inside his layout file ... Correct hahmadi ? On Thu, Oct 1, 2009 at 11:41 PM, Miles J wrote: > > Im sorry but I dont understand what you are asking. > > Layout toolbar? Con

Re: Access Classes In Layout Help??

2009-10-01 Thread Miles J
Im sorry but I dont understand what you are asking. Layout toolbar? Controller class? Do you mean component? Layout has no controller? Not sure what you mean there. Database in layout? You mean your result right? On Oct 1, 1:52 pm, hahmadi82 wrote: > Hi, > > I built a class with controller/vi

Re: Geocoding, Distance, & Paginate...

2009-10-01 Thread Kyle Decot
Thanks. That's exactly what I want but with pagination. I also want to order the results by distance. Any idea how to apply this to pagination? On Oct 1, 3:24 pm, Andras Kende wrote: > Hello, > > This works for me ( not paginating ) > >      $points = $this->find('all', array( >        'order' =

Re: shuffle(), rand(), etc always returning same number

2009-10-01 Thread Jamie
Well, it might be a bit of a band-aid, but I threw this just after line 61 of the AutoLoginComponent (in startup()): srand(); And that seems to be fixing my seeding problems. - Jamie On Oct 1, 2:05 pm, Jamie wrote: > Sorry for dragging up an old thread, but I'm having thissameproblem. > Usin

RE: Where request comes from?

2009-10-01 Thread Dave Maharaj :: WidePixels.com
But no good for AJAX. I have AJAX forms in my app so I cant use the security component. Can I? I know it wont work for AJAX submitted forms. I was just curious. Dave -Original Message- From: Martin Westin [mailto:martin.westin...@gmail.com] Sent: October-01-09 5:45 PM To: CakePHP Sub

Re: shuffle(), rand(), etc always returning same number

2009-10-01 Thread Jamie
Sorry for dragging up an old thread, but I'm having this same problem. Using mt_rand() instead of rand() wasn't appealing to me, since it just 'fixes' a symptom instead of the underlying problem, so I decided to hunt down the issue (using version 1.2.4). I tracked the problem down to Security::ci

Access Classes In Layout Help??

2009-10-01 Thread hahmadi82
Hi, I built a class with controller/views that I want displayed in my layout toolbar. Is this possible? How can I use this queried data in my layout file? Since layout has no controller, I'm not sure how I can use any database stuff in the layout -- View this message in context: http://

Re: afterSave causing save to fail

2009-10-01 Thread Martin Westin
Maybe Cake does not like you calling a saveAll "inside" a saveAll? A bit unrelated, but what is that afterSave doing? It looks like a lot of work for little result. What I see is you finding all images in a gallery ordered by the order_id. Then you set the order id of each one to a number in incr

Re: Routes based on query result, best way

2009-10-01 Thread Matt
I have found a similar topic about the way I do this also using the ClassRegistry... it seems to be the only way ? http://osdir.com/ml/CakePHP/2009-03/msg01203.html On 1 okt, 17:22, Matt wrote: > I'm busy to implement subdomains in a fancy way for a website. > > Also because I want to remove th

Re: $form->input('') when database-field contains special characters

2009-10-01 Thread Martin Westin
In reference to the bottom f your post. utf-8 and latin1_swedish_ci do not mix. Since the field is empty I suspect you may have Sanitize in place, or some other text cleaner. A simple character set problem should give you garbage but not empty strings. /Martin On Oct 1, 5:59 pm, "Dr. Loboto"

Re: Where request comes from?

2009-10-01 Thread Martin Westin
The Security Component does this kind of thing for you. For example, it will embed a hash value into the form which is a checksum of the form. If a field is missing or added it will be captured. If a hidden value is modified this will also be captured. Also sessions will be more secure and a lot h

Re: Where request comes from?

2009-10-01 Thread Bert Van den Brande
I believe the FormHelper has some 'secure' stuff available for this ... best to consult the documentation ... On Thu, Oct 1, 2009 at 8:50 PM, Dave Maharaj :: WidePixels.com < d...@widepixels.com> wrote: > Is there a way to determine / ensure that any requested action comes from > the server? > >

Re: Help Program Issues on a program I did not write

2009-10-01 Thread mkgour
Hi, Well, I feel silly about "TheOtherModel" bit!! Anyway, I went back in and added EvalautionMixeval into $uses and there was no "confusion in the program" this time. This fixed the error message. But now I am having a different problem. I am going to try and work on it some on my own first.

Re: Geocoding, Distance, & Paginate...

2009-10-01 Thread Andras Kende
Hello, This works for me ( not paginating ) $points = $this->find('all', array( 'order' => ' distance ASC, 'fields' => " Table.*, (3958 * 3.1415926 * SQRT(({$y2} - {$y}) * ({$y2} - {$y}) + COS ({$y2} / 57.29578) * COS({$y} / 57.29578) * ({$x2} - {$

Geocoding, Distance, & Paginate...

2009-10-01 Thread Kyle Decot
I am paginating some results and if the user provides a address, then I am geocoding the address and doing a radius search. I would like to order those results by distance though. How do I add a dynamically created field (distance) to my paginated results? --~--~-~--~~~

Where request comes from?

2009-10-01 Thread Dave Maharaj :: WidePixels.com
Is there a way to determine / ensure that any requested action comes from the server? I mean more towards the aspect of forms. That when a form is submitted the request is coming from the site and not someone who made a form and trying to submit it to your site. Just curious Thanks, Dave

Re: SQL SUM function

2009-10-01 Thread Edinei L. Cipriani
congratulations! 2009/10/1 DAM > > Array > ( >[0] => Array >( >[Payment] => Array >( >[id] => 01 >) > >[0] => Array >( >[price] => 596945.00 >) > >

Re: SQL SUM function

2009-10-01 Thread DAM
Array ( [0] => Array ( [Payment] => Array ( [id] => 01 ) [0] => Array ( [price] => 596945.00 ) ) ) --~--~-~--~~~--

Re: SQL SUM function

2009-10-01 Thread Edinei L. Cipriani
how did it return in print_r? See u 2009/10/1 DAM > > Thanks a lot > > > -- Edinei L. Cipriani Desenvolvedor Colégio Trilingue Inovação www.colegioinovacao.com.br Cursando Sistemas de Informação - Unoesc Chapecó 1 Período Integrante do grupo Fool N Lost de algoritimos computacionais Fone 49

Re: SQL SUM function

2009-10-01 Thread DAM
Thanks a lot --~--~-~--~~~---~--~~ 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 this group, send email to cake-php+unsubscr...@googlegr

Re: SQL SUM function

2009-10-01 Thread DAM
thanks for your help!!! --~--~-~--~~~---~--~~ 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 this group, send email to cake-php+unsubscr.

Replace drop down select with autocomplete

2009-10-01 Thread pomares
Right now I have a jumpmenu. User selects an item and the jumpmenu takes them to the view/itemid page. I would like to achieve this with autocomplete instead. I am able to get the autocomplete part working easily using cakePHP's built-in autocomplete helper, but I do I then submit the item id on

Re: SQL SUM function

2009-10-01 Thread Edinei Luis Cipriani
Hi, debug with print_r makes one and verifies what it returned Em 01/10/2009, às 14:46, DAM escreveu: > > > > On Sep 30, 12:20 pm, "Edinei L. Cipriani" wrote: >> Hi, >> >> $this->Model->find('all', array('fields' => >> array('Model.id'.'SUM(Model.price) AS price' )); >> >> Regards >> >> 2009/9/

Re: SQL SUM function

2009-10-01 Thread DAM
On Sep 30, 12:20 pm, "Edinei L. Cipriani" wrote: > Hi, > > $this->Model->find('all', array('fields' => > array('Model.id'.'SUM(Model.price) AS price' )); > > Regards > > 2009/9/30 DAM > > > > Thankx for answer. I tried that but not working. controller $payments = $this->Payment->find('all',a

Re: Question about on merge two different Model paginate

2009-10-01 Thread brian
On Thu, Oct 1, 2009 at 9:08 AM, byqsri wrote: > > Can someone help me about this? > > On 7 Set, 09:13, "marco.rizze...@gmail.com" > wrote: >> Hi >> I have this situation: >> I have a model Event and a model News ,  Both models have  the field >> 'created' . >> Now in my view I would create a sin

Re: find() when having nested models

2009-10-01 Thread John Andersen
No problem :) On Oct 1, 6:00 pm, Melanie Sommer wrote: > Problem solved. There was a typing error in the C model. Sorry! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

Cannot figure out my $conditions array

2009-10-01 Thread FrederickD
I am sure this is a simple error, but I am just not seeing it. Would you help me please? I am trying to build a $conditions array with results from a find ('list'). I have the following models: Distributor which hasMany Dealers. Dealers which hasMany Advisors. Advisors which belongsTo Distributo

Re: Help Program Issues on a program I did not write

2009-10-01 Thread brian
On Thu, Oct 1, 2009 at 11:51 AM, Dr. Loboto wrote: > > Under "TheOtherModel" brian ment some other model from $uses that have > association with needed EvaluationMixeval model. Check that models > associations and use the one that associated with EvaluationMixeval > (if there is any). heh :-) >

Re: $form->input('') when database-field contains special characters

2009-10-01 Thread Dr. Loboto
1. App.encoding must be UTF-8 (core.php) 2. Database encoding must be UTF8 (MySQL) 3. Database connection encoding must be UTF8 (database.php) 4. Layout or server settings must define pages encoding as UTF-8 (app/ layouts/default.ctp and etc or Apache AddDefaultCharset) 5. Files with non-latin sym

Re: Auth component loop redirect

2009-10-01 Thread brian
Do you have an requestAction() code? If so, try adding this in AppController::beforeFilter() if (isset($this->params['requested'])) $this->Auth->allow($this->action); http://thewebandthings.synodicsolutions.com/2009/07/01/increasing-life-expectancy-with-2-lines-of-code-cakephp-auth-component/ A

Re: Help Program Issues on a program I did not write

2009-10-01 Thread Dr. Loboto
Under "TheOtherModel" brian ment some other model from $uses that have association with needed EvaluationMixeval model. Check that models associations and use the one that associated with EvaluationMixeval (if there is any). On Oct 1, 9:48 pm, mkgour wrote: > Hi Brian, > Thank you so much for be

Re: 10.2 Simple Acl controlled Application tutorial problem

2009-10-01 Thread brian
Someone else posted 2 days ago about the same problem :-) Change the line with App::objects() to use: Configure::listObjects('controller'); On Thu, Oct 1, 2009 at 6:15 AM, Marcelo wrote: > > Hi everyone, I'm doing the cakephp.org acl tutorial and I'm stuck in > the section > > 10.2.6 An Automa

Routes based on query result, best way

2009-10-01 Thread Matt
I'm busy to implement subdomains in a fancy way for a website. Also because I want to remove the controller name from the URL in any case I need to chose routes based on what I have in my URL it seems. The idea was to use this for the subdomains: http://bakery.cakephp.org/articles/view/subdomai

Re: find() when having nested models

2009-10-01 Thread Melanie Sommer
Problem solved. There was a typing error in the C model. Sorry! --~--~-~--~~~---~--~~ 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 this

Re: Help Program Issues on a program I did not write

2009-10-01 Thread mkgour
Hi Brian, Thank you so much for being willing to help. I am pretty sure that $uses class does not include EvaluationMixeval, and I did try to add it a few days agao and that just caused confusion in the program and items that worked previously stopped working, so I took it out. Here is a copy of

Re: Modyfication into beforeSave()

2009-10-01 Thread kicaj
I have any rules for validation, the output by invalidFields() is empty... Any solutions? How add next $this->data['Tag'][3 and 4 and 5...]['name'] in beforeSave ()? On Sep 29, 2:35 am, Marcelo Andrade wrote: > On Mon, Sep 28, 2009 at 6:03 PM, kicaj wrote: > > > I have relations Post hasMany T

Re: find() when having nested models

2009-10-01 Thread Melanie Sommer
Hello John, I already tried putting all X.id and X.Y_id in the respective field arrays - no change. And this also does not explain, why cakephp does the right thing automatically when I select B, C, D, F, and G, but not when selecting A. What I do not understand is the difference between the beh

afterSave causing save to fail

2009-10-01 Thread WebbedIT
I am having a problem with the below setup. All works well if editing a record without uploading new images, but if I upload an image the final line of my afterSave() function causes the saveAll() in my action to fail. I know this as commenting out that line allows everything to work, but my numb

Re: How to $model->find for any controller

2009-10-01 Thread Bert Van den Brande
Element would indeed be a good choice if he needs te render the same html over and over again. Anyway, using requestAction for this would be overkill imho. On Thu, Oct 1, 2009 at 3:05 PM, John Andersen wrote: > > Yes, I agree, it could be done in the AppController, but I would still > implement

Re: Question about on merge two different Model paginate

2009-10-01 Thread byqsri
Can someone help me about this? On 7 Set, 09:13, "marco.rizze...@gmail.com" wrote: > Hi > I have this situation: > I have a model Event and a model News ,  Both models have  the field > 'created' . > Now in my view I would create a single list where there is  there are > both each others order b

Re: How to $model->find for any controller

2009-10-01 Thread John Andersen
Yes, I agree, it could be done in the AppController, but I would still implement it in an Element in the view, thus allowing the possibility to cache the element for further use in other views. But anyway it depends on the original requirement, so let's see/hear what the OP chooses to do :) Enjoy,

Re: Auth component loop redirect

2009-10-01 Thread mathaios
Thank you, but I already did that but did not work :-( On 1 Ott, 14:06, Bert Van den Brande wrote: > Add > >     $this->Auth->allow(array('login')); > > to your beforeFilter() > > Friendly greetings, > Bert > > On Thu, Oct 1, 2009 at 1:27 PM, mathaios wrote: > > > I'm using the Auth component

$form->input('') when database-field contains special characters

2009-10-01 Thread Melanie Sommer
Hello, I have the following problem, I already googled but did not find an answer although I think it must be a quite common problem: When adding or editing and inserting a special character in a text field (for example ä, ö, ü, ², µ, ...) everything seems at first to work fine. The text is corr

Re: find() when having nested models

2009-10-01 Thread John Andersen
Yes, I read that too, and later in the text is this note: "When using 'fields' and 'contain' options - be careful to include all foreign keys that your query directly or indirectly requires." And to me it looks like you should ensure that you specify the primary keys (id) and the foreign keys (c

Re: issues with scaffolding and HABTM on 1.2.5

2009-10-01 Thread Javier
I have resolved the issue. Seems that the case of column names stored in the DB is important to cakephp. made all my column names lowercase in the database, and all worked. I think this is a bug, since rdbm are all case insensitive and the problem doesn't happen with HABTM relationships. BTW- hap

Re: Auth component loop redirect

2009-10-01 Thread Bert Van den Brande
Add $this->Auth->allow(array('login')); to your beforeFilter() Friendly greetings, Bert On Thu, Oct 1, 2009 at 1:27 PM, mathaios wrote: > > I'm using the Auth component as the example in the manual, but the log- > in form keeps redirecting to himself, and Firefox throws the error > "The

10.2 Simple Acl controlled Application tutorial problem

2009-10-01 Thread Marcelo
Hi everyone, I'm doing the cakephp.org acl tutorial and I'm stuck in the section 10.2.6 An Automated tool for creating ACOs link:http:// book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs there is a function that suppose to add acos based on the controllers or something like that, wh

Re: How to $model->find for any controller

2009-10-01 Thread Bert Van den Brande
In your AppController, add something like this : function beforeFilter() { $this->set('allCountries', $this->Country->findAll(); } >From then on, every controller will add 'allCountries' to your views. Don't forget to have the model Country loaded one way or another ... Friendly greetings,

AD7six's MiMedia plugin

2009-10-01 Thread Clare
Hi, I'm trying to use AD7six's MiMedia plugin that I found here: http://www.assembla.com/wiki/show/mi for uploading images. Does anyone know how to use it or where I can find documentation? Thanks, Claire --~--~-~--~~~---~--~~ You received this message because

Re: find() when having nested models

2009-10-01 Thread Melanie Sommer
Hi John, > I think I read somewhere (here in the group) that you need to include > the foreign keys in the fields definition, so containable can see > them! I read contain automatically also includes the foreign keys in it's sql-query. http://book.cakephp.org/view/474/Containable : "As you can se

Re: How to $model->find for any controller

2009-10-01 Thread John Andersen
Suggest you look into requestAction, which can be called from a view, and thus provide the view with the country list when needed! Enjoy, John On Oct 1, 2:46 pm, DatacenterHellas wrote: > Hello. > > I need your help ! > > I like to call some data that must be available for each view in any >

Re: $form->select "SELECTED" how to ? ? ?

2009-10-01 Thread DatacenterHellas
Thanks a lot ! ! ! Your answer was realy very helpfull ! ! ! :) --~--~-~--~~~---~--~~ 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 this

Re: find() when having nested models

2009-10-01 Thread John Andersen
I think I read somewhere (here in the group) that you need to include the foreign keys in the fields definition, so containable can see them! Enjoy, John On Oct 1, 1:51 pm, Melanie Sommer wrote: > Hello Brian, > > thank you for the information about containable. It works fine, except > for on

How to $model->find for any controller

2009-10-01 Thread DatacenterHellas
Hello. I need your help ! I like to call some data that must be available for each view in any controller. In my case I have to loading all countries from Database table to each view. How can I do that ? ? ? Kind regards Merianos Nikos --~--~-~--~~~---~--~~ You

Auth component loop redirect

2009-10-01 Thread mathaios
I'm using the Auth component as the example in the manual, but the log- in form keeps redirecting to himself, and Firefox throws the error "The page isn't redirecting properly". My app controller is: class AppController extends Controller { var $components=array('Auth','RequestHandler')

Re: find() when having nested models

2009-10-01 Thread Melanie Sommer
Hello Brian, thank you for the information about containable. It works fine, except for one problem. I use this code: > $this->E->find( > 'all', > array( > 'contain' => array( > 'D' => array( > 'fields' => array('D.tit

Re: Regarding puting unicodes characters for po files

2009-10-01 Thread Dr. Loboto
What if just place actual Japanese word in msgstr? On Sep 29, 4:04 pm, Mars wrote: > I'm working on a application that needs to handle Japanese and > English. For Japanese po file, I want to specify "msgstr" in "po" file > using unicodes. Refer following sample > > msgid "test" > msgstr "\u30e1\

Re: paginator

2009-10-01 Thread persianshadow
thanks for your help :). On Oct 1, 11:19 am, Alexandru Ciobanu wrote: > On 10/1/2009 11:08 AM, persianshadow wrote: > > > hi > > > i use paginator in my view but  $paginator->numbers() method only show > > 9 number in view > > > i want increase number in view.i change numbers options but don't g

Re: How use ACL in a particular situation

2009-10-01 Thread byqsri
Have anybody some idea about this? On 29 Set, 09:32, "marco.rizze...@gmail.com" wrote: > Hi > I have a design question on ACL that I would use in my system. > The problem is my system is a bit different from standard. > I have users that can be belong to many teams. > So a user can belong to two

Re: Strange FormHelper behavior

2009-10-01 Thread rich...@home
or alternatively: create("Model", array("action"=>$this->action)) ?> On Sep 29, 8:11 pm, "euromark (munich)" wrote: > this is the correct way to go: > > echo $form->create('Model',array('url'=>'/'.$this->params['url'] > ['url'])); > > On 29 Sep., 15:00, Django Janny wrote: > > > > > I think yo

Re: paginator

2009-10-01 Thread Alexandru Ciobanu
On 10/1/2009 11:08 AM, persianshadow wrote: > hi > > i use paginator in my view but $paginator->numbers() method only show > 9 number in view > > i want increase number in view.i change numbers options but don't get > anything. > > http://api.cakephp.org/class/paginator-helper#method-Paginat

paginator

2009-10-01 Thread persianshadow
hi i use paginator in my view but $paginator->numbers() method only show 9 number in view i want increase number in view.i change numbers options but don't get anything. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Sort returns 1?

2009-10-01 Thread Alexandru Ciobanu
On 10/1/2009 5:28 AM, Dave Maharaj :: WidePixels.com wrote: > My bad > > The array is more complex than I originally posted. > > So I need Program and Skill sorted alphabetically > > Array > ( > > [Program] => Array > ( > [0] => After School Studies >