简体   繁体   English

无法使用 codeigniter 站点设置 pagelime

[英]Unable to set up pagelime with a codeigniter site

I'm trying to setup pagelime to work with a codeigniter site of mine and it looks like I have everything setup because I can view and edit the site in pagelime, but when I publish the page that i've edited, it says successfuly, but if I go to the webpage, it doesn't contain any of the changes that i just made.我正在尝试设置 pagelime 以与我的 codeigniter 网站一起使用,看起来我已经设置了所有内容,因为我可以在 pagelime 中查看和编辑该网站,但是当我发布我编辑过的页面时,它说成功,但如果我 go 到网页,它不包含我刚刚所做的任何更改。

I'm guessing it might have to do with the way that codeigniter url's work because when setting up the site, it asks for the url+index page.我猜这可能与 codeigniter url 的工作方式有关,因为在设置站点时,它会要求 url+index 页面。 I tried setting my index page to http://example.com/index.php/controller/index but pagelime always adds index.php to your url so it looks like this - http://example.com/index.php/controller/index/index.php . I tried setting my index page to http://example.com/index.php/controller/index but pagelime always adds index.php to your url so it looks like this - http://example.com/index.php/controller/index/index.php

Has anyone setup a codeigniter site on pagelime successfully and can help me with this issue?有没有人成功地在 pagelime 上设置了 codeigniter 网站并且可以帮助我解决这个问题?

I have and the way that pagelime works it will not work with a CI framework since as you have found out, pagelime is setup for standard websites.我有,而且 pagelime 的工作方式不适用于 CI 框架,因为正如您所发现的,pagelime 是为标准网站设置的。 ie: all pages are in the root and subpages follow the link structure so a link to homepage.com/pictures/album1 should be in the root of the ftp then in the pictures folder and to the album1 whereas we know that the pictures "folder" is nothing more than a controller.即:所有页面都在根目录中,子页面遵循链接结构,因此指向 homepage.com/pictures/album1 的链接应该在 ftp 的根目录中,然后在图片文件夹和专辑 1 中,而我们知道图片“文件夹"只不过是一个 controller。 I hope that I explained that right or that you can decode what i was trying to say there.我希望我解释得对,或者你可以解码我在那里想说的话。

First, make sure to add extensions to your routes in the .htaccess file: Codeigniter Routes for filename with extension首先,确保在 .htaccess 文件中为您的路由添加扩展名: Codeigniter Routes for filename with extension

In Pagelime, you can set each page to have an FTP Publish Target in the page properties screen.在 Pagelime 中,您可以在页面属性屏幕中将每个页面设置为具有 FTP 发布目标。 Set the target to the URL of your view, and you should be good to go.将target设置为你view的URL,你应该对go就好了。

Hope that helps!希望有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM