On Jan 17, 2007, at 10:17 AM, Rosie F. wrote:
Hello all,
I have a need to create links (both regular and images) from within
the
controller/component side of things. Normally of course we would use
the Html helper to make links. But for this particular need I have,
the links must be
On Jan 17, 2007, at 11:13 AM, Rosie F. wrote:
snip
However that path fixing, IMO, should be part of the business logic
and
not part of the views. I don't want to call my path fixer every
time I
output user-submitted content in the view. I would rather prepare
all
the user-submitted
On Jan 17, 2007, at 11:45 AM, Rosie F. wrote:
Correcting the URLs is the goal here. The way I am doing it, with
regular expressions, I am finding each anchor and img tag that
contains
one of the problematic paths, exploding all the attributes, fixing the
src or href attribute, and then
On Jan 16, 2007, at 2:17 PM, salimk786 wrote:
Hello,
I was hoping someone can piont me in the right direction.
I want to have a select tag where they choose their country and once
they choose a country, another selectTag appears asking them to choose
their state and once they choose their
On Jan 16, 2007, at 3:45 PM, jyrgen wrote:
hi all,
my app has basically 3 models:
users (actually webusers), authors and publishers.
authors and publishers are both able to log into the app and do
things,
regard them as different usergroups.
every author and every publisher has
On Jan 15, 2007, at 3:16 PM, sentel wrote:
Hi All,
first, I'm a bit of a newby to cakephp, but already loving it.
I made some models, associations, controllers etc and I'm still using
scaffolding (suites for now) to manage the contents of the database.
Then I made some pages wich soon
On Jan 13, 2007, at 2:11 AM, Sergei wrote:
Canglan писал(а):
I'm actually more concerned about the documentation. It's not an easy
task yes, but if the documentation can be really enhanced then it
will
boost the Cakephp community by quite a large margin. :-)
Indeed. Cake's
On Jan 10, 2007, at 3:49 AM, Ryan Snowden (Beijing) wrote:
Maintenance of code in the bakery will suffer the same problems of
depreciation, but easily controlled through an admin panel addition
unpublish reason depreciated which can contact the author, place
a notice, or be dugg down
On Jan 10, 2007, at 10:29 AM, Matt Adams wrote:
keymaster wrote:
A final question: how important are REAL foreign keys in the
database,
if you are using cake associations. Are they superfluous? Are they
still needed?
It depends on what you're doing.
They are extremely important if
On Jan 10, 2007, at 11:43 AM, milliseconds wrote:
I have on layout where the $content_for_layout data is displaying
after
the footer. Since I am new to Cake I am pretty sure this is a rookie
error. How do I fix it?
We'd need to see your layout, but this is the basic idea. If you're
On Jan 10, 2007, at 11:37 AM, jvandal wrote:
Hi,
I am running the First Bite tutorial. I can see that the screen tells
me it has found my mysql database memo. I then create note.php (in
models)and notes_controller.php (in controllers)that contain the
scaffolding statements. I try to call
On Jan 9, 2007, at 12:48 PM, Alessandro Nuzzo wrote:
I have some problems to understand the association.
For example, I have a model 'User' and model 'Address'.
User:
- id
- bla bla bla
- office_address : int - address.id
- home_address : int - address.id
Stick this in your model.
On Jan 9, 2007, at 4:09 PM, devon wrote:
I have developed a form in Cake which contains several hundred
questions. It will be used for a certification test when complete. The
length of the form has required categories separated into 7 individual
pages.
Cake's database sessions do a good
On Jan 8, 2007, at 11:11 AM, Veloz wrote:
Thanks for this, I'm glad this a topic in the forefront of your minds
while developing Cake. I like the product very much, but have seen
good
intentions turn into bloat many times over in my 25 years in the
software industry :-)
Just a couple
On Jan 5, 2007, at 9:27 AM, Veloz wrote:
I am a relative new-comer to Cake and am impressed and appreciative of
the quality of effort that has gone into the project so far.
However, I have found that many of my questions are not answered in
The Manual nor in Tutorials/FAQ's, nor in the
On Jan 5, 2007, at 10:40 AM, Veloz wrote:
Thanks for your reply to this topic, John.
I probably should have not brought up 1.2 at all, as it throws my
comments into a special case of a development release, and we all
expect less from a development release.
In any event my nit is less about
On Jan 2, 2007, at 12:49 PM, PHPBABY3 wrote:
anselm wrote:
1. Create a button that will appear on all pages in the
application at
a particular location using CSS, and that does as follows.
If you want your button to appear on all pages at the same place,
then
the easiest is to put
On Jan 2, 2007, at 2:22 PM, Veloz wrote:
I'm pretty new to Cake and have this question: is it possible to use
Cake's lower level database classes in the case that you do not
descend
your model from AppModel?
In other words, if you want to create a model class that does not
descend from
On Dec 29, 2006, at 10:58 AM, Ámon Tamás wrote:
Hello,
I see the wiki pages going to the Bakery, but I always use wiki for
the looking for the Cake Conventions, but now it is not available.
I putted to the new bakery site this document, if it is available
in an other place please
On Dec 20, 2006, at 11:01 AM, ReynierPM wrote:
Hi every:
I've been working with CI since a while and now I try to test
CakePHP for make a simple comparison. Right now I have a doubt:
exists any way for download all the documentation as PDF or CHM or
maybe an entire .html page?
On Dec 20, 2006, at 11:24 AM, Mariano Iglesias wrote:
CI? What does it stand for?
CodeIgniter.
We're much more mature and feature-rich than CI, and there's much
less code to write in a Cake app. /imho
-- John
--~--~-~--~~~---~--~~
You received this
On Dec 15, 2006, at 8:52 AM, luis_y27 wrote:
This works perfectly thanks, however for some reason none of my code
within javascript tags is render with this call. Is there a reason
for
that? Thanks in advance.
Make sure the evalScripts option is set to true for any of your calls.
--
On Dec 15, 2006, at 3:48 PM, moonraker wrote:
Hi guys,
i'm very interested in cakephp and tried to get it running on my local
webserver (a xampp under winxp).
I've putted the cake files under localhost/cake so that for example
app is under localhost/cake/app.
Afterwards i tried to do
On Dec 14, 2006, at 8:27 AM, luis_y27 wrote:
Hey I'm really stuck with something here, I would really appreciate
any
help. I'm trying to figure out how to update a division after an ajax
call. I have a div and within this div I render an element. Pretty
simple something like this
?
On Dec 14, 2006, at 10:50 AM, luis_y27 wrote:
thanks for your quick response John, I already have set up a
controller
action to respond to the ajax request. Also all necessary .js files
are
included in my code. I tried your suggestion and it worked but only
partially thought. Mostly
On Dec 14, 2006, at 11:46 AM, Tazz wrote:
Is there any tutorials out there explaining how to use associations?
I'm trying to do it strictly from the maual and I can't seem to get it
to work...
How so?
This should go without saying, but not providing any details makes it
much harder to
On Dec 11, 2006, at 11:04 AM, [EMAIL PROTECTED] wrote:
For some reason... my javascript and css files are being rendered
through my default view instead of being served as javascript and css.
So instead of getting file.css, i get an html file, which of course
states that I have a missing
On Dec 11, 2006, at 12:33 PM, Mikee Freedom wrote:
should they not?
am i approaching this in completely the wrong way?
i'm attempting to write some generic functions in one controller that
may call requestAction on a range of others. But I don't want to have
to set the action up in all
On Dec 11, 2006, at 2:45 PM, Felix Geisendörfer wrote:
Hi Langdon,
JQuery looks good (powerful). I have not come across it before,
so am
on the learning curve. Do you use it instead of Scriptaculous and
Prototype?
Oh definitely! I've not touched Prototype/Scriptaculous since
On Nov 30, 2006, at 10:44 AM, cwsTrummer wrote:
can i have more than one app controller
No.
i have my app_controller.php in /app
can i hav app2_controller.php in the same directory?
Yes.
when i try to make a new controller in
/app/controllers
and extend it from controller and NOT
On Nov 30, 2006, at 11:18 AM, Felix Geisendörfer wrote:
On my local dev machine something is messed up with Sessions as
well and fixing it in php.ini does not help.
Rescue comes from a little addition to /app/config/bootstrap.php
On Nov 27, 2006, at 9:51 AM, joel wrote:
So, the strangest thing is happening, and I don't know what else to
do.
On my development server, I am able to submit a form, and it's saving
to the database. But when I deploy it to the production server, it
does everything as though it DID
On Nov 27, 2006, at 1:19 PM, Evan wrote:
i've read some posts here about object-based models in cakephp being
released for v2.0. it's great that the cakephp developers are trying
to do this. to be honest, i really hate the array-based model in v1.x
right now. it's just not as agile and
On Nov 9, 2006, at 10:00 AM, Erich C. Beyrent wrote:
Silly newbie question here. I have followed the instructions in the
manual to set up a default index page, with a new default.thtml
layout,
which echoes $content_for_layout.
What I would like to know is where does
My Japanese is a little rusty, but thanks all the same for
spreading the word!
-- John
On Nov 5, 2006, at 10:03 PM, Shunro Dozono wrote:
Hello,
I wrote an Japanese article about the CakePHP framework for
codezine.jp.
If you have Japanese developers or clients, this article might
On Nov 3, 2006, at 3:42 PM, juananruiz wrote:
Hi, I've began the translation to spanish using the source xml files
from the svn. But I have'nt enough permissions to upload then to a new
spanish folder or project. I send a couple of mail but i have no
response. Can somebody help me with
On Nov 2, 2006, at 4:09 PM, Teriaki wrote:
I'm fairly new to CakePHP, but I can't seem to get around this
problem.
I have created about a dozen models and controllers, but all
controllers with multiword names fail.
How? What's the error message look like?
-- John
On Oct 31, 2006, at 1:16 PM, AC wrote:
I was wondering if Cake has the ability to generate the model, the
controller, and all of the views for you when it comes to CRUD. Much
like Ruby on Rails. I know that Cake has the scaffold option, but
what I want is base level code generation for
On Oct 27, 2006, at 8:57 AM, Gonçalo Marrafa wrote:
I would like to know how(if) i can impose conditions to the tuples of
Foo based on tuples of Bar. For example, can i findAll() only the
tuples of
Foo that have an associated Bar tuple with id = 1 ?
Can Cake do this for me or do i have
On Oct 23, 2006, at 10:28 AM, [EMAIL PROTECTED] wrote:
Data Validation - It's way too simple for what I want. I'm looking for
ways to say, validate a date field is a real date, and then also
validate that it's in an acceptable range (ie: over 14 years old). I'd
also like to be able to set
On Oct 23, 2006, at 12:04 PM, [EMAIL PROTECTED] wrote:
John David Anderson (_psychic_) wrote:
I did try some of the snippets out there for overriding
invalidate in
app_model.php. I mainly just encountered preg-match errors all over
the
place and they didn't work.
You shouldn't need
On Oct 23, 2006, at 3:35 PM, Robert wrote:
Hey guys,
ok, been doing a lot of reading the last few days and I think I am
nearly ready to start creating some more complex models and
associations. But I have a question about Foregin keys.
In the manual
On Oct 23, 2006, at 4:03 PM, Robert wrote:
Cheers John for the quick reply.
Haven't run into problems, it was just that from my Databases
lecture I
vaguely remember something about foreign keys;) and the manual didn't
mention it all, was just checking if it was something the author
On Oct 19, 2006, at 12:37 PM, Erich wrote:
And nothing is displayed! I am missing something so fundamental
here that I ought to be shot, but I have no idea what's wrong. I get
nothing but a blank page - no errors, warnings, etc.
Have you set DEBUG to a value greater than 0?
Apache
On Oct 18, 2006, at 4:26 PM, mike091 wrote:
Hi,
Have quite a simple question:
Currently have $this-params['data']['Enquiry']['status'] = 'booked';
in my appointments controller.
I need to change the status field in my enquiries table when a record
is edited. I can get it saving to a
Quick FYI:
You can ask her to point you to the pastebin using ~bin or
~paste. If you want someone else to paste something you can ~tell
nickName about bin, or ~tell nickName about paste.
Doing this autofills your IRC nick in a form field for the paste.
Instead of copying and pasting the
Model::findCount() isn't supposed to work, we actually added it to
fake people out back in 0.9. Sorry about that.
;o)
On Oct 16, 2006, at 11:09 AM, SoCalCakeBaker wrote:
snipped
This leads to my problem which occurs in AppModel::beforeFind. To
calculate num_pages, you have to know how
On Oct 14, 2006, at 4:23 PM, Marcelo de Moraes Serpa wrote:
Not right now.
I will install Eclipse + PHPEclipse tomorrow and create a conversion
script so I can publish that too.
Might not this stuff fit well into the cakedocs Cakeforge project
(alongside the manual, cakesheet, PDF, and
On Oct 13, 2006, at 7:12 AM, leo.cacheux wrote:
Hello everyone.
I want to display a table in a CakePHP with informations from 3
tables,
let's call them posts, users, profiles, and the 3 associated models
Post, User, Profile.
Post has a foreign key to User, and User has a foreign key
On Oct 10, 2006, at 11:30 AM, Daniel Jewett wrote:
snip
Can anyone put me on the right track with this?
What exactly isn't working? Seems like this type of thing should
basically work.. are you getting errors? Header problems?
-- John
--~--~-~--~~~---~--~~
On Oct 10, 2006, at 12:38 PM, radioflyer wrote:
On Oct 10, 1:56 pm, John David Anderson (_psychic_)
[EMAIL PROTECTED] wrote:
On Oct 10, 2006, at 11:30 AM, Daniel Jewett wrote:
snip
Can anyone put me on the right track with this?What exactly isn't
working? Seems like this type of thing
) for the table output (which calls the image
output action).
-- John
On Oct 10, 2:44 pm, John David Anderson (_psychic_)
[EMAIL PROTECTED] wrote:
On Oct 10, 2006, at 12:38 PM, radioflyer wrote:
On Oct 10, 1:56 pm, John David Anderson (_psychic_)
[EMAIL PROTECTED] wrote:
On Oct 10, 2006, at 11:30
On Oct 9, 2006, at 9:21 AM, RJT wrote:
Hi,
I've just started using Cake and so far I'm quite impressed. I've
dabbled with a couple of PHP frameworks but this is the first that
I've
gone so far as to begin building a real-world application with.
The app I'm building need to connect to
On Oct 9, 2006, at 2:37 PM, [EMAIL PROTECTED] wrote:
hi.
How do I make an ajax call from a form like this?
form
select name=select size=8
option value=1Blue/option
option value=2Red/option
option value=3Orange/option
option value=8Yellow/option
option value=eBlack/option
On Oct 9, 2006, at 3:35 PM, Emils wrote:
My experience with CakePHP has only begun but after creating some
small
examples with great help of the cake manual I think some areas of
interest suffers.
A very common issue (problem for starters) is when you have a
one-to-many relation in
On Sep 30, 2006, at 9:35 AM, Mick wrote:
Thanks John
Still don't understand when it creates the new notes directory etc.
Tried localhost/index.php/notes and got following;-
No new files or directories are created when using scaffold.
From a fresh batch of cake code, all you need to do to
On Sep 29, 2006, at 1:21 PM, [EMAIL PROTECTED] wrote:
Hi, all,
I ran through the tutorial at
http://manual.cakephp.org/appendix/blog_tutorial%22, and after
modifying MySQl to use old passwords (since I'm using PHP4.4.1 and
it's
not set to use MySQLi), and messing around with the
On Sep 22, 2006, at 8:30 AM, nate wrote:
bbuchs wrote:
Is it more than a little ironic that the article on the first page is
touting how easy it is to add an RSS feed to an app, yet the Bakery
doesn't have one?
No, it doesn't have one. We're too busy outdoing ourselves.
Yeah: we've
On Sep 22, 2006, at 8:30 AM, nate wrote:
bbuchs wrote:
Is it more than a little ironic that the article on the first page is
touting how easy it is to add an RSS feed to an app, yet the Bakery
doesn't have one?
http://bakery.cakephp.org/articles/rss/tutorials
On Sep 21, 2006, at 7:48 AM, [EMAIL PROTECTED] wrote:
Hello, i looking for some code that would help me to
1) display realtime stats on my cake website (like number of hits in
the last xx minutes, of which how many guests and how many registered.
including the usernames of the registered
On Sep 19, 2006, at 11:01 AM, [EMAIL PROTECTED] wrote:
Is there any chance that the security expert would be willing to put
together a brief overview of security concerns within Cake? I get
overwhelmed with the number and variety of exploits and exploiters out
there now. Everywhere I look
On Sep 15, 2006, at 8:37 AM, TWIOF wrote:
If you go to:
your_server\htdocs\cake_root_dir\cake\scripts\
using command prompt (win) or the shell on linux (i think) and run
cake.php you can get it to build the same output as the scaffold, it
inserts the controller and view in the
On Sep 14, 2006, at 12:44 PM, [EMAIL PROTECTED] wrote:
I am trying to pass a variable to a static page through the
pages_controller like this: /pages/about_us/1 but that gives this
error:
aboutus1.thtml for action aboutus1 in controller Pages could not be
found.
If I remove the /1 the
On Sep 14, 2006, at 2:36 PM, Brian French wrote:
Actually, an extended questions to his...
How could you use PEAR in cakephp? (no, im lazy ad didnt do even a
basic
search)
Let us know how that search turns out. ;o)
Hint: vendors().
-- John
codecowboy wrote:
I am looking to give
On Sep 13, 2006, at 9:49 AM, M wrote:
Hello, seems that mysql store dates in the following format:
-mm-dd.
How can I easily :) do, to let my application users to insert data
in a
field in the following
format: dd-mm-???
http://us2.php.net/strtotime
http://us2.php.net/date
On Sep 12, 2006, at 10:00 AM, Tony wrote:
So I was on the right track with the URL params. I totally agree with
you that cake makes things a lot easier. I read through pretty much
the
entire CakePHP manual, including the models chapter.
Let me refocus my question. If I have those two
On Sep 12, 2006, at 11:40 AM, Tony wrote:
John and AD7six,
Did I do this correctly?
class Level extends AppModel
{
var $name = Level;
var $hasMany = array('Role1' =
array('className' = 'Role',
'conditions' = '',
On Sep 12, 2006, at 11:42 AM, Hanzgroove wrote:
Hi guys,
Quick question. If I have a table called categories like this:
Categories
---
id
parent_id
category
What sort of relationship would that be in the category model?
Category belongsTo Parent.
On Sep 12, 2006, at 1:21 PM, Hanzgroove wrote:
Is there a way to dynamically set the value of
$this-ModelName-recursive?
$this-ModelName-recursive = $whateverYouWant;
It just has to end up as an integer somehow.
-- John
--~--~-~--~~~---~--~~
You received
On Sep 12, 2006, at 1:35 PM, Tony wrote:
Okay I just thought of something John. If I'm doing a $hasMany in the
Level model will I also need to do a $belongsTo in the Role model?
Yeah, if you want to see Level data from a Role model perspective.
Would I do the same thing and just use
On Sep 8, 2006, at 6:23 PM, Chris Hartjes wrote:
Nate, is there someplace on the CakePHP web site that info could go or
should I simple add a blog posting and drive traffic there instead? :)
How about I base a chapter in the manual off of your blog post? :)
-- John
On Sep 6, 2006, at 9:09 AM, Chris wrote:
much harder but still possible I think? Should I just use
http://cyberai.com/inputfilter/ and create it as a helper?
Helpers are usually things to help you with presentational stuff in
views - you might try making a component (which is something
On Sep 6, 2006, at 9:48 AM, Brandon wrote:
Sorry for the lame subject, I'm not sure how to title what I would
like
to do.
I have a series of audio files saved on my web server. Information
about the audio files are contained in a database (artist, title,
date,
etc). The audio
On Sep 5, 2006, at 10:11 AM, gorbster wrote:
Is it possible to dynamically create tables from within a Cake
application, and then use the table with Cake's Model class?
Make a generic model that doesn't use a table (var $useTable =
false), and use the execute() function of the model to
On Sep 2, 2006, at 11:12 AM, Olivier Percebois-Garve wrote:
1. use the page controller.
2.use elements or in the layout file.
3.use the page controller.
4. Dunno what NON-CAKE files are but again, just use the page
controller.
olivvv
globalnomad wrote:
please help me with these
On Aug 31, 2006, at 9:35 AM, TWIOF wrote:
Cheers Dieter,
I meant to say tables reather than dbs, I've been making that mistake
for two years (foolish I know), I'll have to check that part of the
manual more closely.
One quick question, how do yhou create controllers with no model?
Is
On Aug 31, 2006, at 7:10 PM, dmancan wrote:
Hi
I'm currently testing cakePHP to decide if our company should switch
over. I have a quick question which I'm sure is a snap for you
gurus to
answer.
I want my homepage to draw a collection of requests from various
database
On Aug 29, 2006, at 8:50 AM, Kabuto wrote:
Hi,
I have several tables all of the same structure. I would like to use
one model for them all. Is it possible to change the table of a model
at runtime? I'm thinking of something like $this-Model-useTable =
'tableName' which unfortunately does
On Aug 29, 2006, at 7:36 PM, Bret Kuhns wrote:
I've never done this before so I have no idea how cake itself would
handle it (if someone knows for sure, please chime in), but because
models are objects that extend the AppModel, you could create a
generic
model object that extends
On Aug 23, 2006, at 11:51 PM, jatrojoomla wrote:
Hi friends,
Any body could tell me what Cake PHP actually dose? What can I do
using
this ? I saw so many people using Cake PHP, but what is it real
purpose.
CakePHP is a web application framework. It allows you to build web
On Aug 24, 2006, at 3:04 AM, JitZhang wrote:
how to use Cookie in Cake PHP ?
Same as you normally would in any PHP application, though most of
your work would be done in a controller. Check out the PHP manual for
more information.
http://us2.php.net/manual/en/function.setcookie.php
--
On Aug 24, 2006, at 8:26 AM, Peter wrote:
I apologize if this question has been asked. I searched the topics
and
did not see anything related to my question.
What I would like to do is group by controllers in subdirectories
based
on logic functions. For example the application I am
On Aug 24, 2006, at 8:24 AM, kacperix wrote:
Hi!
!!!
In my app_controller.php file a have this function:
function getConfig($name) {
$ret = $this-query(SELECT value FROM config WHERE
name='.$name.');
$wynik = $ret[0]['value'];
return $wynik;
}
And when
On Aug 24, 2006, at 12:13 PM, Simplerules wrote:
I have this in a view file:
?php echo $html-checkbox('User/Coppa', array('onclick' =
watch('data[User][Coppa]', 'regform', 'birthdate', 'Coppa'))); ?
but the html attributes are not added.
That's because they are the third parameter
On Aug 24, 2006, at 12:24 PM, Simplerules wrote:
I guess the CakePHP manual is out of date:
checkbox
string $fieldName
array $htmlAttributes
boolean $return = false
Make sure to log a ticket to make sure it gets fixed.
-- John
--~--~-~--~~~---~--~~
You
On Aug 24, 2006, at 12:44 PM, eDevil wrote:
Hi, I'm trying something different here by not following the
conventions because of my very complex requirements.
Here's how I want it to work:
app/controllers/publisher_controller.php
On Aug 24, 2006, at 1:08 PM, eDevil wrote:
You might try using routes to play with URLs rather than class names.
That's a good idea. Any idea how I might do that?
http://manual.cakephp.org/chapter/configuration
Section 3: Routes Configuration
I'd start there.
What does your
On Aug 22, 2006, at 3:32 PM, Simplerules wrote:
Is there a way for me to set a function to run at the end of every
page load?
Controller::afterFilter();
You might implement it in your AppController if you want it site-wide:
class AppController extends Controller
{
function
On Aug 22, 2006, at 3:54 PM, JRGould wrote:
Is there a way to disable passing session variables with GET when
users
have cookies?
Yeah[1]:
session.use_trans_sid boolean
session.use_trans_sid whether transparent sid support is enabled or
not. Defaults to 0 (disabled).
Note: For PHP
On Aug 22, 2006, at 4:35 PM, salimk786 wrote:
Hello,
I'd like to use google api along with cakephp.
I found an article online explaining how to do this.
Can you tell me, if i was to download NUSoap, where would i place
their
lib folder so that my controller can easily call it.
On Aug 21, 2006, at 9:21 AM, Zoltan wrote:
A bit of a newbies question here, but what is the correct way to
handle
tables like 'city', should I name it 'cities' or 'citys'?
Have you tried it?
Should be 'cities'.
-- John
--~--~-~--~~~---~--~~
You
On Aug 21, 2006, at 9:33 AM, Zoltan wrote:
Yes, I tried it and it seemed to work at first, then got some errors
about missing controllers. This was about a week ago, but going from
memory I used something like:
class City extends AppModel
{
var $name = 'City';
}
and
class
On Aug 21, 2006, at 4:48 PM, Simplerules wrote:
How do I do a raw SQL query?
If at all possible, I would use model functions, but you can also
always use the query() and execute() functions of the model as well.
I need to access a table called 'Users', which belongs to
UsersController,
On Aug 21, 2006, at 4:55 PM, Simplerules wrote:
Yes, it has a Model.
'Users' is a fully working area, but I need to access some data from
the table Users in this component.
Just to clarify, are you using Cake vocabulary here?
Is your question that you want to know how to access and use
For inherited models, you might look to see how Cake's ACL models are
set up. ACO and ARO are both children of a class called AclNode.
-- John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To
On Aug 18, 2006, at 2:28 PM, mutabor wrote:
According to this session variable I want to include appropriate
helper
, so I need something like that:
var $helpers = array('Html','Pagination',$this-Session-read
('lang'));
but it does not work. Could anybody tell me what is the best way
On Aug 18, 2006, at 3:54 PM, Rolo D. Monkey wrote:
I know that you cannot save associated records directly from a model
that has a hasMany relationship, but how do you do it indirectly? I
have been all over the web for hours looking for this.
Here is a simplified version
Model Member
On Aug 17, 2006, at 4:27 AM, M wrote:
Hello,
I read a few emails about the lacking of transaction management in
Cake.
As I am building a web application with Cake for a potential customer,
i wonder how
to assure that my application has consistent data on the database.
For example, if
On Aug 17, 2006, at 3:22 PM, [EMAIL PROTECTED] wrote:
so i have a 1st model and controller for Files and 2th / controller
and
model for Comments,
my question is - Can I use findAll() for Comments in files
Controller ?
stick in
var $uses = array('File', 'Comment');
In your
On Aug 17, 2006, at 3:42 PM, [EMAIL PROTECTED] wrote:
snip
Any ideas and suggestions are appreciated!
Since its rather view-related, it might be better housed in a helper.
So you have user-created data that is gathered in the controller. I'd
hand it to the view, which is then manipulated by
301 - 400 of 484 matches
Mail list logo