Set the Html helper in your app/app_controller.php:
class AppController extends Controller {
var $helpers = array('Html', etc.., etc..)
}
T+
On Jul 6, 4:13 pm, CM <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am new to cakePHP and I read some posts on creating static pages by
> adding the pages
Also, look for Reverse Routing by Felix:
http://debuggable.com/posts/new-router-goodies:480f4dd6-4d40-4405-908d-4cd7cbdd56cb
T+
On Jun 27, 5:06 pm, Jaime <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> For certain routes it could be useful to have "-" or any other
> separator instead of "/".
>
> So so
Try addScript() -
http://api.cakephp.org/1.2/class_view.html#42c9e03d9fa609bd09d9530d9ee8266b
You can use it like that:
addScript($javascript->link(array('jquery','ui.tabs'))); ?
>
addScript($javascript->codeBlock('$(function() { $
("#album-data > ul").tabs(); });')); ?>
addScript($html->css(ar
Hi, maybe this can help, but i'm not sure if it's the right way.
Router::connect('/artikel/:action/:page/*', array('controller' =>
'article', 'action' => 'index'));
On May 31, 8:37 am, BenjaminB <[EMAIL PROTECTED]> wrote:
> Hi,
> its YARQ, so i try to keep it short.
> the paginator gives me l
I was having similar problem, so i defined ('DEBUG', 2) in core.php in
the live app and magically it worked, then set again DEBUG to 0 and
still working. Why? I do not still understand, but did the trick for
me.
Ps. My app is in a subdomain, which needs that the Document Root to be
app/webroot.
Hi,
What I made to achieve the page numbers was simpler than to hack the
core, as Nate explained in another one thread.
in the view (list.ctp) ===
params();
echo $paginator->prev('<< Prev');
echo '';
for ($i = 1; $i <= $params['pageCount']; $i++) {
Hi,
I'm getting the same related error here, with EasyPHP.
This is what i get on error report:
AppName: apache.exe AppVer:1.3.33 ModName: php4ts.dll
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
P
bracchetto escreveu:
> yes.. first you read the value and then you add your number, but this
> are two query,
> better would be do something like "update mytable set num = num + 3
> where id = 5;"
Maybe this can help..
In your controller:
$this->MyControler->increment($id);
In your Model:
Hi!
I´m using the freeware PSPad (http://www.pspad.com) on WinXP.
Take a look at their characteristics. It's the best i already used.
Like their words:
> do you work with various programming environments ?
> do you like highlighted syntax in code ?
> do you need a small tool with simple contro