Ok, so i answer myself...
so after doing what i wrote in the previous message, i just had to
modify the htmlhelper::url() to have
elseif ($url{0} == '?')
instead of
elseif ($url{0} == '/')
and in my views, i use
$html->link('Add Post', '?posts/add')
instead of
$html->link('Add Post', '/posts/add')
and now it works!! :)
it's seems to be nothing, but i spend many times to find that!! (just
to understand how cakephp works)
so it's ok for me, but if someone has some remarks about that, i'm
listening...
On 10 oct, 12:02, mickom <[EMAIL PROTECTED]> wrote:
> Hello,
>
> mod_rewrite and .htaccess are not activated on my ISP server, so i
> want cakePHP working without that functionnalities.
> so i followed the tutorial doing this:
> -> uncomment define ('BASE_URL', env('SCRIPT_NAME')) in /app/config/
> core.php
> -> remove all .htacces files
>
> the problem is url likewww.example.com/cakephp/index.php/posts/view
> doesn't work on the server (error 404 - not found)
> so i succeed to access the page with that url
> :www.example.com/cakephp/index.php?posts/view,
> modifying /index.php file with explode('/index.php?',$uri) instead of
> explode('/index.php',$uri).
> i don't know if it is a good thing, but it works.
>
> so now, my problem is for the htmlhelper::link() function, which
> generates links likewww.example.com/cakephp/index.php/posts/view.
>
> i localized the method i have to modified : htmlhelper::url().
> So my question is, am i on the right way doing those thing to have
> cakephp working (i think i now have to write a customize helper to
> redifine the url() method to have url like i want)?
>
> Or is there any easier way to have url like
> www.example.com/cakephp/index.php?posts/view
> orwww.example.com/cakephp/index.php?url=posts/viewgenerated by
> cakephp helpers.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---