Re: I need some help with CakeDC Search

2015-06-02 Thread Christian Quispe
> > Am Sonntag, 31. Mai 2015 23:39:15 UTC+2 schrieb Jekill CR: >> >> >> *I need some help with CakeDC Search i configured the plugin with the >> instructions and nothing happens.* >> >> Only show the text of the search on the Web Browser search input. >&

Re: I need some help with CakeDC Search

2015-06-01 Thread euromark
See http://sandbox3.dereuromark.de/sandbox/search-examples and the code to it for example. Am Sonntag, 31. Mai 2015 23:39:15 UTC+2 schrieb Jekill CR: > > > *I need some help with CakeDC Search i configured the plugin with the > instructions and nothing happens.* > > Only sh

I need some help with CakeDC Search

2015-05-31 Thread Jekill CR
*I need some help with CakeDC Search i configured the plugin with the instructions and nothing happens.* Only show the text of the search on the Web Browser search input. Please if someone have a working configuration and can share with me. thanks in advance! I need the most simple

Re: Issues with digest authentication - need some help

2012-11-05 Thread Nir Regev
This does not seem to help :( I've added a log to watch when / which user arrives at isAuthorized and found out that when using BASIC authentication, I can see the user without a problem but when using DIGEST the isAuthorized function does not run at all. Another thing about all this : when al

Re: Issues with digest authentication - need some help

2012-11-03 Thread Ivan Rimac
in app controller public function isAuthorized() { return $this->Auth->user('id'); } this should solve your problems. On Fri, Nov 2, 2012 at 5:16 PM, Nir Regev wrote: > Hi all ! > > I'm rather mew to cake and trying to create a set of REST services with > the need for DIGEST auth. > > conf

Issues with digest authentication - need some help

2012-11-02 Thread Nir Regev
Hi all ! I'm rather mew to cake and trying to create a set of REST services with the need for DIGEST auth. configuration : - I'm using cake 2.2.3 - in AppController I've got this setup : public $components = array( 'RequestHandler', 'Session', 'Auth' => array( 'authenticate

Re: Need some help with a rather complex find() request

2010-09-17 Thread Jeremy Burns | Class Outfit
Take a look at the containable behaviour. If it doesn't do it for you out of the box, it'll surely get you close. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 17 Sep 2010, at 15:55, Michael Gaiser wrote: > So, here is the basics of my setup. > > There is

Need some help with a rather complex find() request

2010-09-17 Thread Michael Gaiser
So, here is the basics of my setup. - There is a table of Locations. - Each Location has a type. (0=global, 1=national, 2=regional, 3=city, 4=landmark) - Each Location has a parent_id allowing for you to chain locations. - The chain uses the type field to determine what

Re: Need some help

2010-06-29 Thread Bharadwaj Parthasarathy
As Shaz points out, there are a few basic and very simple options. What are you trying to achieve? 1. If the file is called from the browser and has a php extention, you can use raw html and php snippets. This is raw html welcome " . $user; ?> This is raw html again 2. if the file has

Re: Need some help

2010-06-29 Thread Shaz
Can you be a bit more detailed on what you are trying to achieve? Outputting html in php is a simply matter of using echo ' '; On Jun 29, 7:25 am, sunny wrote: > Can anyone tell me how to add an html file to php script. Check out the new CakePHP Questions site http://cakeqs.org and help ot

Need some help

2010-06-29 Thread sunny
Can anyone tell me how to add an html file to php script. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email

Re: need some help with a select

2010-02-01 Thread Ernesto
yes thanks. On 1 Feb, 10:46, Jeremy Burns wrote: > try: > > $form->input('**fieldname**', array('empty' => true)); > > ...where **fieldname** is the field you want to display. This will give you a > populated drop down but the first entry will be an empty row. Is this what > you wanted? > > Jer

Re: need some help with a select

2010-02-01 Thread Jeremy Burns
try: $form->input('**fieldname**', array('empty' => true)); ...where **fieldname** is the field you want to display. This will give you a populated drop down but the first entry will be an empty row. Is this what you wanted? Jeremy Burns jeremybu...@me.com (Skype) +44 208 123 3822 (jeremy_burn

need some help with a select

2010-02-01 Thread Ernesto
Hello. i need a select box, wrapped in his "" div and with blank first entry $form->input() ---> the select didn't have the empty field $form->select() ---> the select wasn't wrapped in his DIV any suggestion? ps: i'm using Cake 1.3Beta Check out the new CakePHP Questions site http://cakeqs.or

Re: need some help with routes...

2009-10-17 Thread gimperdan...@gmail.com
gt; On mod rewrite I just had to sub ARTISTNAME & ALBUNAME for two > >> variables and get the values through GET... I just need to accomplish > >> the same using the Router. > > >> Both ARTISTNAME and ALBUMNAME are UNIQUE fields in two separate tables. > > -- &

Re: need some help with routes...

2009-10-16 Thread gimperdan...@gmail.com
ables and get the values through GET... I just need to accomplish > >> the same using the Router. > > >> Both ARTISTNAME and ALBUMNAME are UNIQUE fields in two separate tables. > > -- > View this message in > context:http://www.nabble.com/need-some-help-with-routes

Re: need some help with routes...

2009-10-16 Thread lapinski
> www.myswebsite.com/artist/ARTISTNAME/album/ALBUMNAME >> >> On mod rewrite I just had to sub ARTISTNAME & ALBUNAME for two >> variables and get the values through GET... I just need to accomplish >> the same using the Router. >> >> Both ARTISTNAME and ALBUMNA

Re: need some help with routes...

2009-10-15 Thread gimperdan...@gmail.com
Ok, this is what I have now.. and it works.. can someone just tell me if it's the right way to do it? Router::connect('/artist/*/album/*', array('controller' => 'albums', 'action' => 'view')); On Oct 15, 6:20 pm, "gimperdan...@gmail.com" wrote: > I am learning about routes now, I used to write

need some help with routes...

2009-10-15 Thread gimperdan...@gmail.com
I am learning about routes now, I used to write my own routes on mod rewrites before i came to Cake, so I just need some small guidance since I already have some knowledge... Here's what I need to accomplish: www.myswebsite.com/artist/ARTISTNAME/album/ALBUMNAME On mod rewrite I just had to sub

Acl permissions almost there - only need some help!

2008-09-02 Thread Marcus
Got the follwoing working with acl component, however I am not really sure I can grant permissions to users based on the aros and acos below: #Aros: cake acl create aro root guests cake acl create aro guests members cake acl create aro members basic cake acl create aro basic premium cake acl crea

Re: need some help in data saving using cake's own functions.

2008-07-11 Thread simonb
you need to use $data = $this->ModelName->create(); this populates the model with the default data and created the structure for the data. For example if you have a table model with the following structure id int name varchar(100) defaul 'My Name' age int(3) default 12 Then using $data = $thi

Re: need some help in data saving using cake's own functions.

2008-07-11 Thread simonb
for ($i =0 ; $i<4;$i++) { echo 'Iteration # '.$i; $this->model->save($distributedImp); $res = $this->model->findAll(); print_r($res); } for($i=0;$i < 4 ; $i++) { $data = $this->Model->create(); $this->Model->save($dat

Re: need some help in data saving using cake's own functions.

2008-07-11 Thread KiANIi
I've tried the solution you have suggested but its not working the problem is not with saving of data but when I try to search data at the start of each iteration data is not found in table so it returns an empty array. is there any other solution to that problem Samuel DeVore wrote: > before eac

Re: need some help in data saving using cake's own functions.

2008-07-04 Thread da_student
What is the first line > $this-model = $this->controller->modelName; supposed to do? I don't think you need that... (or if you think you do, did you try using $this->controller->model->save() ? ) On Jul 3, 7:38 pm, KiANIi <[EMAIL PROTECTED]> wrote: > Hi, > I'm trying to save data using $this->m

Re: need some help in data saving using cake's own functions.

2008-07-03 Thread Samuel DeVore
before each save use create $this->ModelName->create(); $this->ModelName->save($data); see the section in the manual on saving data http://book.cakephp.org/view/75/saving-your-data sam d -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a re

need some help in data saving using cake's own functions.

2008-07-03 Thread KiANIi
Hi, I'm trying to save data using $this->modelName->save(data) in a loop but after the end of each iteration when I'm trying to find the data that I've inserted I could not find that data. Can anyone tell me how i can save data in table in loop. the code is: $this-model = $this->control

Re: need some help with aggregate functions

2008-04-07 Thread Chris Hartjes
On Mon, Apr 7, 2008 at 2:32 AM, hks <[EMAIL PROTECTED]> wrote: > > Hello, I'd like to use CakePHP convention in querying the following > > SELECT > tags.name AS tag_name, > COUNT(ads_tags.tag_id) AS tag_count, > MAX(ads_tags.created) AS tag_date > FROM > tags INN

need some help with aggregate functions

2008-04-07 Thread hks
Hello, I'd like to use CakePHP convention in querying the following SELECT tags.name AS tag_name, COUNT(ads_tags.tag_id) AS tag_count, MAX(ads_tags.created) AS tag_date FROM tags INNER JOIN ads_tags ON tags.id = ads_tags.tag_id INNER JOIN ads ON ads

Re: Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
On Jan 8, 2008 2:06 PM, francky06l <[EMAIL PROTECTED]> wrote: > > I suppose your model is Game, and your action is"score": > > function score() > { > $pageparam = array('controller' => 'Games', >'action' => $this->action); > > $this->paginate['Game']

Re: Need some help with advanced pagination

2008-01-08 Thread francky06l
I suppose your model is Game, and your action is"score": function score() { $pageparam = array('controller' => 'Games', 'action' => $this->action); $this->paginate['Game'] = array('fields' => array('DISTINCT week'),

Re: Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
On Jan 8, 2008 1:41 PM, francky06l <[EMAIL PROTECTED]> wrote: > > Well, without much thinking I would say that your "series" are given > by a SELECT DISTINCT WEEK ORDER by WEEK ASC in your db, then > pagination is quite straight forward (I will try to write some code > sample, if you wish). > If y

Re: Need some help with advanced pagination

2008-01-08 Thread Robby Anderson
Baseball data is fun stuff. :) If thats all you want, can't you make a method in the Game model that does a custom query, then use that as your pagination data? Something like this (very rough): function getSeriesData ( $params ) { $seriesQuery = ' select distinct week,

Re: Need some help with advanced pagination

2008-01-08 Thread francky06l
Well, without much thinking I would say that your "series" are given by a SELECT DISTINCT WEEK ORDER by WEEK ASC in your db, then pagination is quite straight forward (I will try to write some code sample, if you wish). If you use a row per serie, then adding an ajax call triggered by "click" on t

Re: Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
On Jan 8, 2008 1:29 PM, francky06l <[EMAIL PROTECTED]> wrote: > > Hi Chris, > > I am not sure to get what you want to do .. Do you want to show all > series Meaning all games following each other or (what I undestood), > having a "2 parts" screen when above displays all series (basically > all we

Re: Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
On Jan 8, 2008 12:31 PM, Robby Anderson <[EMAIL PROTECTED]> wrote: > > > I don't know how sophisticated you plan for your sim to be, but the > inferred series method can fall down if you use a schedule generator > that creates a more "real-world" schedule where series can be spread > over two week

Re: Need some help with advanced pagination

2008-01-08 Thread francky06l
Hi Chris, I am not sure to get what you want to do .. Do you want to show all series Meaning all games following each other or (what I undestood), having a "2 parts" screen when above displays all series (basically all weeks), (you can paginate them) and then a second part that will show (with p

Re: Need some help with advanced pagination

2008-01-08 Thread Robby Anderson
I don't know how sophisticated you plan for your sim to be, but the inferred series method can fall down if you use a schedule generator that creates a more "real-world" schedule where series can be spread over two weeks, or where there are make up games (that could get wrapped into a series if i

Re: Need some help with advanced pagination

2008-01-08 Thread rtconner
If nothing else you can manually write some queries and implement them by overwriting the pageinate and paginateCount methods in the model. I can't reallly think of a better way to do this at the moment. On Jan 8, 9:55 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > Normally I don't post questi

Need some help with advanced pagination

2008-01-08 Thread Chris Hartjes
Normally I don't post questions to the list, just snarky responses. I will expect no less in return. :) I'm working on an admin area for my simulation baseball league site. I have a Game model that contains games. Now, I've used the views created by bake and need to do some funky pagination wit

Need some help with my models and associations

2007-09-26 Thread jhicks
I've looked through the archives and found threads discussing things similar to what I'm going to ask, but not exactly. I'm working on a task manager project. I've got three models (really more but one is very similar to many others): Task, Category, and Assignee. I have 4 DB tables -- task, cat

Re: need some help in understanding error messages

2007-08-24 Thread rtanz
i think there might have been some syntax errors so i fixed it as follows, however it is still not working. any help? function beforeValidate() { // for add -there is no id if (!isset($this->data['User']['id']) && !empty($this- >data['User']['name']) && $this->hasAny("User

Re: need some help in understanding error messages

2007-08-23 Thread majna
Model: function beforeValidate() { # for add -there is no id if (!isset($this->data[$this->name]['id']) && !empty($this- >data[$this->name]['name']) &&$this->hasAny("User.name='{$this- >data['User']['name']}' ) ) {

Re: need some help in understanding error messages

2007-08-23 Thread rtanz
but what if i have more than one error? am i correct in that you can have only one set flash message? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@g

Re: need some help in understanding error messages

2007-08-23 Thread housebolt
The easiest way to do this is by using $this->Session- >setFlash('Username already exists'); in your controller. The error message will show up at the top of the page or wherever you put "if ($session->check('Message.flash')) $session->flash();" in your layout. On Aug 23, 7:33 am, rtanz <[EMAIL P

need some help in understanding error messages

2007-08-23 Thread rtanz
hi right now i have baked a model with an add and edit view as automatically generated by cake. So now if I make any errors when saving (as determined by the $validate conditions below) I will get the values of the tagErrorMsg as set in the view. Now I also made a beforeSave function that checks w

HELP! - Need some help with Jake

2007-08-21 Thread bkarnes
I have installed Jake onto a test server (MAMP - Mac) as per the Jake site (along with Joomla and Cake). I can't get anything to show up within my Joomla install. I get nothing. I have seen the Demo site for Jake with Cheesecake, but I am at a loss as to what I am doing wrong. I have searched

_selectedarray() error in 1.1.8.3544. Need some help...

2007-06-22 Thread DanielMedia
Hi, I'm using the check box helper for HABTM that is found here on the bakery: http://bakery.cakephp.org/articles/view/create-multiple-checkboxes-instead-of-a-multiple-select-in-your-views Adding HABTM to the database doesn't seem to be a problem but on edit I get this error in my controller:

Re: Need some help with pagination in 1.2

2007-03-20 Thread barduck
44 pm, "barduck" <[EMAIL PROTECTED]> wrote: > Hi all, > > I need some help and advice with implementing pagination in 1.2 . > > I got the basic functionality working which means I have paginate() > return the correct count of items of the first page and if change the &

Need some help with pagination in 1.2

2007-03-18 Thread barduck
Hi all, I need some help and advice with implementing pagination in 1.2 . I got the basic functionality working which means I have paginate() return the correct count of items of the first page and if change the URL to pass different page # and limit #, the page behaves as expected. What I am

Re: I need some help about models.

2006-08-28 Thread Chris Hartjes
You're going to need to create custom routes then. Check out the manual for info on how to do those. Basically you'll map '/rubriques/index' to a controller/action pair that displayes all the categories, to use one example. On 8/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > yeah but,

Re: I need some help about models.

2006-08-28 Thread [EMAIL PROTECTED]
yeah but, I want to do this: /rubriques/index to show all the "categories" and /rubriques/cat_name to show all the articles from the category "cat_name" and /articles/read/article_title to read the article named "article_title" /articles/index would only be a message like, Choose a category! That'

Re: I need some help about models.

2006-08-28 Thread Sonic Baker
Hi there, On 8/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: //I'm trying to get the articles, I tried many things, but unhelpful...  $this->Rubrique->findbycategorie($nom);  Shouldn't this be: $this->Rubrique->findAllByCategorie($nom); Sonic --~--~-~--~~-

Re: I need some help about models.

2006-08-28 Thread [EMAIL PROTECTED]
> I asked on the channel of cakephp, but peoples are a bit rough on n00b > there... :S Thanks mate, nice things you say about us. iirc, me and some others have done quite some effort to help you there. anyway, like i told you on irc, i would use a link like articles/index/ , that way you can l

I need some help about models.

2006-08-27 Thread [EMAIL PROTECTED]
Okay so, I'm building a way to show my categories (rubriques) and my articles. Here's the model of my rubrique (categorie): array('className' => 'Article', 'conditions' => '', 'order' => 'Article.i