Any help please?
I'm trying to give my CMS users the ability to declare a custom URL
301 redirects to a new page in their new websites.
Basically, I want to have a Table in my MySQL table that contains
OldURL and NewURL ...
I would like to be able to compare a URL inside of CakePHP before it
I have a quick question... My server is setup with the Core and App
directories setup NOT in the root httpdocs directory of the domain.
The only thing in my httpdocs directory is my webroot.
So the .htaccess of my root domain is:
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond
Well, I found one solution to put something like this:
IfModule mod_rewrite.c
RewriteEngine On
RewriteRule ^test/test.htm$ /pages/oilgas [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
/IfModule
Are you keeping track of files uploaded in a DB? How bout using a
Upload Progress Bar for the front end? Or is this just the backend
only part?
Jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
Looking for a way to have a unlimited number of slugs for sub-
sections.
For Example:
http://www.mysite.com/about/page1
http://www.mysite.com/about/sub1/page1
http://www.mysite.com/about/sub1/sub2/page1
http://www.mysite.com/about/sub1/sub2/sub3/page1
Would this be in the Routing or
Ok, I kept digging, and found my own answer again across a couple
different posts so in case it can help anybody else in the future:
I added this to the very end of my routes.php:
Router::connect('/*', array('controller' = 'slug_pages', 'action' =
'view'));
to catch all wild card created
I have placed the following code in my Cake 1.2 RC2 bootstrap file:
$xch_core_path = '/Users/hardy/Sites/xch_core/app/';
$modelPaths = array($xch_core_path.'models');
$viewPaths = array($xch_core_path.'views');
$controllerPaths = array($xch_core_path.'controllers');
Controllers are working
Further testing ... My $modelPaths also works...
I moved the model out to the core app directories and my app was
able to use the model in the core.
So still wondering about $viewPaths
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
More details
When the view can't be found the error shows it's looking in the fully
qualified path for the app like:
/Users/hardy/Sites/xch_master/app/views/xpage_types/xchange_index.ctp
But when a Controller or Model can't be found it just looks starting
in the app folder like:
whoops...copy and paste ...
The controller not found error was:
app/controllers/xpage_types_controller.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
ARRGH... Can we delete this ? :)
one hour of FAIL could have been solved if I had read the full article
on this at
http://book.cakephp.org/view/36/Additional-Class-Paths
But I missed the last sentance... Make sure that each path specified
includes a trailing slash.
so I changed my bootstrap
Has anybody used any sort of 3rd party User/Membership Management
tools?
I am not talking about just a basic ACL... I have that and use it
pretty effectively.
I'm looking for the ability to have payment accounts with recurring
billing and membership services for a website. I have found a
Is the SecurityComponent used with the $form-token() and specifying
the field names? Do you have to do anything in the controller when
using this in a view?
On Jan 24, 4:49 am, jitka (poLK) slunii...@gmail.com wrote:
With SecurityComponent, forms contains hidden fields with security
tokens.
I just found something this morning... and plan on playing with it
this weekend... but MacRabbit, who made CSSEdit, is working on a HTML
editor called Espresso that has 'Sugars' or plugins and there is a PHP
sugar. Might be worth trying out. It's in a Beta mode right now, but
you can download
Hello,
I've been using TinyMCE for a while now in a custom Content Management
System written in CakePHP.
I'm having a weird instance lately where I'm getting some converting
of HTML tags to script... For Example:
Some span and img tags are putting the following code:
script
I am using 1.2RC2 and the FIRST TIME IT WORKS...when I save the data
to the table using Ajax... 2nd time it fails unless I refresh the
page. So I get one update before I get the following error replaced
into my div:
Not Found
Error: The requested address '/golearns/saveprof' was not found on
I am getting a weird issue with my $javascript in my default.ctp:
I have this in the header of the default.ctp:
?
if ($javascript) {
e($javascript-link('swfobject'));
}
?
I have Javascript in my helper of the HomePages controller. In fact
when I go to:
I am using 1.2 RC2 and creating the first section of the site.
I have 1 model, controller, and view. I am using
Admin Routing, and I changed the routes.php file default to the
following:
Router::connect('/', array('controller' = 'home_pages', 'action' =
'index'));
My question is when I go to
I'm new to cake and still learning the boundaries. However, I am
writing a CMS type system that will have the same components across
several CakePHP websites at different domains on our server. I have
the core cake lib on the server so all sites share the same core. And
I'm using RC2.
The end
I am going through the Apress book, and I ran across an issue that I
had to use the Cake API to resolve. (For Reference in book.. this is
on page 106)
The function it gave me to put into the Post model for the blog
application is as follows:
function findByYear($year=null) {
$date =
20 matches
Mail list logo