Yes http://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, that gets the absolute path of a
The constant I was looking for wasn't in the list. But I managed to
make one using the link I messaged before
Absolute path -
$proj = str_replace(str_replace('url=', '', $_SERVER['QUERY_STRING']),
'', $_SERVER['REQUEST_URI']);
$abs_path = http://{$_SERVER['SERVER_NAME']}{$proj}';
its suppose
I usually do something like
script
var window.basePath = '?php echo $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
Yes! Thanks for that, now I know I used the right attribute.
I've seen also this $html-webroot and now I know I've used it
properly!
Thank you Mark! :)
-Alec
On Jun 11, 2:02 am, mark_story mark.st...@gmail.com wrote:
I usually do something like
script
var window.basePath = '?php echo
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
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
use absolute 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
Hi Sam,
Thanks for that, is there an easier way to get the absolute path of a
certain project?
or is this the best way -
http://groups.google.co.uk/group/cake-php/browse_thread/thread/e40c3cf038c2f01c
Thanks. :)
On Jun 10, 11:22 am, Sam Sherlock sam.sherl...@gmail.com wrote:
use absolute
this-action is good 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
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, that gets the absolute path of a certain project?
Alec
On Jun 10, 12:22 pm, Sam Sherlock sam.sherl...@gmail.com wrote:
this-action is good for
10 matches
Mail list logo