Hi Guys,
Is there any way to piggy-back off the validations on the model to
validate fields that are not in the table? Other than doing it manually
of course ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
I have successfully implemented the blog tutorial twice now, since I
had to reinstall cake.
I was seeking to use the tutorial as a 'quick-start' method to getting
to understand what makes Cake tick. Unfortunately, I don't feel like
the tutorial helped concepts really sink in for me, so I have
Will it work if you use 'categories_id' instead of 'parent_id'?Following the cake conventions this might make sense.On 5/8/06, Kotekar
[EMAIL PROTECTED] wrote:categories TABLE- id- name- parent_id
While Add New Category,i need the SELECT OPTION to draw the values ofpresent Category List to choose
I'm a new cake (1.0.1) user and have been trying out the tutorials etc,
it all looks good so far.
The problem I've had is with the $this-log() function. I was getting
permissions errors about creating the file wherever the function was
called.
I'm using Apache2 on Ubuntu, and the function tries
sorry that was supposed to be bake.php was broken.
--~--~-~--~~~---~--~~
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,
Try this (for testing purposes):
function index($id='1')
{
//$_SESSION['Customers.id'] = $id;
$this-set('data',$this-Assessment-findAllByCustomerId($id));
}
Obviously, you'd replace the '1' in the function def with an id you
know is
Hi Alberto,
And nothing...I get always that favicon.ico.
What exactly does this mean?
Are you saying that
h1?php echo $customers_id; ?/h1 ... rest of file ...
in your view file outputs
h1favicon.ico/h1 ... rest of file ...
?
AD7six
--~--~-~--~~~---~--~~
You
My problem now is that: I have a class that defines users and users are
linked to assessments via a foreign key assessment_id. An assessment,
is linked to a customer via a foreign key customer_id; now the
challenge is that when I'm creating the add.thtml view to insert a
new customer I'll have 2
The problem is that when I need to read the Customers.id
value I geta strange text: favicon.ico. How can I avoid that?Thanks to all for the help!Try adding the favicon.ico to your DOCUMENT ROOT.
There is one in the app/webroot/ copy it to your DOCUMENT ROOT
If you have DOCUMENT ROOT set to
Ok so, the favicon.ico location is not the problem because I never
changed roots.
I'm using Windows XP Home, Mozilla Firefox latest version and CakePHP
cake_1.0.1.2708.
Here's the code:
1) this is the controller of customers, the first page I access
?php
class CustomersController extends
Ok so, the favicon.ico location is not the problem because I neverchanged roots.
Is the favicon.ico in your DOCUMENT ROOT?
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @accesspublic
*/
I think the best solution is using ajax. When a customer is selected,
call a function to retrieve the assessments with the customer id and
display them in a new box.
Of course you could do it without ajax by adding a condition before
save() to rerender the view with an assesment box.. but it's
Hi,
I need to make a select box with name of people. I need it to show
(Last name, First Name). In the databsase, i have two fields,
first_name and last_name.
I need to retrieve the data for a select box. I know i can do it with
findall but i'dd rather do it with generatelist. the problem is i
Hi Mika,
It seems to be broken, it didn't worked.
--~--~-~--~~~---~--~~
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
You only use the admin route to gather administrativ actions under a
common base URL. It has nothing to do with authentication it is all
about URL translation.
To set authentication you still need to do that in the controllers and
actions just like you would do without the admin route. If you
Thanks Felix. I'll try both and let you know. ;)
--~--~-~--~~~---~--~~
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
Hello,
I need a little help with a simple application
I am building. I already have most of it done
except that I cannot figure out how to pass the
right id from one model to another. I have
a model vehicles which has a hasMany relationship
with a model vlogs. The model vlogs also has a
On May 9, 2006, at 9:05 AM, Dusty wrote:snippedThe problem is that the vlogs page knows nothingabout the "4". All of my relationships in my models andcontrollers and tables is correct I believe.How do I tell the "vlogs" model the right "vehicle_id"top insert the record with. What is the correct
I found the problem : i use cake under windows and then i can't see the
error message .
This day i try to install cake under debian and it's ok i can see the
error message .
Perhaps it's due to easyphp , i don' t now exactly .
thanx to BoBB
Tinmar
John,
Thanks for the help !! Basically I have already tried that
and for some reason I get the warning missing argument for add()
in /vlogs_controller.php. So I must be doing something wrong
or not have something set up correctly. For some reason it doesn't
see the $id variable being
hi
it's not a problem with mysql itself (otherwise, it would return
something like unable to connect)
I'm no expert (and all this depends on the way you 'upgraded' php4 to
php5), but maybe it comes from a wrong setup of php5.
in php.ini (the one for php5), in the extension (module) section I
I'm working on extending the blog tutorial a bit and part of it was
rolling out a user auth system. This was actually quite a bit easier
than I expected, and I've even set it up so that one only needs to be
logged in to add, delete, or edit posts.
So my question is this: I'd like for a logout
Oh thanks! I was expecting you to suggest me Ajax use...well can you
suggest me any good Ajax help to do this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
I wouldn't balk too much at something like
?php if (!empty($_SESSION['uid'])):?
a href=/users/logoutLogout/a
?endif;?
in a view.
Just my opinion though. I mean I guess you could put something in the
controller that would tell the view if you're logged in or not (which
I *would* do if
Well it's in the default app/webroot directory.
How can I see my document root?
--~--~-~--~~~---~--~~
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
When your page is rendered view the HTML source in your web browser.Send us that code so we can see where things are getting printed out too.On 5/9/06,
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Well it's in the default app/webroot directory.How can I see my document root?
Wrap your entire before filter in
if (in_array($this-action, array('protected', 'actions', 'here')))
{
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Here it is man:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
titleCakePHP : A Rapid Development Framework :: Projects/title
link rel=shortcut icon href=favicon.ico
Hello, I'm new to cake and i'm having some trouble getting things done
but i'm sure i'll get used to it once I understand how certain things
work in Cake. The problem i'm having is that I cant associate different
models, like fetching data from 3 different table at the same time with
the help of
I'm having a similar problem simply trying to add comments to posts.
I've tried to get a list of comments that would be associated with a
single post by adding
$this-set('comments', $this-Comment-findAll(WHERE post_id =
'$id'));
to the view() function under posts_controller.php but that line
Ok.
In your view (at the top) do the following and then send us the output
when you view your html page.
?php
print pre;
print_r($_SESSION);
print /pre;
exit;
?
This should give us the contents of your session while your view is rendering.
On 5/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Gotta use model assocations - it makes this sort of thing so much nicer.
http://manual.cakephp.org/chapter/6
Looks like your Comment belongsTo Post, and probably Post hasMany
Comment.
Give the manual a look, and let me know if you have questions on it.
-- J
On May 9, 2006, at 1:47 PM,
I read through the manual in one go last week, totally forgot I had to
set up the associations myself.
Now that I've done it I can't believe how simple it is. I'm REALLY
starting to like this whole baking thing. Thanks John!
--~--~-~--~~~---~--~~
You received
Ok, this is what I got:
Array
(
[Config] = Array
(
[rand] = 2397
[time] = 1147224143
[userAgent] = ed1c6dfd48691613681e0b701c02a7d4
)
[Customers] = Array
(
[id] = favicon.ico
)
)
Ok lets try this one last time.You DOCUMENT ROOT in the path where apache looks for the app/webroot.Where did you install cake? Is it in a sub directory of your web accessible path?If this is the case, or you do not have DOCUMENT ROOT set to app/webroot, then you need to copy the
favicon.ico to
I'm using the Cake Session component to store user login information.
This is a Web app for which the user will want to remain logged in
indefinitely. Right now, after a little while the session information
appears to be gone (and thus the user is no longer logged in). How can
I change this?
In app/config/core.php on line 108:
/**
* Set Cake Session time out.
* If CAKE_SECURITY define is set
* high: multiplied by 10
* medium: is multiplied by 100
* low is: multiplied by 300
*
* Number below is seconds.
*/
define('CAKE_SESSION_TIMEOUT', '120');
Hope that helps,
Adam
you should look in the api for the bindModel and unbindModel methods for the model, I think it is what you are looking for, it's a little cleaner and the reset after you use them
http://api.cakephp.org/class_model.htmldoesn't seem to be in the manual yet, but there was a page in the wikiSam DOn
Hi, Adam!
Try to use this:
http://cakebaker.wordpress.com/2006/02/22/new-feature-bindmodelunbindmodel/
--
Regards,
jtraub
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group,
Hello all,Is there any way to develop a distributable template in Cake? I find that putting all template files in to a single view directory as instructed in Cake manual make it impossible to attach more than one distributable template into a single application. I wish that I can put all my
Dinh,I wrote this theme class a few months ago and have note checked to see if it would work with the latest release. But for the most part it should, when I make changes in the core, I usally am pretty good about not breaking other code I wrote.
Hi,
I'm just starting out with Cake and am going through the Cake Bakery
tutorial.
I'm at the point where you use bake to create your scaffolded views but
I'm getting this error:
Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/mysql/mysql.sock' (2) in
This is a known issue with mysql installations on OS X 10.4
the official workaround is posted here:
http://docs.info.apple.com/article.html?artnum=301457
Other people have suggested simply creating a symlink, which sounds
like a very sound recommendation. However, by the time I had read that,
I
Api done too.
--~--~-~--~~~---~--~~
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 more
Ok so: first of all the problem occours only with Firefox, not with IE
why?
And I installed Cake into: C:\xampp\htdocs\process_strategy\
Web accessible path I assume is C:\xampp\htdocs so in browser:
http://localhost/process_strategy/
I feel we are near to the solution...
45 matches
Mail list logo