Make sure you post back to the same action the form is on, and you
aren't redirecting between when the validation error occurs and the re-
display of the form.
Cheers,
Adam
On Nov 2, 8:55 am, Al [EMAIL PROTECTED] wrote:
Hi,
I'm using Cake 1.2 RC3.
In a signup form after a submit, (after a
Point your browser to http://localhost/CakeTooDoo/tasks/index, this should
show you the page.
If you want to make the tasks/index page your home page, then open
/app/config/routes.php and find the following line there,
Router::connect('/', array('controller' = 'tasks', 'action' =display',
Hello Members,
Database name:caketodo
table name:tasks
CakeTooDoo\app\views\tasks\index.cpt
h2Tasks/h2
CakeTooDoo\app\controllers\tasks_controller.php
?php
class TasksController extends AppController{
var $name='Tasks';
function index()
{
$this-set('tasks',
This does not serve the purpose because tagging needs to be
implemented on all the 3 types of entities : Posts, Teachers and
Books .
On Nov 1, 11:15 pm, Anupom [EMAIL PROTECTED] wrote:
Please find my suggested db design below,
tags: id, name
types: id, name
posts: id, name
teachers: id,
Sorry I got it wrong in hurry :) Can you please check out the following
schema again?
tags: id, name
entity_types: id, name [(0, Posts), (1, Teachers), (2, Books)]
posts: id, name
teachers: id, name
books: id, name
entities_tags: id, entity_id, entity_type_id, tag_id
With this schema please
Can you please try with the following code?
function view() {
Configure::write('debug', 0);
header('Content-type: image/jpeg;');
echo file_get_contents(WWW_ROOT . 'img' . DS . 'folder' . DS .
'test.jpg');
exit;
}
On Sun, Nov 2, 2008 at 4:36 AM, Giaco
From time to time I get the following cakephp error
Warning (2): fopen(cakephp/app/tmp/cache/persistent/cake_core_dir_map)
[function.fopen]: failed to open stream: Permission denied [CORE/cake/
libs/file.php, line 146]
What could possibly be the reason?
I'm using the latest cakephp
Mal
I think you need to set writable permission to the /app/tmp directory and
its subdirectories.
On Sun, Nov 2, 2008 at 7:59 PM, Malcolm Krugger [EMAIL PROTECTED]
wrote:
From time to time I get the following cakephp error
Warning (2): fopen(cakephp/app/tmp/cache/persistent/cake_core_dir_map)
Nate, that's kind of what I had in mind, nice explanation.
J
On Oct 28, 5:51 pm, Nate [EMAIL PROTECTED] wrote:
I think it would be possible to write the core of the application as a
plugin, but distribute it inside of an application that provides the
front-end. This would serve the purpose
Hi,
I am new to CakePHP.
I have been following along in a tutorial and got to bake.
I understand I can use bake to generate models, views, controllers for
example.
In this instance I had already contructed a model and was using bake
to create a controller.
My model looked like the following:
I now found out then when viewed binarily the only difference between
the real picture and the scrambled one of cake is:
* one empty line at the top
* line delimiter is CRLF not CR
If I change those two, the image works as expected. How can I tell
cake to show the image properly?
On Nov 2,
My MySQL5 database is encoded in utf-8, and the page is as well (which
is declared in the html meta tags), however when I generate a select
field with the form helper, an uncommon character (é to be precise)
shows up as a question-diamond in firefox. if i manually set firefox
to use western
That doesn’t work either. The path is correct, put the output gets
scrambled. I think this is an encoding issue but I can’t work around
it and don’t find anything on the web about it.
Does this function work as expected with your cake installation? (I’m
using UTF8)
On Nov 2, 11:10 am, Anupom
It works fine here! Did you try exiting at the end of the action?
On Sun, Nov 2, 2008 at 7:48 PM, Giaco [EMAIL PROTECTED] wrote:
That doesn't work either. The path is correct, put the output gets
scrambled. I think this is an encoding issue but I can't work around
it and don't find anything
Maybe you forgot whitespace after closing a php tag.
Anupom wrote:
It works fine here! Did you try exiting at the end of the action?
On Sun, Nov 2, 2008 at 7:48 PM, Giaco [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
That doesn't work either. The path is correct, put the output
hi
i need to test my cakephp application in localhost.
my os is win xp.
do you know good solution for this work ?
thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group,
I'm looking for this as well.
On Nov 2, 9:38 pm, persianshadow [EMAIL PROTECTED] wrote:
hi
i need to test my cakephp application in localhost.
my os is win xp.
do you know good solution for this work ?
thanks.
--~--~-~--~~~---~--~~
You received this
On Sun, Nov 2, 2008 at 10:33 AM, Bernardo Vieira
[EMAIL PROTECTED] wrote:
Maybe you forgot whitespace after closing a php tag.
My guess is that you have a controller, component, helper that has an
extra white space at the start or end. You could try clearing the
output buffer
Not sure why it would show up as a question mark when you generate the
form with the helper, however, when connecting to the database, make
sure you set the encoding as well.
var $default = array('driver' = 'mysql',
'host' = 'localhost',
'login' =
Hi. Are you following the exercise in the book: Implementing Ajax
Features, chapter 8? if so I might me able to tell you that I found 3
errors on it. Reading your code I fix the last one. let me know then I
can drop you the code corrected.
carlos
On 31 out, 15:13, Kieron [EMAIL PROTECTED]
I'd like to pass any recommended source code (missing controller,
etc.) from Cake through highlight_string(). How can I customize this
output beyond simple styling?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi, in an app i'm developping i want to be able to copy a few files
between 2 aws s3 buckets. I'm using the s3 php class from undesigned
(http://undesigned.org.za/2007/10/22/amazon-s3-php-class), which works
just fine in any other operations.
Right now im trying to move 2 files, whose filenames
I'm not sure what you mean by that. jQuery is written in JavaScript
(not like MochiKit, which tries to make JavaScript look like Python).
On Oct 31, 2:43 pm, Gabriel Gilini [EMAIL PROTECTED] wrote:
The right answers is: learn real javascript
Yes, the learning curve with jQuery is way lower,
I mean that there is a hell lot of people learning jQuery, not JavaScript
these days. Every allegedly javascript developer should, at least, read the
ECMA-262.
Gabriel Gilini
www.usosim.com.br
[EMAIL PROTECTED]
[EMAIL PROTECTED]
On Sun, Nov 2, 2008 at 10:08 PM, 703designs [EMAIL PROTECTED]
Except for using what's provided (being a light library), you can't
get very far in jQuery without learning JavaScript unless you plan to
only reuse other peoples' code.
On Nov 2, 7:38 pm, Gabriel Gilini [EMAIL PROTECTED] wrote:
I mean that there is a hell lot of people learning jQuery, not
Hi all im relatively new to Cakephp.Currently im creating a web app
for our in house usage to track and monitor tenders.My problem right
now is im creating a search function.Whenever user submit strings to
the search query it all went well.However the problem occur on
pagination when the search
Prototype developers tried to make it like Ruby as well :P
On Mon, Nov 3, 2008 at 6:08 AM, 703designs [EMAIL PROTECTED] wrote:
I'm not sure what you mean by that. jQuery is written in JavaScript
(not like MochiKit, which tries to make JavaScript look like Python).
On Oct 31, 2:43 pm,
Hi all,
Is there any problem in using both JQuery and Prototype in the same
application?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
hi,
I want to change setFlash message English to franch how can i change
language of flash message?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Hi Stinkbug,
Thanks again for your interest in helping me out. Sorry for the delay.
I was able to setup permission dynamically. But still it is not
proper. Before going further I will provide you my table structure
offices table:
id- int
name - varchar
groups Table
id - int
2008/11/3 [EMAIL PROTECTED] [EMAIL PROTECTED]
hi,
I want to change setFlash message English to franch how can i change
language of flash message?
- You can use syntax like $this-Session-setFlash(__('This is error
message', true)); in controller's action to use multi-lingual flash message
In my above post I had said These 4 groups
will be common for all office and the rules are predefined for these
for groups.. Please read it as From these, 4 groups
will be common for all office and the rules for those four groups are
predefined
On Nov 3, 11:44 am, jst4fun [EMAIL PROTECTED]
32 matches
Mail list logo