Re: links and images on static pages

2008-07-06 Thread byBartus
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

Re: Routing: "/recipe-your_slug_here" instead of "/recipe/your_slug_here"

2008-06-28 Thread byBartus
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

Re: cake and JS question

2008-04-23 Thread byBartus
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

Re: Routes and Paginator

2007-06-01 Thread byBartus
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

Re: Cake app not running, index.php offered for download

2007-04-20 Thread byBartus
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.

Re: cake 1.2 paginator modificaions

2007-04-13 Thread byBartus
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++) {

Re: Weird stuff

2006-12-31 Thread byBartus
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

Re: increment a numeric field

2006-07-12 Thread byBartus
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:

Re: cool editors for using with cakephp

2006-07-05 Thread byBartus
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