Re: Bad link without mod rewrite

2007-05-06 Thread sickrandir

Not using any cake function..
The links are inserted as §I wrote in the first message..like this:

Links are insertedi in the posts like this: Missuldisc07

Not solved yet..   :-(


On May 1, 12:23 pm, xavi <[EMAIL PROTECTED]> wrote:
> Are you using $html->url() or $html->link()  to generate the links?
>
> bye
>
> On Apr 30, 12:24 pm,sickrandir<[EMAIL PROTECTED]> wrote:
>
> > Tried to figure out the problem by myself but without success...
> > Anyone can help?
>
> > thank you
>
> >sickrandir
>
> > On Apr 19, 6:26 pm,sickrandir<[EMAIL PROTECTED]> wrote:
>
> > > I'm running a site with the latest stable version of cake 1.1 .
> > > I disabled mod rewrite by uncommenting: define ('BASE_URL',
> > > env('SCRIPT_NAME')); in core.php and deleting all the .htaccess file.
> > > Everything seems to work except for the link inserted in the posts of
> > > the home page.
> > > The first time you load the home page the links don't have the
> > > "index.php/" part, so they are broken.
> > > But if you browse another page of the site from the menu and you
> > > return on the home page then the links are correct.
> > > Links are insertedi in the posts like this: Missuldisc07
> > > Someone has any suggestion to avoid this strange behaviour?
> > > My site is:http://www.frasbadallac.it
>
> > > Thanks


--~--~-~--~~~---~--~~
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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bad link without mod rewrite

2007-04-30 Thread sickrandir

Tried to figure out the problem by myself but without success...
Anyone can help?

thank you

sickrandir

On Apr 19, 6:26 pm, sickrandir <[EMAIL PROTECTED]> wrote:
> I'm running a site with the latest stable version of cake 1.1 .
> I disabled mod rewrite by uncommenting: define ('BASE_URL',
> env('SCRIPT_NAME')); in core.php and deleting all the .htaccess file.
> Everything seems to work except for the link inserted in the posts of
> the home page.
> The first time you load the home page the links don't have the
> "index.php/" part, so they are broken.
> But if you browse another page of the site from the menu and you
> return on the home page then the links are correct.
> Links are insertedi in the posts like this: Missuldisc07
> Someone has any suggestion to avoid this strange behaviour?
> My site is:http://www.frasbadallac.it
>
> Thanks


--~--~-~--~~~---~--~~
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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Bad link without mod rewrite

2007-04-19 Thread sickrandir

I'm running a site with the latest stable version of cake 1.1 .
I disabled mod rewrite by uncommenting: define ('BASE_URL',
env('SCRIPT_NAME')); in core.php and deleting all the .htaccess file.
Everything seems to work except for the link inserted in the posts of
the home page.
The first time you load the home page the links don't have the
"index.php/" part, so they are broken.
But if you browse another page of the site from the menu and you
return on the home page then the links are correct.
Links are insertedi in the posts like this: Missuldisc07
Someone has any suggestion to avoid this strange behaviour?
My site is: http://www.frasbadallac.it

Thanks


--~--~-~--~~~---~--~~
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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Pagination through requestAction

2007-04-14 Thread sickrandir

It worked!!
Adding:
$paginator-
>options(array('url'=>array('controller'=>'controllerName')));
made the $paginator->prev and $paginator->next link correct and the
pagination now works like a charm.

Thank you for your patience and incredible help!

sickrandir

On Apr 13, 6:55 pm, "gwoo" <[EMAIL PROTECTED]> wrote:
> when in doubt, you can always pass the controller.
>
> try setting $paginator-
>
> >options(array('url'=>array('controller'=>'controllerName'))):
>
> There was a ticket on this before and I tested it. Try to 
> searchhttps://trac.cakephp.organd see if the previously reported problem is
> similar to yours.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Pagination through requestAction

2007-04-13 Thread sickrandir

Your article on the bakery is great. The only thing I miss is
controlling the pagination through the paginator helper. Is there any
way to use the functions $paginator->prev and $paginator->next with
the requestAction approach?
I tried but the links generated alway refers to the controller
associated with the current view and not at the one in the
requestAction function.

thank you so much for your work!

On Apr 13, 4:35 am, "gwoo" <[EMAIL PROTECTED]> wrote:
> Hisickrandir
>
> You question prompted me to post an article on the bakery on creating
> reusable elements.
> Have a look.http://bakery.cakephp.org/articles/view/342
>
> Hope it helps.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Pagination through requestAction

2007-04-12 Thread sickrandir

ok, I pasted here the relevant code:

http://bin.cakephp.org/view/1405839666

Each pagination works if used alone.

I have one layout for the post controller that has echo
$content_for_layout in the right column while in the left column I put
requestAction ("/tagposts/
index",array("return"=>true)); ?>
The left column comes first in the html code of the layout.

The problem is that the pagination for the tagpost controller doesn't
work properly.
If I press the next link of the tagpost pagination I get the right
section updated (the tagpost one) but with the wrong data! It inserts
data from the posts controller also with the "style" of the index
action of the post controller.

I hope that now is a little bit clearer.

Thanx for your help!!

On Apr 12, 5:47 pm, "gwoo" <[EMAIL PROTECTED]> wrote:
> you need to show some code. I still am not sure what your question is
> exactly. Paste some stuff inhttp://bin.cakephp.organd provide a link
> back.
>
> bake on.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Pagination through requestAction

2007-04-12 Thread sickrandir

Hi gwoo, thanx for the reply.
I'm using the latest alpha (4798) and followed this post by nate
(http://cake.insertdesignhere.com/posts/view/16) for the pagination.


On Apr 11, 8:02 pm, "gwoo" <[EMAIL PROTECTED]> wrote:
> what revision are you using?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Pagination through requestAction

2007-04-11 Thread sickrandir

Hi, I'm successfully using pagination with cake 1.2 .
Now for the home page of the site I need to paginate content from two
different models.
I have two controllers and the home page is a view for an action of
one of them. The other one is queryed  using the requestAction
function.
The problem is that pagination uses data from the original model to
update both of the sections.
What is the best way to achieve the double pagination? Should I create
only one controller that uses both of the models?
maybe I'm missing something..

sickrandir


--~--~-~--~~~---~--~~
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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



CSS path issues in 1.2

2007-02-22 Thread sickrandir

Hi,
I decided to try the developement branch 1.2.
I'm on linux+apache and for my stable installation of cake I use the
method described in the manual in which the libraries are put in /usr/
lib/cake/ and the app/ directory is under the root of the apache
server.
For the stable installation this worked like a charm only modifying
the cake core path in app/webroot/index.php like this:

define('CAKE_CORE_INCLUDE_PATH', DS.'usr'.DS.'lib'.DS.'cake'.DS);

For the 1.2 installation I followed the same procedure and put all the
libraries under /usr/lib/cake1.2/
Just modified app2/webroot/index.php like this:

define('CAKE_CORE_INCLUDE_PATH', DS.'usr'.DS.'lib'.DS.'cake1.2'.DS);

but when i browse app2 I get a page without any style.

Am i missing something?

Thanx


--~--~-~--~~~---~--~~
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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Pagination in rdBloggery

2007-01-06 Thread sickrandir


I installed rdBloggery and tried to set it up for my needs.
Now I'm stuck because of a problem with pagination.
I would like to be able to paginate content from two different
controllers on the same page.
The only way I know to do this is to include in one of the controllers
the pagination helper and in the other a renamed copy of the pagination
helper. I understand this solution is very ugly and hacky and I hope
someone can explain me the best way to achieve the same result.

Thanx

sickrandir


--~--~-~--~~~---~--~~
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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---