Re: Cakephp + Mootools Request.HTML

2009-06-10 Thread eiji
sam.sherl...@gmail.com wrote: Yeshttp://book.cakephp.org/view/122/Core-Definition-Constants - S 2009/6/10 eiji animere...@gmail.com But doesn't $this-action only gets the action, eg. in my example add/ edit? I was wondering is there a way in cakephp, a constant variable perhaps

Re: Cakephp + Mootools Request.HTML

2009-06-10 Thread eiji
$this-webroot; ?'; /script in my layouts.  Then when making urls in javascript url: window.basePath + '/posts/delete/' + id Or some such thing. That way I always get an absolute URL. -Mark On Jun 9, 11:46 pm, eiji animere...@gmail.com wrote: Hi Sam, Thanks for that, is there an easier

Cakephp + Mootools Request.HTML

2009-06-09 Thread eiji
Hi Guys, I'm trying to use the Request.HTML of Mootools and I've got it working on the DropDown onchange event. Really great indeed. I just noticed an error when I was trying to implement it in the edit action. Ok, so.. my JS request is like this function clientTypeChange(value) { var

Re: Cakephp + Mootools Request.HTML

2009-06-09 Thread eiji
bump.. Has no body encountered this with Cakephp + Mootools? --~--~-~--~~~---~--~~ 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

Re: CSS

2009-06-09 Thread eiji
You should use $html-css([path/file], null, array(), false); the fourth parameter is what you should set to false cause it is the inline attribute. Assuming you have the variable $scripts_for_layout at the head, it would be outputted in the head part of the html. Regards, Alec On Jun 10,

Re: Cakephp + Mootools Request.HTML

2009-06-09 Thread eiji
urls in cake - S 2009/6/10 eiji animere...@gmail.com bump.. Has no body encountered this with Cakephp + Mootools? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: Cakephp + Mootools Request.HTML

2009-06-09 Thread eiji
for this. I find it useful setting a js var in a script block and then in my main script eg common.js I use this var - also this controller - S 2009/6/10 eiji animere...@gmail.com Hi Sam, Thanks for that, is there an easier way to get the absolute path of a certain project

Re: help: constant variables in the layout

2007-07-24 Thread eiji
'])) { $this-set('menu_categories', $this-Category-generateList(null, 'name ASC', null, '{n}.Category.id', '{n}.Category.name')); } } . . . } On Jul 24, 8:57 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On 7/24/07, eiji [EMAIL

help: constant variables in the layout

2007-07-23 Thread eiji
hi everyone, help. this is my first time to post here and i have just run out of thoughts on how to make this work. firstly, i wanted to have a menu that has a Products menu. and when the Products is clicked, a list of categories is then displayed, i plan to have this as an invisible div-ul-li

Re: help: constant variables in the layout

2007-07-23 Thread eiji
bump? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options,