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. Please if someone have a working configuration and can share

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 show the text of the search

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

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 nre...@gmail.com wrote: Hi all ! I'm rather mew to cake and trying to create a set of REST services with the need for DIGEST

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(

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

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 a

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

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 'html / html'; On Jun 29, 7:25 am, sunny ravite...@gmail.com wrote: Can anyone tell me how to add an html file to php script. Check out the new CakePHP Questions site

need some help with a select

2010-02-01 Thread Ernesto
Hello. i need a select box, wrapped in his div class='input select' 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

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

Re: need some help with a select

2010-02-01 Thread Ernesto
yes thanks. On 1 Feb, 10:46, Jeremy Burns jeremybu...@me.com 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

Re: need some help with routes...

2009-10-17 Thread gimperdan...@gmail.com
separate tables. -- View this message in context:http://www.nabble.com/need-some-help-with-routes...-tp25916976p259326... Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: need some help with routes...

2009-10-16 Thread lapinski
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...-tp25916976p25932669.html Sent from the CakePHP mailing list archive at Nabble.com

Re: need some help with routes...

2009-10-16 Thread gimperdan...@gmail.com
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. -- View this message in context:http://www.nabble.com/need-some-help

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

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 gimperdan...@gmail.com wrote: I am learning about routes

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

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

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

2008-07-11 Thread simonb
for ($i =0 ; $i4;$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($data); }

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 =

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

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 =

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 real

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 INNER JOIN

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

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

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 questions

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 it

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 weeks, or

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 the

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 weeks), (you

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 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 you use a

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

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 isscore: 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 isscore: function score() { $pageparam = array('controller' = 'Games', 'action' = $this-action); $this-paginate['Game'] = array('fields' = array('DISTINCT week'),

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,

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'])

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

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

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']}' ) ) {

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
, 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 URL to pass different page # and limit #, the page

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 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]
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's

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, I

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): ?php class Rubrique extends AppModel { var $name = 'Rubrique'; //I tried this: var $belongsTo = array('Article' = array('className' =