I just downloaded and unpacked the new 1.0 package and put the entire
contents into a new folder in my web root, This is the same way I have
done it with every other version so far. However, when I load the
default welcome page the css links are being sent as
/css/cake.default.css and not
Please look at this...
http://groups.google.com/group/cake-php/browse_thread/thread/11c52a7e44558ffb/382e3d20dcb134b9#382e3d20dcb134b9
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this
Nevermind, I figured it out. The .htaccess file that should have been
in the main distro folder with the cake, app, and vendors folders was
missing. I am not sure if it was missing from the distro or if it was
due to the way I unpacked it. Anyway, if anyone else has this problem
be sure you look
Does not anybody know what can cause the problem?? By the way, I am
using Cake 1.0.x...
--~--~-~--~~~---~--~~
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
It's hard to say without seeing more of your code, but I think your
view needs to be events/index.thtml, not event/index. If you can post
some code for your model/view/controller, that would help with finding
the problem.
--~--~-~--~~~---~--~~
You received this
Controller events_controller.php looks like:
class EventsController extends AppController
{
var $name = 'Events';
var $uses = array('event');
function __construct()
{
$this-pageTitle = Events;
$this-viewPath = 'events';
}
I found a small bug in cake\libs\controller\controller.php.
This line:
if(0 != strncmp( created, $tabl['name'], 6 ) 0
!= strncmp(modified,$tabl['name'], 8))
Should be:
if(0 != strncmp( created, $tabl['name'], 7 ) 0
!= strncmp(modified,$tabl['name'],
Michael,Is your question in another email? You are replying to another topic that has nothing to do with your problem, either repost to your topic or open one of your own if it is not showing
-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka
First error I notice in your code is you have function __construct() in your classes, where did you get that from? I do not think any of the code examples show creating these empty methods.If you use the function __construct() in your classes you must call parent::__construct();
Fix those errors
Thank you, Larry, very much for pointing to the problem! It's gone.
Where should I read about that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Hi to all,
How can i list the files contained in a directory ?
I would like to use it with selecttag to associate a file with a
record.
The files are very big, uploaded using FTP, so no web-based uploading !
Just listing of a directory in an array.
Thanx.
you can also look in the http://api.cakephp.org/ at the Folder classyou might find that Folder::ls would be helpfulSam DOn 5/3/06,
RosSoft [EMAIL PROTECTED] wrote:
check this?php$dirname=ROOT .DS.'vendors' . DS;$dh= opendir($dirname);$files=array();while (false !== ($entry= readdir($dh))){if (
Thank you...
I modified your script like this:
?php
$dirname=ROOT .DS. 'vendors' . DS;
$dh= opendir($dirname);
$files=array();
while (false !== ($entry= readdir($dh)))
{
if ( $entry!= '..' $entry!= '.')
{
$files[$entry]=$entry;
}
}
print_r($files);
?
I can't understand how to use the Folder class...
Can you tell me how to use it or a place where it is explained ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
So at the top of the controller you could douses('folder','file'); // loads the classes for Folder and Filethen in the controller to get an array of readable folders in a path you could do$path = WWW_ROOT.DS.'dev'.DS.'birdlists'.DS.$filename;
$folder = new Folder($path);$ls =
I did so and the links got messed up:
http://localhost/posts/edit/5
they should be http://localhost/blog/posts/edit/5
and the css file got lost
i erased the .htaccess files, but the same problems
--~--~-~--~~~---~--~~
You received this message because you are
ivan, you are trying too hard. If you are using Apache mod_rewrite
can work if you enable the module in the config, set AllowOverride to
ALL, AND have the htaccess, AND have line 42 commented.
To recap:
1) enable mod_rewrite module in apache config
2) Make sure AllowOverride ALL is set for
Is there a way to omit the render time from the end of the view without
turning off debugging? In the case of internal view (for example,
those returning JSON) it can screw up the JS parsing.
--~--~-~--~~~---~--~~
You received this message because you are
Try putting an exit; after you call $this-render()
--~--~-~--~~~---~--~~
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,
Congratulations!
--~--~-~--~~~---~--~~
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
I'm pretty new to CakePHP (just got it yesterday) and I was following
along with the second blog tutorial
[http://wiki.cakephp.org/tutorials:blog_tutorial_-_2] and the recent
posts page wasn't working for me. I was getting a PHP error (not cake)
that said I used an invalid argument in my
try upping the debug setting in config/core.php to 2 and see if any
sql errors are reported.
On 5/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'm pretty new to CakePHP (just got it yesterday) and I was following
along with the second blog tutorial
you need Post.modified in the order parameter
--~--~-~--~~~---~--~~
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
I noticed that people keep asking on this group and on other places
around the net things like:
How does CakePHP relates to X?
Is CakePHP better than Y?
I tried Z but I didn't like it, is CakePHP any good?
I had a look around and found no articles on the Net comparing all the
Rails-inspired PHP
Atkati,
You'll find that avoiding Cake methods variables means you write
longer files ;)
To repeat what Sam D has already written using your own variable names
etc. Your script would look something like this:
uses('Folder');
$folder = new Folder (VENDORS);
$files = $folder-ls();
pr
I have created 3 tables: pages, sections, page_sections. All naming
conventions aside, the findAll() query returns
Array
(
[0] = Array
(
[SECTION] = Array
(
[ID] = 4
[ACCOUNT_ID] = 5000
[NAME] =
Hi,
gwoo wrote:
you need Post.modified in the order parameter
Yes. That seems to be a new issue with the final version 1.0 - I had
the same problems, when I upgraded my apps. If you don't mention the
model, cake inserts a blank into the ORDER BY statement. When you set
debug to 2, you can see
Ah! beautiful, I thank everyone for the quick and accurate replies.
Everything works nicely now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
28 matches
Mail list logo