.
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
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 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
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
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
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(
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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);
}
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 =
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
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 =
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
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
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
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
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
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
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
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
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
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,
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
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
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'] =
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'),
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,
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'])
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
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
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']}' ) )
{
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
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:
, 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
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
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
--~--~-~--~~~---~--~~
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
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
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' =
51 matches
Mail list logo