I resolved this myself:
function sundown($season,$race,$sex,$class,$team)
{
if ($season ==null){$conditions = array('Result.location' =>
'Sundown');}
else if ($race ==null) {$conditions = array('Result.location' =>
'Sundown','Result.season'=>$season);}
else if ($sex ==null) {$c
I am trying to sort my results by Result.racenum and Result.class
however I've been away from php for a while and I was never very good
to begin with.
I have a function:
function sundown($season,$race,$sex,$class,$team)
{
if ($season ==null){$conditions = array('Result.location' =>
'S
I have a view that I would like to be able to sort on certain columns.
Normally I know that I would use the pagination sort helpers however I
(the client) want all the results to show without having to page
through them.
Is there a way to add the sort functionality without pagination or
using pagi
/app/controllers/results_controller.php:1
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 to cake-php@goo
This is my model:
set('title_for_layout','Connecticut Industrial Ski Council
- Results - Find by Person');
//Set drop down fields
$this->set('locations',$this->Result->find('list',array(
'fields' =>
array('location','location'),'group'=>array('location';
$this->se
I dont have a line 746 anywhere.
On Nov 17, 10:16 pm, Briko03 wrote:
> Not sure what you mean by that.
>
> On Nov 17, 9:54 pm, Miles J wrote:
>
> > So whats line 746?
>
> > It seems you are echoing code before the redirect somewhere.
>
> > On Nov 17, 5:2
Not sure what you mean by that.
On Nov 17, 9:54 pm, Miles J wrote:
> So whats line 746?
>
> It seems you are echoing code before the redirect somewhere.
>
> On Nov 17, 5:28 pm, Briko03 wrote:
>
> > I have an form/action that I am trying to get to redirect based
I have an form/action that I am trying to get to redirect based on
submitted values
For some reason when I try to get my form to redirect to my url I get:
Warning (2): Cannot modify header information - headers already sent
by CORE/cake/libs/controller/controller.php, line 746
My goal is
That workedTHANKS!
On Nov 2, 9:33 am, euromark wrote:
> try array('location', 'location') then :)
>
> On 2 Nov., 14:04, Briko03 wrote:
>
> > Just to clarify,
> > I want location displayed and location submitted. Should I still do
> >
x27;. Try changing that to:
> array('id', 'location') so that you have two columns; id & location.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 2 Nov 2010, at 08:55, Briko03 wrote:
>
> >
I have a form that has a select box:
echo $form->input('location',array('type'=>'select','options'=>
$locations));
The form action populates the select box with locations:
$this->set('locations',$this->Result->find('list',array('fields' =>
array('location'),'group'=>array('location';
However
On Sun, Oct 31, 2010 at 8:55 PM, Briko03 wrote:
> > Does that mean that I can have a view that does not have a
> > corresponding action?
>
> > How would i get the form to use person and the values from the input?
>
> > Sorry for the newb questions...
>
> I don&
Does that mean that I can have a view that does not have a
corresponding action?
How would i get the form to use person and the values from the input?
Sorry for the newb questions...
On Oct 31, 8:19 pm, cricket wrote:
> On Sun, Oct 31, 2010 at 5:48 PM, Briko03 wrote:
> > Here i
Here is my view:
create('Result', array('action' => 'findperson'));
echo $form->input('lname');
echo $form->input('fname');
echo $form->submit();
echo $form->end();
?>
Here is the action:
function findperson()
{
if (!empty($this->data)) {
$thi
ke a redirect to
> controller/action/firstname/lastname
> --
> Tilen Majerlehttp://majerle.eu
>
> 2010/10/29 Briko03
>
> > I want to create a form that redirects to a url based on input from
> > the user.
>
> > For example:
>
> > First Name:
I want to create a form that redirects to a url based on input from
the user.
For example:
First Name:---
Last Name:
Would redirect to domain.com/controller/action/lastname/firstname
There would be no information saved.
I also want to have a select box populated by table
I am not sure how to display it on the page. I am very new to cakephp.
On Oct 26, 11:37 am, Tilen Majerle wrote:
> so now, what actually you want...u have it in $this->params, so where is
> problem? :D
> --
> Tilen Majerlehttp://majerle.eu
>
> 2010/10/26 Briko03
>
>
I have an action that is going to display results by the person...
function person($lname,$fname)
{..blah blah..}
I have my person.ctp file that I want so show the url parameters...
for example see below
url: domin.com/controller/action/$lname/$fname
Results for $lname
I know
paginate('Result'));
>
> On Oct 25, 5:38 pm, Miles J wrote:
>
> > Why are you setting $results twice?
>
> > If you want pagination, use paginate(), you dont need the other query.
>
> > On Oct 25, 11:39 am, Briko03 wrote:
>
> > > It looks li
u...@classoutfit.comhttp://www.classoutfit.com
>
> On 25 Oct 2010, at 13:46, Briko03 wrote:
>
> > I have a field named location.
>
> > This is what is coming throu from cake
>
> > SHOW FULL COLUMNS FROM `results` 14 14 3
> > 2 SELECT CHARACTER_SET_N
I have a field named location.
This is what is coming throu from cake
SHOW FULL COLUMNS FROM `results`14 14 3
2 SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE
COLLATION_NAME= 'utf8_general_ci'; 1 1 1
3 SELECT `Res
Any idea why this wouldn't be returning results with a location=
sundown??
function sundown()
{
$this->set('results',$this->Result->findAllBylocation('Sundown'));
$this->set('results', $this->paginate('Result'));
}
Check out the new CakePHP Questions site http://cakeqs.org and help others with
I have a controller that does a find all to get all the results from
our database:
set('results',$this->Result->find('all'));
$this->set('results', $this->paginate('Result')); }}
I want to build a function that can get parameter(s) from the url to
build the query instead of returning 'all'
Has anyone installed on network solutions shared hosting? I am looking
for someone to jumpstart me as I am not too familiar with .htaacess
files.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you
24 matches
Mail list logo