Hi,
There are two way to handle this.
Add these lines above your other users routing rules. If you put it below your
other rules, then the router will think "login" is a username. This is not an
advisable approach since you can no longer have users with the names "login" or
"logout", and ever
Can this be installed into Zend Studio?
- Original Message
From: kiang <[EMAIL PROTECTED]>
To: CakePHP
Sent: Friday, May 23, 2008 12:05:59 PM
Subject: A small plugin for PDT&CakePHP - Open Cake File
http://sourceforge.net/projects/opencakefile/
http://opencakefile.sourceforge.net/
It
Assuming that your blocking their IP, because you think a hacking attempt is
taking place.
Usually, hacking attempts are performed by robots, and it wouldn't be hard to
have the robot retry every 5 minutes.
I think storing the IP address in the session isn't useful. If they fail to
login after
Thanks for the tip! :)
- Original Message
From: keymaster <[EMAIL PROTECTED]>
To: CakePHP
Sent: Thursday, May 22, 2008 10:01:19 AM
Subject: Re: Why CakePHP always uses var?
For symptomatic relief in Zend Studio:
- right click in the debug messages window,
- choose: Debug Message Fil
Thanks,
I think your right about the component being the way to go, but the manual
doesn't give much information about creating components.
How would I access the Document model from the component, and how would I pass
the pagination data to the view from the component?
Sorry if these are basi
The beforeFilter of AppController wasn't executed, because the class wasn't
instantiated. It wasn't instantiated because the controller didn't exist.
AppController is an abstract class that controllers extend. So if the framework
doesn't find a controller, then a Not Found error is the correct r
What are tags? and where can I find more info on this in the documentation?
Is this a feature of views or controllers?
- Original Message
From: Action <[EMAIL PROTECTED]>
To: CakePHP
Sent: Wednesday, May 14, 2008 3:15:17 PM
Subject: Re: Custom tags no longer working in 1.2 Beta...has s
http://book.cakephp.org/view/94/views#elements-97
- Original Message
From: benjam <[EMAIL PROTECTED]>
To: CakePHP
Sent: Wednesday, May 14, 2008 2:05:18 PM
Subject: Re: Including a menu on some pages but not all
Exactly what I was looking for.
Thanks.
On May 14, 11:56 am, Kyle Decot
A model will return false if there was an error, and an empty(false) returns
true.
If the model works, but finds no records, then I think it returns
array('Photo'=>array()) which is not empty.
- Original Message
From: Kyle Decot <[EMAIL PROTECTED]>
To: CakePHP
Sent: Tuesday, May 13,
You should be separating the index action, and the requested action.
try creating
function getPhotos()
{
return $this->Photo->findAll();
}
and calling that from your element.
- Original Message
From: Kyle Decot <[EMAIL PROTECTED]>
To: CakePHP
Sent: Tuesday, May 13, 2008 1:51:52 P
thanks, that was exactly what I needed.
- Original Message
From: Dan Bair <[EMAIL PROTECTED]>
To: CakePHP
Sent: Monday, May 12, 2008 5:16:42 PM
Subject: Re: Popup color picker.
Do you have a specific color picker in mind? There are plenty of good
color pickers for JQuery and Prototype
I do this by rendering my HTML header with an element, and then passing it
parameters from the controller.
- Original Message
From: MarcS <[EMAIL PROTECTED]>
To: CakePHP
Sent: Monday, May 12, 2008 3:45:23 PM
Subject: include CSS and Javascript into layout 'on demand'
Is it possible t
var $helpers = array('Form');
put that in your controller.
- Original Message
From: jaredonline <[EMAIL PROTECTED]>
To: CakePHP
Sent: Monday, May 12, 2008 1:52:12 PM
Subject: Fatal Error when using $form
Controller:
View:
Please Login
create('User', array('action' => 'login')); ?>
While this subject is open.
I would like to be able to download the manual, and read it offline. I find the
Cake website feeds out pages from the manual very slowly.
- Original Message
From: Esoteric <[EMAIL PROTECTED]>
To: CakePHP
Sent: Monday, May 12, 2008 1:48:19 PM
Subject: Re: Co
For cake 1.1.19.x
In your /app/config/routes.php file add the following.
$Route->connect('/sitemap.xml',
array('controller'=>'xml','action'=>'sitemaps','sitemap') );
- Original Message
From: deeps <[EMAIL PROTECTED]>
To: CakePHP
Sent: Monday, May 12, 2008 1:14:00 PM
Subject: Advanced
output, if its cli then its being invoked by the cron job
since you would use php cli to invoke console jobs. place a check at the start
of the controller
if (php_sapi_name() == "cli") {
// proceed
}
Thanks.
On Mon, May 12, 2008 at 9:18 PM, Mathew Nik Foscarini <[EMAIL PROTECTED]>
Well, wouldn't the remote address have the same IP address as the server? Then
again, I can't remember if $_SERVER is defined when running from the command
line?
if( $_SERVER['SERVER_ADDR'] === $_SERVER['REMOTE_ADDR'])
{
// the client has the same IP as the server.
}
Another approach would
http://framework.zend.com/manual/en/zend.pdf.html
- Original Message
From: Dr. Tarique Sani <[EMAIL PROTECTED]>
To: cake-php@googlegroups.com
Sent: Monday, May 12, 2008 11:13:21 AM
Subject: Re: Somebody konw any library for receive html code and generate
document pdf?
try html2fpdf
T
$data .="--$boundary--\r\n";
$header .= "Content-length: " . strlen($data) . "\r\n\r\n";
// Open the connection
$fp = fsockopen($remote_server, 80);
// then just
fputs($fp, $header.$data);
fclose($fp);
?&g
Thanks, I didn't know wget could do HTTP POST operations.
- Original Message
From: Marcin Domanski <[EMAIL PROTECTED]>
To: cake-php@googlegroups.com
Sent: Saturday, May 10, 2008 12:56:28 PM
Subject: Re: Sending POST to Cake website via PHP
Look at wget[1] /curl (its supported in all ma
Did you define your absolute paths using your /home/username account for your
web server?
Mine are setup something like this.
define('ROOT','/home/username/public_html');
define('APP_DIR','../../folder/cake_1_2.app');
define('CAKE_CORE_INCLUDE_PATH', '/home/username/folder/cake_1.2.0');
When yo
Hi,
Your very close. You have everything setup correctly, but your trying to find
the project the wrong way.
$this->Project->findall(array('Task.id' => 1));
A project has many tasks, but a task belongs to just one project and just one
user.
So, if you have the task.id and you need the project
Have you looked at the PHP port of Apache Lucene from Zend.
http://bakery.cakephp.org/articles/view/integrating-zend-framework-lucene-with-your-cake-application
http://framework.zend.com/manual/en/zend.search.lucene.html
http://lucene.apache.org/java/docs/index.html
- Original Message
I switch a site from 1.1.19 to 1.2 a month ago. Mind you, it was still in
development and not that big.
I had to modify the database description, the core parameters, and the caching
has changed. Other then that. I didn't have to much of a problem.
Give it a try in a safe sandbox area of your s
Thanks guys,
Yes, I keep my core separated from my app.
I keep everything in my own SVN repository, but it's been a while since I
updated my build of Cake 1.2.
- Original Message
From: Sliv (Tim MacAleese) <[EMAIL PROTECTED]>
To: CakePHP
Sent: Thursday, May 8, 2008 2:33:19 PM
Subject
I hope this isn't a stupid question, but how can I check what version of Cake
1.2. is installed?
I also need to update my Cake 1.2 install with the latest version. When copying
files over top my existing install which files should not get modified? are
there any I should worry about, or is
I'm switching from the default auth component to the DarthAuth component. Looks
like it has everything you could need without the overhead of ACLs.
- Original Message
From: Louie Miranda <[EMAIL PROTECTED]>
To: cake-php@googlegroups.com
Sent: Thursday, May 8, 2008 1:28:19 PM
Subject: Wh
27 matches
Mail list logo