Re: Big difference between CakePHP and Joomla

2009-06-12 Thread sbutch

I suggest frontend in Joomla,  bakend  in cakePHP.

On Jun 11, 10:40 pm, James K  wrote:
> Joomla is a CMS application built on a custom framework.
>
> CakePHP is just a framework - no application.
>
> - James
>
> On Jun 11, 4:56 am, bbparis  wrote:
>
> > Hi,
>
> > I'm now to CakePHP, I like to build a website for kids, an education
> > and interactive interface, something like (www.cghub.com), I would
> > like to offer for kids many education / intelligent services to learn
> > and have fun in the same time  ... so I began with learning CakePHP,
> > and I know already Joomla, my principal question to begin this
> > discussion with you is ( What is the big difference between CakePHP
> > and Joomla  ? )
>
> > I'm not expert with php, I'm still learning, you can check the
> > following link to have an idea about my level :
>
> >http://www.beginfromhere.com
>
> > also some nice php developers helped me in this way.
>
> > Best regards for all, and I hope I will have your answer, opinions,
> > comments soon.
>
> > Best regards,
> > bbparis
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Advanced Pagination

2009-05-02 Thread sbutch

Behavior of array_merge() was modified in PHP 5.
Unlike PHP 4, array_merge()  now only accepts parameters of type
array.

So if you have problem with next() function, try modify line 312 of
paginator.php helper, with a typecast:

It was:$url = array_merge(array('page' => $paging['page'] +
($which == 'Prev' ? $step * -1 : $step)), $url);
now is: $url = array_merge(array('page' => $paging['page'] + ($which
== 'Prev' ? $step * -1 : $step)), (array)$url);

Hope will 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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Problem with paginator

2009-04-16 Thread sbutch

Sorry, but I still don't understand why this work:

last(' >>', array('url'=>"0"));

and produce this correct link: http://127.0.0.1/assysts/index/0/page:6

and this not:

next(' >', array('url'=>"0"), null,
array('class'=>'disabled'));

and produce this crazy link: http://127.0.01/assysts/>



On Apr 15, 8:34 pm, Stu  wrote:
> the next and prev functions from paginator require an "Options" array
> as the second argument as you are currently giving it a boolean.  You
> might want to go check out the paginator helper line 189 and 201.
>
> Good luck,
>
> Stu

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Problem with paginator

2009-04-16 Thread sbutch

I have solved.
Problem was that the behavior of array_merge() was modified in PHP 5.
Unlike PHP 4, array_merge()  now only accepts parameters of type
array.

So I have modified line 312 of paginator.php helper, with a typecast:


It was:$url = array_merge(array('page' => $paging['page'] +
($which == 'Prev' ? $step * -1 : $step)), $url);
now is: $url = array_merge(array('page' => $paging['page'] + ($which
== 'Prev' ? $step * -1 : $step)), (array)$url);

and now it seems to work. Hope will help!



On Apr 15, 8:34 pm, Stu  wrote:
> the next and prev functions from paginator require an "Options" array
> as the second argument as you are currently giving it a boolean.  You
> might want to go check out the paginator helper line 189 and 201.
>
> Good luck,
>
> Stu

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Problem with paginator

2009-04-16 Thread sbutch

Sorry, but I still don't understand why this work:

last('last>>', array('url'=>"0"));?>

and produce this correct link:  http://127.0.0.1/assysts/index/0/page:6

and this not:

next('next>',array('url'=>"0"),null, array
('class'=>'disabled'));?>

and  produce this crazy link: http://127.0.0.1/assysts/next>



On Apr 15, 8:34 pm, Stu  wrote:
> the next and prev functions from paginator require an "Options" array
> as the second argument as you are currently giving it a boolean.  You
> might want to go check out the paginator helper line 189 and 201.
>
> Good luck,
>
> Stu

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Problem with paginator

2009-04-15 Thread sbutch

I have a problem using paginator with filter, using cake version :
1.2.2.8120.

this is my controller. It shows only elements that have a particular
value for $attivo  (i.e.1 or 0):

Assyst->recursive = 0;
$this->set('assysts', $this->paginate('Assyst', array
("Assyst.attivo = $attivo")));
$this->set(compact("attivo"));
}
}



In the view I habe put  this paginator, to propagate the filter to
next pages too:


first('<< '.__('first', true), array
('url'=>"$attivo"), null, array('class'=>'disabled'));?>
prev('< '.__('previous', true), array
('url'=>"$attivo"), null, array('class'=>'disabled'));?>
 |  numbers(array('url'=>"$attivo"));?>
next(__('next', true).' >', array
('url'=>"$attivo"), null, array('class'=>'disabled')); ?>
last(__('last', true).' >>', array
('url'=>"$attivo"), null, array('class'=>'disabled'));?>



Now, links to "first", "last" and "numbered" pages work nice.
The problems are with the link for "prev" and "next" pages: the link
doesn't work and and it produces this warning:

Warning (2): array_merge() [function.array-merge]: Argument #2 is not
an array [CORE/cake/libs/view/helpers/paginator.php, line 312]

Any idea?

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---